Re: epoll and nbio

J. Robert von Behren <[email protected]> Thu, 31 Jul 2003 02:41:23 -0700
Newsgroups gmane.comp.java.seda.user
Organization UC Berkeley
Message-ID <[email protected]>
Jared - 

I took a look at this several months ago, and ran into a couple of problems.  Here is what I remember of the situation:

   * Make sure you use the epoll system call interface, rather than /dev/epoll, as that is what the kernel developers seem to have settled on.
 
   * There is a fairly fundamental mismatch between the level-triggered nature of the NBIO code (both in nbio.c) and epoll's edge-triggered semantics.  This was the reason I decided to scrap the port when I first undertook it.

   * Fortunately, epoll now also supports level-triggered semantics, which are essentially identical to the old /dev/poll.  With this, the port should be very straightforward - probably a matter of just replacing the various /dev/poll calls with their newer epoll equivalents.  Just a guess, but this is probably no more than a couple days work, if that.

At this point, I don't have any need for an epoll-enabled SEDA myself, so I'm not planning to work on this.  I'd be happy to answer questions if you need some help getting started, though.

Best,

-Rob von Behren



On Thu, 31 Jul 2003 17:25:26 -0700
"jared allen" <[email protected]> wrote:

>  
> Has anyone implemented a version of NBIO that uses /dev/epoll  instead
> of the standard poll and /dev/poll device drivers?
> This is very important to the project I_m working and if anyone knows of
> other projects that use NBIO that may have done this I_d love to know.
> Also if anyone is interested in collaborating on a /dev/epoll
> implementation would be great.
>  
> Does anyone know what the JDK 1.4.1 and 1.4.2 nio use for polling?  
>  
> Thanks.
> Jared Allen
>  
> 


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01