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

Davide Libenzi
2002-10-31T18:28:10Z

On Thu, 31 Oct 2002, Suparna Bhattacharya wrote:

> I think what John means, and what Jamie has also brought up in a
> separate note is that now when an event happens on an fd, in some cases
> there are tests for 3 kinds of callbacks that get triggered -- the wait
> queue for poll type registrations, the fasync list for sigio, and the
> new epoll file send notify type callbacks. There is a little overhead
> (not sure if significant) for each kind of test ...

The poll hooks is not where an edge triggered event notification API wants
to hook. For the way notification are sent and for the registration
method, that is not the most efficent thing. Hooking inside the fasync
list is worth to be investigated and I'll look into it as soon as I
finished the patch for 2.5.45 for Linus. It does have certain limits IMHO,
like the single lock protection. I'll look into it, even if the famous
cost for the extra callback check cannot even be measured IMHO.

- Davide