This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 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: emacs-x11 takes 30-40 sec to open after upgrading to cygwin-1.7


On Wed, Apr 14, 2010 at 12:24, Markus Hoenicka
<markus.hoenicka@mhoenicka.de> wrote:
>
> I've had a look at your strace log. I've noticed the same block of
> statements which seems to be repeated over and over again (see my previous
> post). ?Did you watch the strace output on the console in real time to
> verify that this is where the process spends most of its time?
>
> ?3139 16066368 [main] xclock 5708 readv: readv (4, 0x22A6D4, 1) blocking,
>       sigcatchers 0
> ?1765 16068133 [main] xclock 5708 readv: no need to call ready_for_read
> ?1487 16069620 [main] xclock 5708 fhandler_base::read: returning 1024,
>       binary mode
> ?1531 16071151 [main] xclock 5708 readv: 1024 = readv (4, 0x22A6D4, 1),
>       errno 2
>
> This is where I have seen xterm to spend most of its time.

The two numbers at the beginning of each strace output line (like the
ones you quoted above) answer this question. I believe the first
number is elapsed microseconds since the previous line and the second
number is elapsed microseconds since the beginning of the run.

If this is correct then the block above takes about 8ms. Note,
however, that the strace log of xclock's startup is comprised of
414,669 lines, a fact that coincides with the several minutes it has
taken the straced xclock to open.

--Dan

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


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