public inbox for cygwin-xfree@sourceware.org help / color / mirror / Atom feed
From: Jon TURNEY <jon.turney@dronecode.org.uk> To: cygwin-xfree@cygwin.com, jdpaul@interstel.net Subject: Re: Cygwin/X becomes very slow with > 56 X clients in single window mode Date: Tue, 05 Mar 2013 14:26:00 -0000 [thread overview] Message-ID: <513600A0.9040306@dronecode.org.uk> (raw) In-Reply-To: <alpine.DEB.2.02.1302251457060.6938@interstel.net> On 25/02/2013 20:07, JD Paul wrote: > Cygwin/X becomes very slow with > 56 X clients in single window mode. > > Description: > > When running Cygwin/X in rooted window mode (with or without > -nodecoration), response time is fast for any number of X clients up > to and including 56 (as determined by 'xlsclients'). Upon adding one > more client, window creation starts taking up to 3 seconds, and > mapping/unmpapping becomes quite noticeably slow. Upon removing X > clients enough that the number drops below 57, the response time is > fast again. > My hope is that this can be traced to to some hard-coded limit that > could be easily raised. If that is the case, I could use Cygwin/X > once that limit is increased. I suspect that perhaps the limit that is being hit here is in the cygwin DLL, by asking select() to wait on more than 64 socket fds at the same time. The underlying windows call used, WaitForMultipleObjects() is limited to waiting on 64 different things. We could (should?) fan-out to multiple threads, each waiting on 64 sockets, but last time I looked, it seemed to me that the current implementation doesn't do this. See [1] for a previous attempt to fathom what does. But looking at the code again, it seems to me it WFMOs on groups of up to 64 sockets in turn, which is only approximately equivalent to waiting on them all. > Thanks very much for your time -- JD Paul Thanks for the detailed bug report -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- 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/
prev parent reply other threads:[~2013-03-05 14:26 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-02-25 20:07 JD Paul 2013-03-05 14:26 ` Jon TURNEY [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=513600A0.9040306@dronecode.org.uk \ --to=jon.turney@dronecode.org.uk \ --cc=cygwin-xfree@cygwin.com \ --cc=jdpaul@interstel.net \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).