On Sat, 12 Jan 2002, k Macy wrote:

> Has anybody used AIO in conjunction with kevent? I am seeing as much as
> a 12 second latency between when I do an 8k aio_write to a file on local
> disk and kevent returning its completion (I'm calling kevent every
> ~20ms). Using regular writes works fine, but this is a multi-threaded
> application so they cause the entire process to block.

I think you've overdone the async idea here. Threads already do
non-blocking I/O but appear to block by various trickery.  If you are
doing AIO in threads then you could just as easily dispose of the threads
and streamline your code.

Doug White                    |  FreeBSD: The Power to Serve
[EMAIL PROTECTED]     |  www.FreeBSD.org


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to