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 18:55:28 +0200
- Subject: Re: Bash / cygwin process spawning (?) performance very slow
- Authentication-results: sourceware.org; auth=none
- References: <5602C4AD dot 2060609 at null dot net>
---------------------------------------------------
> 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