This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bash / cygwin process spawning (?) performance very slow


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]