This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Bash / cygwin process spawning (?) performance very slow
- From: Helmut Karlowski <helmut dot karlowski at ish dot de>
- To: cygwin at cygwin dot com
- Date: Wed, 23 Sep 2015 11:24:30 +0200
- Subject: Re: Bash / cygwin process spawning (?) performance very slow
- Authentication-results: sourceware.org; auth=none
- References: <5602684A dot 5090108 at null dot net>
litter@null.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 <machine> 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
--
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