Bash / cygwin process spawning (?) performance very slow

Helmut Karlowski helmut.karlowski@ish.de
Wed Sep 23 16:55:00 GMT 2015


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

You can do the same in dash (sans time) for example to rule out  bash.

> Any idea how to diagnose the cause of this? Is there any Cygwin specific logging/tracing to see where it is happening?

Maybe:

strace bash -c 'time cat some-file | while read i;do echo 
$i;/bin/true;done'

Haven't tested it.

Simplify the command:

for((i=0;i<150;i++));do /bin/true;done

to rule out a pipe-problem.

-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



More information about the Cygwin mailing list