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:content-type
	:content-transfer-encoding:in-reply-to:references:date
	:message-id:mime-version; q=dns; s=default; b=Ppk/IHyMxhbRYD2q0b
	k/wTPIpPbAFfYe56h554a0+KlXJi8udyyaAXfwde7nxRDJlEUvhXjDWKQkb2QDf5
	IFZ/qV4S+95lAR945YbiTtEHPzoj+QtC1qZzqi8Q3GAhXBrYXb48HEOC6ysuumW0
	xdBguJdiwmPv/2aGP3+6UusY4=
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:content-type
	:content-transfer-encoding:in-reply-to:references:date
	:message-id:mime-version; s=default; bh=3Dq05hr3SoGQHayvceRXUnNn
	N7Y=; b=lbzQvdZMMoMyrX9Dt5Nq7mtLdkwPVa99sp2C+YoA/V6Nu7oasUEeUH2m
	figNEcGszo0nOPRBPPa2Xp8E2nkuUC4jAvzlqdwNkGW/iHL1qrh7ymet24Gihb3b
	U9lQ/ptOgFgs8dlzqye4/6QZUoxnE++thsQwuk+cajTpFe14NVI=
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=0.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=no version=3.3.2
X-HELO: mailout.ish.de
From: Helmut Karlowski <helmut.karlowski@ish.de>
To: cygwin@cygwin.com
Subject: Re: Bash / cygwin process spawning (?) performance very slow
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
In-Reply-To: <5602C4AD.2060609@null.net>
References: <5602C4AD.2060609@null.net>
Date: Wed, 23 Sep 2015 18:55:28 +0200
Message-Id: <20150923185528.6E9C1A00.helmut.karlowski@ish.de>
MIME-Version: 1.0
X-IsSubscribed: yes

---------------------------------------------------
> I'm not running any antivirus as far as I'm aware of (I do run a Comodo firewall with all "virus" scanning disabled).
> I checked again, and it really is the Bash.exe which is consuming a lot of Kernel time. I didn't spot another process kicking in and consuming cycles.

You can do the same in dash (sans time) for example to rule out  bash.

> Any idea how to diagnose the cause of this? Is there any Cygwin specific logging/tracing to see where it is happening?

Maybe:

strace bash -c 'time cat some-file | while read i;do echo 
$i;/bin/true;done'

Haven't tested it.

Simplify the command:

for((i=0;i<150;i++));do /bin/true;done

to rule out a pipe-problem.

-Helmut


--
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

