XWin too slow to start

2007-08-13 Thread Stephen More
For years I have been using fvwm2 and cygwin, but today it stopped working.

The only way I could get it to work again was to insert a 'sleep 15' between:

XWin -clipboard -rootless -silent-dup-error 

sleep 15

fvwm2 



Without the sleep, fvwm2 actually executes first but has no X server
to connect to.
What is causing XWin to startup so slow ?

-Steve More

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



Re: XWin too slow to start

2007-08-13 Thread Larry Hall (Cygwin X)

Stephen More wrote:

For years I have been using fvwm2 and cygwin, but today it stopped working.

The only way I could get it to work again was to insert a 'sleep 15' between:

XWin -clipboard -rootless -silent-dup-error 

sleep 15

fvwm2 



Without the sleep, fvwm2 actually executes first but has no X server
to connect to.
What is causing XWin to startup so slow ?



Good question.  What did you change recently?  Certainly nothing in the
X packages has changed for years, so you've either updated another Cygwin
package which is causing you trouble or you've introduced an external
change.  But of course you realize that you're providing no mechanism
that synchronizes X and fvwm, right?  Regardless of how slow or fast
the X server startup is, you've still got a potential problem there.

That said, submitting a problem report may shed some light on your problem:


Problem reports:   http://cygwin.com/problems.html


My WAG is that you've changed some network/firewall settings that are
slowing down the X server startup.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 429-6305 - FAX
Holliston, MA 01746

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



Re: XWin too slow to start

2007-08-13 Thread Stephen More
On 8/13/07, Larry Hall (Cygwin X) [EMAIL PROTECTED] wrote:
 Stephen More wrote:
  What is causing XWin to startup so slow ?


 Good question.  What did you change recently?

Like all users would sayI did not change a thing.
( Could it have been an automatic update for XP ? )
I even re-installed cygwin from scratch to debug this issue.


 My WAG is that you've changed some network/firewall settings that are
 slowing down the X server startup.

What type of network traffic is the X server trying ? Is it trying to
do DNS lookups ? Is it trying to connect to a website ?


After a strace -o /tmp/strace XWin  followed by sort -n /tmp/strace
I see 2 large pauses:

   21   20702 [sig] XWin 972 wait_sig: signalling pack.wakeup 0x6E8
   43   20745 [main] XWin 972 sig_send: returning 0x0 from sending signal -34
   44   20789 [main] XWin 972 writev: writev (3, 0x22C780, 1)
   32   20821 [main] XWin 972 fhandler_base::write: binary write
   34   20855 [main] XWin 972 writev: 34 = write (3, 0x22C780, 1), errno 2
20775776 20796631 [main] XWin 972 sig_send: sendsig 0x6E4, pid 972,
signal -34, its_me 1
   57 20796688 [main] XWin 972 sig_send: wakeup 0x6D8
  108 20796796 [main] XWin 972 sig_send: Waiting for pack.wakeup 0x6D8
   28 20796824 [sig] XWin 972 wait_sig: signalling pack.wakeup 0x6D8


29 235 [main] XWin 2844 set_myself: myself-dwProcessId 2844
   58 293 [main] XWin 2844 child_copy: dll data - hp 0x5AC low
0x6110, high 0x61104BA0, res 1
24014688 24014981 [main] XWin 2844 child_copy: dll bss - hp 0x5AC low
0x6113F000, high 0x611483D0, res 1
  272 24015253 [main] XWin 2844 child_copy: user heap - hp 0x5AC low
0x100F, high 0x1013, res 1
   28 24015281 [main] XWin 2844 child_copy: done
  574 24015855 [main] XWin 2844 child_copy: data - hp 0x5AC low
0x733000, high 0x77EDD0, res 1
  298 24016153 [main] XWin 2844 child_copy: bss - hp 0x5AC low
0x7D9000, high 0x80B3F0, res 1
   29 24016182 [main] XWin 2844 child_copy: done


Does this info help at all ?

-Steve More

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



Re: XWin too slow to start

2007-08-13 Thread Larry Hall (Cygwin X)

Stephen More wrote:

On 8/13/07, Larry Hall (Cygwin X) reply-to-list-only-lh-x AT cygwin DOT 
com wrote:

 ^^
http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.



Stephen More wrote:

What is causing XWin to startup so slow ?


Good question.  What did you change recently?


Like all users would sayI did not change a thing.
( Could it have been an automatic update for XP ? )
I even re-installed cygwin from scratch to debug this issue.



As I mentioned, the X stuff hasn't changed in years (as there is no
maintainer - you want to be it?) so I would expect much help here.
As for whether the auto update of XP could have an effect, the answer
is of course!






My WAG is that you've changed some network/firewall settings that are
slowing down the X server startup.


What type of network traffic is the X server trying ? Is it trying to
do DNS lookups ? Is it trying to connect to a website ?



X uses TCP by default for it's connections.  6000 is the common default
port.  You can change and/or disable that of course if you want (see
the X server documentation).



After a strace -o /tmp/strace XWin  followed by sort -n /tmp/strace
I see 2 large pauses:

   21   20702 [sig] XWin 972 wait_sig: signalling pack.wakeup 0x6E8
   43   20745 [main] XWin 972 sig_send: returning 0x0 from sending signal -34
   44   20789 [main] XWin 972 writev: writev (3, 0x22C780, 1)
   32   20821 [main] XWin 972 fhandler_base::write: binary write
   34   20855 [main] XWin 972 writev: 34 = write (3, 0x22C780, 1), errno 2
20775776 20796631 [main] XWin 972 sig_send: sendsig 0x6E4, pid 972,
signal -34, its_me 1
   57 20796688 [main] XWin 972 sig_send: wakeup 0x6D8
  108 20796796 [main] XWin 972 sig_send: Waiting for pack.wakeup 0x6D8
   28 20796824 [sig] XWin 972 wait_sig: signalling pack.wakeup 0x6D8


29 235 [main] XWin 2844 set_myself: myself-dwProcessId 2844
   58 293 [main] XWin 2844 child_copy: dll data - hp 0x5AC low
0x6110, high 0x61104BA0, res 1
24014688 24014981 [main] XWin 2844 child_copy: dll bss - hp 0x5AC low
0x6113F000, high 0x611483D0, res 1
  272 24015253 [main] XWin 2844 child_copy: user heap - hp 0x5AC low
0x100F, high 0x1013, res 1
   28 24015281 [main] XWin 2844 child_copy: done
  574 24015855 [main] XWin 2844 child_copy: data - hp 0x5AC low
0x733000, high 0x77EDD0, res 1
  298 24016153 [main] XWin 2844 child_copy: bss - hp 0x5AC low
0x7D9000, high 0x80B3F0, res 1
   29 24016182 [main] XWin 2844 child_copy: done


Does this info help at all ?



Not really no.  However, if you had not changed any Cygwin piece prior to
noticing the problem, I think it's safe to assume that the delay is
introduced by some external change, which is why I mentioned network and
firewall possibilities.  Depending on your source for A/V software, this
is a possible culprit too.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 429-6305 - FAX
Holliston, MA 01746

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