Re: [patch, rfc] lt-epoll ( level triggered epoll ) ...

bert hubert (ahu@ds9a.nl)
Tue, 11 Mar 2003 10:34:27 +0100


On Mon, Mar 10, 2003 at 12:15:25PM -0800, Davide Libenzi wrote:

> 2) Existing apps using poll/select can easily be ported usinf LT epoll

This is a big thing. I created a webserver based on MTasker
(ds9a.nl/mtasker) that used select, poll or epoll and it was very hard to
abstract this properly as level and edge semantics differ so wildly.

Most programs will not abandon 'legacy' interfaces like poll and select and
will only want to offer epoll in addition. Right now that is hard to do.

I implemented this by 'relevelling' the edgeness of epoll, which is double
work.

> 1) We leave epoll as is ( ET )
> 2) We apply the patch that will make epoll LT
> 3) We add a parameter to epoll_create() to fix the interface behaviour at
> creation time ( small change on the current patch )
>
> With 2) and 3) there are also man pages to be reviewed to be posted to
> Andries. Comments ?

I'd vote for 2.

Regards,

bert

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
http://netherlabs.nl                         Consulting
-
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/