Subject: Re: Upgraded, CYGWIN *much* slower
From: "Matthew W. Roberts" <[email-masked]>
To: [email-masked]
Cc: "Matthew W. Roberts" <[email-masked]>
Date: Wed, 23 Apr 2003 13:59:34 -0500

> > Looks like I'm going to have to roll up my sleeves, compile a
> > debug version of one of the offending programs, and see what's
> > really causing the problem.

> Before you do that, you might wish to run the offending programs under
> "strace".

Ran "strace" and the most time-consuming system calls were:

84604 3814935 [main] vim 1992 readv: readv (6, 0x22EB90, 1) blocking, sigcatchers 19
92088 2548200 [main] vim 1992 readv: readv (4, 0x22F600, 1) blocking, sigcatchers 19
96805 7012741 [main] vim 1992 readv: readv (5, 0x22F2B0, 1) blocking, sigcatchers 19
106822 6915348 [main] vim 1992 readv: readv (5, 0x22F2B0, 1) blocking, sigcatchers 19
110040 2337183 [main] vim 1992 cwdstuff::get: posix /tmp
167417 9815084 [main] vim 1992 writev: writev (1, 0x22F9B0, 1)
252042 6702013 [main] vim 1992 readv: readv (5, 0x22F2B0, 1) blocking, sigcatchers 19
322631 5929674 [main] vim 1992 readv: readv (5, 0x22F2B0, 1) blocking, sigcatchers 19
512837 14355860 [select_pipe] vim 1992 peek_pipe: /dev/piper, ready for read
998746 2134752 [main] vim 1992 nanosleep: 0 = nanosleep (999, 0)
998975 1135614 [main] vim 1992 nanosleep: 0 = nanosleep (999, 0)
1105267 9616875 [main] vim 1992 cygwin_gethostname: name ottabcxyz
4000071 13834069 [main] vim 1992 select_stuff::wait: timed out

The full output too large to attach.

A lot of it just seems to be waiting around.  The last line of
output is:

2458 14480012 [main] vim 1992 _pinfo::exit: Calling ExitProcess 0

There is a noticeable delay after this -- several seconds.  And it
only occurs in "sizeable" programs (e.g., bash, vim, mutt).  More
liteweight fare such as awk, more, /bin/ls, etc. do not have the delay.

Any suggestions are appreciated.  Based on the results from strace,
I'm not sure running a debugger will give me many answers.

Matt

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