Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jan 2002 14:24:17 -0800 (PST)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        k Macy <kip_macy@yahoo.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: How well does EVFILT_AIO work?
Message-ID:  <20020113142249.U51854-100000@resnet.uoregon.edu>
In-Reply-To: <20020113062729.45895.qmail@web14003.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
dwhite@resnet.uoregon.edu     |  www.FreeBSD.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020113142249.U51854-100000>