From owner-freebsd-x11@FreeBSD.ORG Wed Apr 23 01:34:17 2014 Return-Path: Delivered-To: x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BBDCE5DF; Wed, 23 Apr 2014 01:34:17 +0000 (UTC) Received: from mail-yh0-x236.google.com (mail-yh0-x236.google.com [IPv6:2607:f8b0:4002:c01::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5EEBC168E; Wed, 23 Apr 2014 01:34:17 +0000 (UTC) Received: by mail-yh0-f54.google.com with SMTP id f73so275984yha.13 for ; Tue, 22 Apr 2014 18:34:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=IqKvojqDpWz5L1bNcyrUKBGu8X05554Hsn3JhDjYLHA=; b=sYhT32hrI56mOpU2u2gs8PQRcQVDc3OXOWE2venY1IJRmxC3zHVOsMjOvAzGoMFWbd Oul0mZ634wT7KMmFikAGt3LNr2GDqGkjw9aXv4jaD7T3UlldAKAvr1TzBnObA2gcOuqc 5VM3sgLwvQduxkZtDrFxH6mjqZvJcKop52nkkvjf609yQ5xRfcgaE+9E0VSIxB6h9Vff XDsVq4TX7IF97zZhOKcTcautK4rANNBwBkJ5ca0z5YkTDp8YbzF+U9i47CdWd83AxJqw 6TDgWZPUxyfMymBXd4j59ME302bVT6yOIxXmMJa00dtkCtyXy34gSfz6oExQkCdVElRs 1I2w== MIME-Version: 1.0 X-Received: by 10.236.134.140 with SMTP id s12mr7047544yhi.138.1398216856562; Tue, 22 Apr 2014 18:34:16 -0700 (PDT) Received: by 10.170.130.79 with HTTP; Tue, 22 Apr 2014 18:34:16 -0700 (PDT) In-Reply-To: <53566C2F.8090309@kapsi.fi> References: <20140420200534.72226779@nonamehost.local> <5354E550.7050803@freebsd.org> <20140421152732.716b897b@nonamehost.local> <53566C2F.8090309@kapsi.fi> Date: Tue, 22 Apr 2014 18:34:16 -0700 Message-ID: Subject: Re: [CFT] x11-servers/xorg-server with initial (GCD) Grand Central Dispatch support From: Neil Schroeder To: Arto Pekkanen Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: Ivan Klymenko , ports@freebsd.org, x11@freebsd.org, Niclas Zeising X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2014 01:34:17 -0000 Have you tried applying these changes to 1.15? Almost all the patches fail - but I have traditionally been very bad at working with large patch files so I might be going about it wrong... NS On Tue, Apr 22, 2014 at 6:18 AM, Arto Pekkanen wrote: > Wow, sounds cool! I just wanted to say thank you for researching somethin= g > not officially researched elsewhere :) > > You could fork the current X.org port, and maintain a partial ports tree > in a separate repository. Then people interested in testing the X.org wit= h > GCD support could easily use > http://www.freshports.org/ports-mgmt/portshaker/ to merge your X.org with > main ports tree. > > I've never used portshaker, nor maintained any port myself, but this seem= s > like the right way to do it. > > On 21.4.2014 15:27, Ivan Klymenko wrote: > > =D0=92 Mon, 21 Apr 2014 11:30:56 +0200 > > Niclas Zeising =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > > >> On 04/20/14 19:05, Ivan Klymenko wrote: > >>> Hi all. > >>> > >>> You are tired of frequent friezes xorg server? > >>> Are you bored messages in /var/log/Xorg.0.log: > >>> " > >>> ... > >>> [mi] EQ overflowing. Additional events will be discarded until > >>> existing events are processed. ... > >>> " > >>> ? > >>> > >>> :) > >>> > >>> Then you here! :) > >>> > >>> Patch attached :) > >>> > >>> If you like, we can continue to develop this area. > >> > >> First of all, what is GCD. > > > > What is GCD - for example can be read here: > > http://en.wikipedia.org/wiki/Grand_Central_Dispatch > > > >> Second of all, how does this affect the normal way things are done? > > > > X server has a single queue of requests, which processed > > sequentially. > > Some applications for various reasons, either block the queue or > > handled too long. > > And as a result - have dead GUI (server refuses to accept new requests > > for processing, until the guilty process it works), and messages > > similar to the following: > > " ... > > [mi] EQ overflowing. Additional events will be discarded until > > existing events are processed. > > ... > > " > > or any other type of "overflowing"... > > It regards changes in mi/mieq.c and mi/mipointer.c > > > > In this case using GCD queue handled on separate threads. > > GUI - always responsive. > > > > Yes - I suspect that there is a risk of attack on xorg-server where the > > threads limit is exceeded in the system, but we can modify and somehow > > eliminate in the future ... > > > >> Thirdly, are there any plans to upstream this? > > > > Unfortunately I'm not too familiar with the plans xorg community, > > but xorg still single threaded and it s one of its key weaknesses. > > I also do not have any information - whether GCD support in other > > operating systems (likely they are united to advance wayland - not > > xorg-server) which can be used xorg-server... So I think that these > > changes will be specific only for FreeBSD. > > > > Frankly, I think i do not have arguments and knowledge of the > > English tongue, that would implement support GCD in upstream :) > > > >> Lastly, which versions of xorg-server does this work with? > > > > These changes were in xorg-server-1.12.4 and up... > > > > > > Sorry for my english. > > _______________________________________________ > > freebsd-x11@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-x11 > > To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org" > > > >