Bash / cygwin process spawning (?) performance very slow

litter@null.net litter@null.net
Wed Sep 23 15:17:00 GMT 2015


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

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



More information about the Cygwin mailing list