From owner-freebsd-hackers Sun Jan 13 16:20:11 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id E485237B416 for ; Sun, 13 Jan 2002 16:20:08 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020114002007.NNQV10951.rwcrmhc51.attbi.com@InterJet.elischer.org>; Mon, 14 Jan 2002 00:20:07 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id QAA73733; Sun, 13 Jan 2002 16:16:33 -0800 (PST) Date: Sun, 13 Jan 2002 16:16:32 -0800 (PST) From: Julian Elischer To: Doug White Cc: k Macy , freebsd-hackers@FreeBSD.ORG Subject: Re: How well does EVFILT_AIO work? In-Reply-To: <20020113142249.U51854-100000@resnet.uoregon.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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