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:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=Qbn PMqw7rY7AXWSAX7scT42Wtblf71+WVupQiJ8Vyeu5oPS/i/r3Fp2540yVkbTCT1x BtepTfL6SpDyZb4KEDjhEcdoNQwvC+5olt+Vym3nkrCxGxB9Fk8asgFATFcQoNjv Gnju1qTVJrXr4FdFghEBDQK66AnoC9MoG0gXQpYE= 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=rmPd8ooN8 +t59R/C/MOtc3BicGQ=; b=clohuapjKFl7xjmVYLgCR7ymBNkhPTHGP7El/jxlR SUuF8DXry8ia5aUdKl/u+NEBgHk3RZyHpNF9paDj8R8bfn27kuPmoviwPm4CjhNT /fnH0c1P9u+tRSBaR8Woo5Qfhs3QnnwFw4KlH0fU6aSSy7Q2l8jEfzGvcLPoQ185 YQ= 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=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mout.gmx.com To: cygwin AT cygwin DOT com From: litter AT null DOT net Subject: Bash / cygwin process spawning (?) performance very slow X-Enigmail-Draft-Status: N1110 Message-ID: <5602684A.5090108@null.net> Date: Wed, 23 Sep 2015 10:52:26 +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: 7bit X-UI-Out-Filterresults: notjunk:1;V01:K0:dahKDSYMU2E=:YQf86mTc9NjnTLPMB5rTVe aXPCjzydqc5fE2ljW1ShsQDNs8QHmIhRWD/u1U3MxVSxIzkKzgg79nYRbUT+yhvgvgvh6PRfl hCxNFbROrCVlvvGh+y8+He3mVT4/YNS3+ClciNqHT/l1eXvjvfQonqQmWGTMrJECi8ekX+1WK spEw8NEYD/oeHVMT0yRDf5/1XWoeV5AwccWxjCjSFAD9shzm5CrNvndAXW9JmcVBj0eZxkzMn kc4rii26rZNeiZhww80XOmQxkxh5zskYQ17TIemZ/1aUJE15R5IGsUt285pJM0WNMo22ZW/2r Cxy/nWFxvVcJalcYSfyr22ns0ELiiz/Lsls5lc0oG+pBKI24RxY0s2O8KizhUZn06zYK6buxy gOmA1FEC/WMv84EMnRIVK/yuNX/gwpUQ/HOea7i/mMAbMTylErOr7D7851Et3W76jDuI4qobL +/tWYeqAYWHUHVGXNTfsrhmCWg3E3au28DKuezMIL5qcwdQRqZ2kR06qPrnmNO2KHxHHDtVqB blU9fY9dLfKaMWJiM4Zke+9hJLn/aSYMfZpK3aF9Pf0jWPTvh/AHp6cxNGufau1VJdF2v78dA iII5Px6LXh2iIfLZbvNg3WeuqQVdUr/1Wy3if6D27CRivaw0OEhq3Jlkg2yNGrScXThw2EPNQ z6PDgyqWPraoUZXQaj2FmyGHgtxXwOs5bvcR76brsDFMqqhFp6pMn5mk5GqIbY+3QCCFGu/V6 5AAiuC9y41boOz6eok6mN/pF7BvFFwe3CpPTUA== 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 for a file of 167 lines. Process Explorer showed a CPU load of 20% on bash.exe, which was almost completely Kernel time. Is such high Kernel load normal? I know it's a bit like comparing apples to oranges, but I run the SAME command from the same disk, from within a Debian 7 486 Linux on VirtualBox (!) on the same machine, it gave real 0m3.871s user 0m0.160s sys 0m3.292s So even running in emulator, real/user/sys time are about 30/60/30 times faster. That's quite shocking. Is this performance to be expected? That would make it an obvious choice to switch to VirtualBox on this machine. 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