X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:date:message-id:references
	:in-reply-to:content-type:content-transfer-encoding
	:mime-version; q=dns; s=default; b=nnjoFMZCRjSDwR7trKvrr7doLU6Oi
	O0zR4oK88QL157SbsJJJgtY8Ijm4C019GF/GYgNxxCcYQnWazwExp26pfRfkGaBN
	FeOOtOmSoSB5I6O3sm9D3Pb6XIDtBeVy6Ye7rXjVgTqfbMoPyJ+5pVfnXNyun5Sr
	7xSvwZeUZmWWyw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:date:message-id:references
	:in-reply-to:content-type:content-transfer-encoding
	:mime-version; s=default; bh=4xIhnCvEhwGeAHWRJYg/J2060Yo=; b=suk
	zO3pwJAKSu1VotYoS/UWWxfY3Q0FpsTn6NBwbyKERQ7yMKnWfVgw0sTXvyUyJvh3
	/uhOnKI0hFEP9HQizxmH8YkHfB6NDShA9KswyJ35q0NXWxcRFlNOivc3WHlX6dhq
	saCJM3IxocQ9sYOtfIV56DKF88HcMUUWrNN831Wo=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=TCL, H*r:0400, HX-DKIM:OpenDKIM, HX-DKIM:Filter
X-HELO: esa8.dell-outbound.iphmx.com
From: "Gluszczak, Glenn" <Glenn.Gluszczak@dell.com>
X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd03.lss.emc.com v3KDiEPi007198
X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd03.lss.emc.com v3KDiEPi007198
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: RE: long I/O delays when strace is running
Date: Thu, 20 Apr 2017 13:43:51 +0000
Message-ID: <91DCAC3CB99C724EB365BB64677FBE7B16EBBD@MX204CL04.corp.emc.com>
References: <be8713ec-5b68-e0e9-c5a5-d48fce491a2d@pobox.com>
In-Reply-To: <be8713ec-5b68-e0e9-c5a5-d48fce491a2d@pobox.com>
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
X-Sentrion-Hostname: mailusrhubprd02.lss.emc.com
X-RSA-Classifications: public
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id v3KDisCD000565


I haven't run Cygwin Expect for about 6 moths on Windows but it was behaving fine last time I did.  
One thing I am aware of is you can't interrupt sleep in TCL.  The sleep must
complete until the Control C is processed (regardless of whether you redirected signals
to your own routines).  Otherwise signals seemed to be processed immediately.

Perhaps some other service is interfering.  You may want to disable other services.

Glenn

================================================================


Well I've solved one problem, but now I have another one. To try to understand why except is getting broken pipes (child processes are "going away"), I modified DejaGNU's /usr/bin/runtest so that it would strace each except process:

-exec "$expectbin" $debug -- "$runpath"/runtest.exp $target ${1+"$@"}
+exec strace --output=/tmp/runtest.$$.log --trace-children
--mask=startup  $expectbin $debug -- $runpath/runtest.exp $target ${1+"$@"}

However, when I run make -kj8 check after this, Cygwin processes that do 
file I/O and even ps become very unresponsive and CPU utilization is low 
(not to say that DejaGNU is good at balancing the test load). If I hit 
ctrl-C on the make process, it won't exit for somewhere around 30 
seconds.  I am able to reproduce this to some degree with this simple 
snippet, although the delays aren't as long as doing the above:

for ((i = 0; i < 64; ++i)); do strace --output=/tmp/sleep.$$.log 
--trace-children --mask=startup sleep 64; done

Can anybody try this and see if they get delays when running ps -ef or 
some such?

Thanks,
Daniel

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


