From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JmucF-0004RD-Vd for qemu-devel@nongnu.org; Fri, 18 Apr 2008 13:43:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JmucE-0004Qi-1S for qemu-devel@nongnu.org; Fri, 18 Apr 2008 13:43:15 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmucD-0004Qf-Sw for qemu-devel@nongnu.org; Fri, 18 Apr 2008 13:43:13 -0400 Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JmucE-0002Od-2S for qemu-devel@nongnu.org; Fri, 18 Apr 2008 13:43:14 -0400 Date: Fri, 18 Apr 2008 14:46:25 -0300 From: Marcelo Tosatti Message-ID: <20080418174624.GA23124@dmt> References: <1208460412-27567-1-git-send-email-aliguori@us.ibm.com> <1208460412-27567-3-git-send-email-aliguori@us.ibm.com> <20080418150956.GB19341@dmt> <4808BBC9.6040502@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4808BBC9.6040502@us.ibm.com> Subject: [Qemu-devel] Re: [PATCH 3/3] Implement linux-aio backend Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: kvm-devel@lists.sourceforge.net, qemu-devel@nongnu.org On Fri, Apr 18, 2008 at 10:18:33AM -0500, Anthony Liguori wrote: > >Sleeping in the context of vcpu's is extremely bad (eg virtio-block > >blocks in write() throttling which kills performance). It should wait > >on IO completions instead (qemu-kvm.c creates a pthread "waitqueue" to > >resolve that issue). > > > >Other than that looks fine to me, will give it a try. > > > > FWIW, I'm not getting wonderful results in KVM. It's hard to tell > though because time seems wildly inaccurate (even with kvm clock in the > guest). The time issue appears unrelated to this set of patches. Oh, you won't get completion signals on the aio eventfd. You might want to try the select-with-timeout() stuff. Will submit that with proper signalfd emulation shortly.