From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 371 invoked by alias); 5 Mar 2013 14:26:48 -0000 Received: (qmail 343 invoked by uid 22791); 5 Mar 2013 14:26:46 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,TW_FD X-Spam-Check-By: sourceware.org Received: from nm6-vm8.bt.bullet.mail.ir2.yahoo.com (HELO nm6-vm8.bt.bullet.mail.ir2.yahoo.com) (212.82.99.237) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 05 Mar 2013 14:26:33 +0000 Received: from [212.82.98.45] by nm6.bt.bullet.mail.ir2.yahoo.com with NNFMP; 05 Mar 2013 14:26:31 -0000 Received: from [77.238.189.16] by tm6.bt.bullet.mail.ir2.yahoo.com with NNFMP; 05 Mar 2013 14:26:31 -0000 Received: from [127.0.0.1] by smtp816.mail.ird.yahoo.com with NNFMP; 05 Mar 2013 14:26:31 -0000 X-Yahoo-SMTP: u.JgLvyswBBMp9ZJJfsX14qmYb3T2ivhMAr6OupnxLpNQEFZ9g-- Received: from [192.168.1.73] (jon.turney@109.152.114.97 with plain) by smtp816.mail.ird.yahoo.com with SMTP; 05 Mar 2013 14:26:31 +0000 GMT Message-ID: <513600A0.9040306@dronecode.org.uk> Date: Tue, 05 Mar 2013 14:26:00 -0000 From: Jon TURNEY Reply-To: cygwin-xfree User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com, jdpaul@interstel.net Subject: Re: Cygwin/X becomes very slow with > 56 X clients in single window mode References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2013-03/txt/msg00002.txt.bz2 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/