Re: epoll (was Re: [PATCH] async poll for 2.5)

Benjamin LaHaise (bcrl@redhat.com)
Wed, 23 Oct 2002 13:39:00 -0400


On Wed, Oct 23, 2002 at 09:49:54AM -0700, Dan Kegel wrote:
> Furthermore, epoll is nice because it delivers one-shot readiness change
> notification (I used to think that was a drawback, but coding
> nonblocking OpenSSL apps has convinced me otherwise).
> I may be confused, but I suspect the async poll being proposed by
> Ben only delivers absolute readiness, not changes in readiness.
>
> I think epoll is worth having, even if Ben's AIO already handled
> networking properly.

That depends on how it compares to async read/write, which hasn't
been looked into yet. The way the pipe code worked involved walking
the page tables, which is still quite expensive for small data sizes.
With the new code, the CPU's tlb will be used, which will make a big
difference, especially for the case where only a single address space
is in use on the system.

-ben

-- 
"Do you seek knowledge in time travel?"
-
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/