Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 19 Nov 2002 15:44:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 19 Nov 2002 15:44:20 -0500 Received: from mark.mielke.cc ([216.209.85.42]:36626 "EHLO mark.mielke.cc") by vger.kernel.org with ESMTP id ; Tue, 19 Nov 2002 15:43:09 -0500 Date: Tue, 19 Nov 2002 15:57:33 -0500 From: Mark Mielke To: Davide Libenzi Cc: linux-kernel@vger.kernel.org Subject: Re: [rfc] epoll interface change and glibc bits ... Message-ID: <20021119205733.GE22001@mark.mielke.cc> References: <200211191933.gAJJXumU025156@habanero.picante.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1999 Lines: 45 On Tue, Nov 19, 2002 at 11:51:40AM -0800, Davide Libenzi wrote: > On Tue, 19 Nov 2002, Grant Taylor wrote: > > If we're bound to poll small sets of epoll fds perhaps a bit of > > improvement in poll would be worthwhile. I should go look at my > The current poll() with a number of fds you're talking about, scales > beautifully. For event loops that need minimal latency for high priority events (even at the cost of higher latency for low priority events), poll() of epoll fds may allow greater optimization opportunities, as the epoll fd set is dynamically adjusted without extra system code overhead. Example: Code that expects that at least one high priority event may be ready (for example, after dispatching events during the previous iteration) can choose to first only poll(0) the epoll fds responsible for the high priority event sets. Only if poll(0) returns no high priority epoll fds, would poll(timeout) then be issued on all epoll fds. This would result in a very short dispatch path for events for high priority events. What we really need is a few actual event loop implementations to test all of these theories. I would find it especially nice if the code could be ported to 2.4.x... :-) For now, epoll of epoll fd is not necessary for our needs. mark -- mark@mielke.cc/markm@ncf.ca/markm@nortelnetworks.com __________________________ . . _ ._ . . .__ . . ._. .__ . . . .__ | Neighbourhood Coder |\/| |_| |_| |/ |_ |\/| | |_ | |/ |_ | | | | | | \ | \ |__ . | | .|. |__ |__ | \ |__ | Ottawa, Ontario, Canada One ring to rule them all, one ring to find them, one ring to bring them all and in the darkness bind them... http://mark.mielke.cc/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/