This is the mail archive of the
mailing list for the Cygwin project.
Re: Bash / cygwin process spawning (?) performance very slow
- From: litter at null dot net
- To: cygwin at cygwin dot com
- Date: Wed, 23 Sep 2015 17:17:35 +0200
- Subject: Re: Bash / cygwin process spawning (?) performance very slow
- Authentication-results: sourceware.org; auth=none
>> 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?
> may be. forks are time consuming and your command is spending all the
> time in fork
So why is it spending all its time in fork? That is the question.
> In addition, I suspect your Antivirus is further slowing down the things.
I don't run an Antivirus program
> I have much better results with my cygwin
> also with a much longer file
> $ wc -l cygcheck.out
> 5220 cygcheck.out
> $ time cat cygcheck.out | while read i;do grep text $i;done
> real 0m0.288s
> user 0m0.015s
> sys 0m0.262s
Thanks for your measurement, it confirms the issue is with my installation.
Still the question remains, why is it so slow, spending all its time in kernel mode?
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple