Re: and nicer too - Re: [PATCH] epoll more scalable than poll

bert hubert
2002-10-29T15:13:03Z

On Tue, Oct 29, 2002 at 01:59:04PM +0100, Martin Waitz wrote:

> every api should be build to cause the least astonishment to its users.
> epoll is much more scalable than standard poll, yet i don't think
> it's a nice api.

epoll is not a 'faster poll()'. It is edge based instead of level based -
some astonishment is in order here. Anyhow, all problems with the API
mentioned go away if epoll_ctl() inserts an egde if it finds that its poll
condition is met.

> the unified event mechanism introduced in bsd is a good example imho.
> we should build something that is similar useful for applications.

Sounds 2.7-ish.

Regards,

bert

--
http://www.PowerDNS.com Versatile DNS Software & Services
http://lartc.org Linux Advanced Routing & Traffic Control HOWTO