Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jan 2002 16:16:32 -0800 (PST)
From:      Julian Elischer <julian@elischer.org>
To:        Doug White <dwhite@resnet.uoregon.edu>
Cc:        k Macy <kip_macy@yahoo.com>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: How well does EVFILT_AIO work?
Message-ID:  <Pine.BSF.4.21.0201131615430.73708-100000@InterJet.elischer.org>
In-Reply-To: <20020113142249.U51854-100000@resnet.uoregon.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
the threads package doesn't do file IO asynchronoulsy
in fact there ahve been several people threatenning to use AIO
to make the threads package to that asychronously too.


On Sun, 13 Jan 2002, Doug White wrote:

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


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?Pine.BSF.4.21.0201131615430.73708-100000>