Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161216AbWJQKna (ORCPT ); Tue, 17 Oct 2006 06:43:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161227AbWJQKn3 (ORCPT ); Tue, 17 Oct 2006 06:43:29 -0400 Received: from relay.2ka.mipt.ru ([194.85.82.65]:5014 "EHLO 2ka.mipt.ru") by vger.kernel.org with ESMTP id S1161216AbWJQKn2 (ORCPT ); Tue, 17 Oct 2006 06:43:28 -0400 Date: Tue, 17 Oct 2006 14:42:43 +0400 From: Evgeniy Polyakov To: Chase Venters Cc: Johann Borck , Ulrich Drepper , Eric Dumazet , Ulrich Drepper , lkml , David Miller , Andrew Morton , netdev , Zach Brown , Christoph Hellwig Subject: Re: [take19 1/4] kevent: Core files. Message-ID: <20061017104242.GB19246@2ka.mipt.ru> References: <11587449471424@2ka.mipt.ru> <4532C2C5.6080908@redhat.com> <453465B6.1000401@densedata.com> <200610170100.10500.chase.venters@clientec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <200610170100.10500.chase.venters@clientec.com> User-Agent: Mutt/1.5.9i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.7.5 (2ka.mipt.ru [0.0.0.0]); Tue, 17 Oct 2006 14:42:44 +0400 (MSD) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1948 Lines: 38 On Tue, Oct 17, 2006 at 12:59:47AM -0500, Chase Venters (chase.venters@clientec.com) wrote: > On Tuesday 17 October 2006 00:09, Johann Borck wrote: > > Regarding mukevent I'm thinking of a event-type specific struct, that is > > filled by the originating code, and placed into a per-event-type ring > > buffer (which requires modification of kevent_wait). > > I'd personally worry about an implementation that used a per-event-type ring > buffer, because you're still left having to hack around starvation issues in > user-space. It is of course possible under the current model for anyone who > wants per-event-type ring buffers to have them - just make separate kevent > sets. > > I haven't thought this through all the way yet, but why not have variable > length event structures and have the kernel fill in a "next" pointer in each > one? This could even be used to keep backwards binary compatibility while Why do we want variable size structures in mmap ring buffer? > adding additional fields to the structures over time, though no space would > be wasted on modern programs. You still end up with a question of what to do > in case of overflow, but I'm thinking the thing to do in that case might be > to start pushing overflow events onto a linked list which can be written back > into the ring buffer when space becomes available. The appropriate behavior > would be to throw new events on the linked list if the linked list had any > events, so that things are delivered in order, but write to the mapped buffer > directly otherwise. I think in a similar way. Kevent actually do not require such list, since it has already queue of the ready events. -- Evgeniy Polyakov - 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/