X-Recipient: archive-cygwin AT delorie DOT 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:in-reply-to:subject:message-id:date :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=G5ZYojmmo6xM0GQKl7mA+IzF30ONWRVypofDa29e9mQjg3N8EzJMe xagtqgjIH5yawGzYyKNEbO4ufgJmZcvU4DcoHXruaZJ1wRdXxLdVJ4V0EqHV95OG DHiNPeEaYYFKzAtUaflvHg3wsC9SkTAJBMrOHIMAeuI1qJIZc6xmBY= 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:in-reply-to:subject:message-id:date :mime-version:content-type:content-transfer-encoding; s=default; bh=2FE5HRaDqqOP+O0SHhoLvWbKGJ4=; b=UOh+fluR0UTi7cSY8R+pGZPZHw1J YcEJs1SXBayfRQHXUJiI4ofRgaZ1M389+BMSnfcCZFi2nvATcwOKTE4nVCuuuDCp YIUiJ2fpPm2TB46ekHYXda/tHvwmhS04hKL9IXVcxCGcpzpzCukfzkgyeW9pzlio DXP40Y4Fzzeo/no= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mout.gmx.com From: litter AT null DOT net X-Enigmail-Draft-Status: N1110 To: cygwin AT cygwin DOT com In-Reply-To: 663517E1C874873ADB12BADE23DA8EB9 Subject: Re: Bash / cygwin process spawning (?) performance very slow Message-ID: <5602C4AD.2060609@null.net> Date: Wed, 23 Sep 2015 17:26:37 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-UI-Out-Filterresults: notjunk:1;V01:K0:e4wQiVhz5rw=:plaF4rrQ31J4YuJN2qYZBg 20XmOqed/G9abyAqtLMhK7mtL1YamiMSF1ztEqfY+47BkQBQVhkmW6v0tNRQ3mtUH0BmppPzH 1uhqs9NW/n66NINBDegdqsxxUnB4Zb73vCfeb/uTkVQ2ZQf3ZWhyjuLLsIjktzGfUc2cPZI5t HLrw8CRmeLuHOT8HokWulD0V3F6ZfyAYlxFI4bJ1zBkR+X/MLNEniPRmlPSNjoe/2XQJlqlC8 esXsKC1LZ6p8R0AUbkpndx7N++c/JzPwHiernianvUzdtPTFTPAXw3FPxUjDAv1+5Q+rpneba 8BSbDzrC04REj30WkBaEEPR3TBwWaXth1BBou3VxE+puuOrsbv+3m+u7JJeY7RPBg2OmpUQjI kekL6Z01OV4O6Vjzq9LfM7+JmXxpPP4+LlyhMtk+sqWzYwwdi584RYEDx0a55cNkZ6YInMTvS 1TUEToMjH4BPRF5qQRUW/QbYoPN3gSbUT7yfJU5lrc8xL+qDybwRtwEh5kyHtx35L8Je/MjRU jtBPndCE1F3xHebV5xhsTlmUrGP6jHpEjciA5hUjXDAfe7BdCwwjWwvcqXfJyuPnNM/42JAqg M3nfGjQyjFeMp/af/k4HH/390jZoj5zKQ82vhv8nMV8knr/YUxxAESJ1jymgKK1OiTSFzer0s a5kHAjUG5pxm/VC36V/BgpIkQGA7bWRc2WUCJaJPhOmWPvjM5UY2Rby94x1SrNGDmDw67JZby ymdd6QscgIEN3viYNolNIlTxUg51d6QZvz2pug== > litter AT null DOT net: > Wed, 23 Sep 2015 10:52:26 +0200 > --------------------------------------------------- >> Hi all, >> >> I noticed that doing simple loops in Bash takes unexpectedly long under Cygwin on a Windows XP 32 bit machine >> (CYGWIN_NT-5.1 2.2.1(0.289/5/3) 2015-08-20 11:40 i686 Cygwin) >> >> I already followed the FAQ advice in trying to determine general causes, and made a 'shadow' copy of /etc/passwd as described. >> My PATH does not contain references to network shares. >> >> Still quite normal commands take a long time e.g. >> time cat some-file | while read i;do echo $i;/bin/true;done >> >> real 1m44.953s >> user 0m9.599s >> sys 1m36.865s > > #wc t; time cat t | while read i;do echo $i;/bin/true;done >/dev/null > 172 172 3448 t > 3.73s real 0.04s user 0.43s system > > On cygwin 1.7.35 and XP32. Not THAT fast but similar to your > linux-result. I guess your antivirus is interfering. I've configured > my avast to not deep-scan anything in C:\cygwin\bin, maybe that helps. > > -Helmut Thanks for the reply Helmut, Although the /dev/null probably contributes a bit to the timing it's clear not all 32 bit XP systems suffer from this, thanks for that! 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. Any idea how to diagnose the cause of this? Is there any Cygwin specific logging/tracing to see where it is happening? Thanks, Paul -- 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