slow bash spawn
Marc Compere
comperem@gmail.com
Tue Mar 20 05:35:00 GMT 2007
Dave Korn wrote:
> On 18 March 2007 13:28, Marc Compere wrote:
>
>> The recent setup.exe update has caused bash.exe to have startup times
>> approx. 10x longer than before. sh.exe starts pretty quickly but bash.exe
>> [...]
>> Running XP sp2 on a fresh, plain vanilla cygwin install. antivirus is not
>> the problem as bash started just fine on cygwin release just a few weeks
>> ago.
>
> Perhaps something in your startup scripts is taking this time. Open a dos
> shell (start->run->"cmd"), cd to c:\cygwin\bin or whereever your install
> lives, run "bash --login -i -x". The '-x' will make it print out all the
> commands it's running during startup; hopefully you can narrow down the
> problem to one particular item.
>
> Also, please run "cygcheck -s -v -r > cygcheck.out" and send the
> cygcheck.out file ***as an attachment please*** with your next post.
>
> cheers,
> DaveK
Dave,
Your suggestions were good. I inspected the "bash --login -i -x"
command from cmd.exe and found nothing in particular hanging although
the hostname and "id -un" and "id -ng" took a little longer than the
rest. Even silly simple things like a 'test' and short sed command all
take an unusually long time.
I ran the cygcheck command similar to what you suggested:
cygcheck -s -v -r > /tmp/cygcheck.out 2>&1
and have attached. Also, as an example of generally slow access to the
underlying XpSp2 os, an strace output of 'ls' is also attached. ls was
never lighning fast in cygwin, but now it takes 2 seconds in a directory
with 6 files in it. I can consistently get strace to show a burp that
looks like this:
exception C0000005 at 18B5B7C3
right after a pair of:
_pinfo::set_ctty:
commands.
Complete details are in the attached strace output from command:
strace -o /tmp/strace_output_for_ls.txt ls
Any tips? Are you (or anyone else) able to discern any unusual
incompatible dll's in the cygcheck.out or have any other hunches?
TIA again,
Marc
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20070320/98ef7501/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: strace_output_for_ls.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20070320/98ef7501/attachment.txt>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list