Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Oct 2000 01:02:46 -0500
From:      Jonathan Lemon <jlemon@flugsvamp.com>
To:        Dan Kegel <dank@alumni.caltech.edu>
Cc:        Jonathan Lemon <jlemon@flugsvamp.com>, chat@freebsd.org, linux-kernel@vger.kernel.org
Subject:   Re: kqueue microbenchmark results
Message-ID:  <20001025010246.B57913@prism.flugsvamp.com>
In-Reply-To: <39F6655A.353FD236@alumni.caltech.edu>
References:  <20001024225637.A54554@prism.flugsvamp.com> <39F6655A.353FD236@alumni.caltech.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 24, 2000 at 09:45:14PM -0700, Dan Kegel wrote:
> If you haven't already, you might peek at the discussion on
> linux-kernel.  Linus seems to be on the verge of adding
> something like kqueue() to Linux, but appears opposed to
> supporting level-triggering; he likes the simplicity of
> edge triggering (from the kernel's point of view!).  See
> http://boudicca.tux.org/hypermail/linux-kernel/2000week44/index.html#9

Yes, someone pointed me to those today.  I would suggest reading
some of the relevant literature before embarking on a design.  My
paper discusses some of the issues, and Mogul/Banga make some good
points too.

While an 'edge-trigger' design is indeed simpler, I feel that it 
ends up making the job of the application harder.  A simple example
to illustrate the point: what if the application does not choose 
to read all the data from an incoming packet?  The app now has to 
implement its own state mechanism to remember that there may be pending
data in the buffer, since it will not get another event notification
unless another packet arrives.

kqueue() provides the ability for the user to choose which model suits
their needs better, in keeping with the unix philosophy of tools, not
policies.
--
Jonathan


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001025010246.B57913>