Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EMbir-0006Bk-EY for qemu-devel@nongnu.org; Mon, 03 Oct 2005 21:36:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EMbip-0006AJ-2G for qemu-devel@nongnu.org; Mon, 03 Oct 2005 21:36:00 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMbio-0006AE-SZ for qemu-devel@nongnu.org; Mon, 03 Oct 2005 21:35:58 -0400 Received: from [209.234.73.41] (helo=kalmia.hozed.org) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EMbio-0007jB-0M for qemu-devel@nongnu.org; Mon, 03 Oct 2005 21:35:58 -0400 Date: Mon, 3 Oct 2005 20:35:55 -0500 From: Troy Benjegerdes Subject: Re: [Qemu-devel] [patch] non-blocking disk IO Message-ID: <20051004013555.GG4612@kalmia.hozed.org> References: <4340D479.7030301@stanfordalumni.org> <20051003135837.GC3511@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <20051003135837.GC3511@suse.de> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Mon, Oct 03, 2005 at 03:58:40PM +0200, Jens Axboe wrote: > On Mon, Oct 03 2005, John Coiner wrote: > > > > Non-blocking disk IO now works for any type of disk image, not just > > "raw" format. There is no longer any format-specific code in the patch: > > > > http://people.brandeis.edu/~jcoiner/qemu_idedma/qemu_dma_patch.html > > > > You might want this patch if: > > * you run a multitasking guest OS, > > * you access a disk sometimes, and > > * you wouldn't mind if QEMU ran a little faster. > > > > Why I have not got feedback in droves I do not understand ;) > > Why not use aio for this instead, seems like a better fit than spawning > a thread per block device? That would still require a thread for > handling completions, but you could easily just use a single completion > thread for all devices for this as it would not need to do any real > work. Why is there a posix async IO 'standard', but a different linux AIO standard? Having something that wraps both Linux-native AIO and posix async I/O might make supporting it a little easier to swallow on cross-platform applications.