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:to:from:subject:message-id:date:mime-version
	:content-type:content-transfer-encoding; q=dns; s=default; b=u+m
	MI4YZ9nbzsc5zcN3beeI/d4HJdUrMLmkGjYKsuuyYIm5XIQ5dmgvzz1wcPeKZAke
	FGtr3l19swPgvLtC+5fzVTp8SvXFXPjQ8EZKmG4Jlwdz+pnBaK3rSr0oYpE/T9jB
	oFOXOkm+6oUHJIlwz+JpQfNtd7aFbQCGHksprPXE=
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:to:from:subject:message-id:date:mime-version
	:content-type:content-transfer-encoding; s=default; bh=A++y7sfd8
	nYTv09rr/ScT/D58LI=; b=iTGKxucLxqSLAe9Jxwj03hVi06mj8radgA7FhIda6
	qzDTZVWQbeMTr3FTzhLa87kRqgWBYYH/6arft6GgEWwIZWcjepRDcseqWlJ/waZo
	82TDulRGPsftrOXRhP+uGLjnD09WAF8g6IVLkBa7hHxc/OnrCuuePdFEP5dI+Jn6
	qM=
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.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=degree, delays
X-HELO: sasl.smtp.pobox.com
To: cygwin@cygwin.com
From: Daniel Santos <daniel.santos@pobox.com>
Subject: long I/O delays when strace is running
Message-ID: <be8713ec-5b68-e0e9-c5a5-d48fce491a2d@pobox.com>
Date: Wed, 19 Apr 2017 18:05:46 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Pobox-Relay-ID: 136BD92C-2554-11E7-9E70-E680B56B9B0B-06139138!pb-smtp1.pobox.com
X-IsSubscribed: yes

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

