Re: [PATCH] /dev/epoll update ...

Benjamin LaHaise (bcrl@redhat.com)
Thu, 20 Sep 2001 15:33:52 -0400


On Thu, Sep 20, 2001 at 11:25:13AM -0700, Davide Libenzi wrote:
> The advantage /dev/epoll has compared to aio_* and RTsig is
> 1) multiple event delivery/system call

This is actually covered in my aio plan, and just needs the kernel
provided syscall function library support to read from shared memory.
The ABI I'm using is based on aio_*, but is different. There are a
few emails I've written on the subject recently that I can forward to
you, but the basic API is: io_submit queues aio requests which later
write a 32 byte completion entry containing the object, user data and
result codes to a ringbuffer.

> 2) less user<->kernel memory moves
>
> The concept is very similar anyway coz you basically have to initiate the
> io-call and wait for an event.
> The difference is how events are collected.

See the above. =) aio also works much better as the io request helps
define the duration for memory pinning of any O_DIRECT or similar
operations that allow the hardware to act on user provided buffers.

-ben
-
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/