From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LA4sh-0003A7-U8 for qemu-devel@nongnu.org; Tue, 09 Dec 2008 10:52:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LA4sg-00039v-FT for qemu-devel@nongnu.org; Tue, 09 Dec 2008 10:52:15 -0500 Received: from [199.232.76.173] (port=38103 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LA4sg-00039s-Cd for qemu-devel@nongnu.org; Tue, 09 Dec 2008 10:52:14 -0500 Received: from mx2.redhat.com ([66.187.237.31]:59191) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LA4sg-00014x-Fp for qemu-devel@nongnu.org; Tue, 09 Dec 2008 10:52:14 -0500 Message-ID: <493E941D.4000608@redhat.com> Date: Tue, 09 Dec 2008 16:51:57 +0100 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] [RFC] Replace posix-aio with custom thread pool References: <1228512061-25398-1-git-send-email-aliguori@us.ibm.com> In-Reply-To: <1228512061-25398-1-git-send-email-aliguori@us.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 Cc: Anthony Liguori , kvm-devel Hi, > 2) it's impossible to add new interfaces and we need a vectored read/write > operation to properly support a zero-copy API. I'm eager to try vectored block ops for the xenbus block backend. > It performs at least as well as the current posix-aio code (in some > circumstances, even better). Well, I see a massive slowdown when switching from sync to aio in the xen backend code. I think the reason is that due to the lack of a vectored interface (and thus /me submitting separate aio requests for each iovec element) stuff gets parallelized *way* too much and disk seek times are killing me. > My only concern here is non-Linux Unices like FreeBSD. They have kernel support > for posix-aio. Since we cannot extend those interfaces though, I think that > even on those platforms we should still use a thread pool. Which might change some day in the future when we manage to get iovec support into posix-aio specs. I think the interface should use qemu-prefixed function and struct names. The we can trivially map them to a system-provided aio implementation without worrying about name clashes. cheers, Gerd