From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0pyk-0002fm-VG for qemu-devel@nongnu.org; Tue, 16 Dec 2014 06:07:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0pye-0001G9-QW for qemu-devel@nongnu.org; Tue, 16 Dec 2014 06:07:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:64254) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0pye-0001Fw-J8 for qemu-devel@nongnu.org; Tue, 16 Dec 2014 06:07:40 -0500 Date: Tue, 16 Dec 2014 12:07:27 +0100 From: Kevin Wolf Message-ID: <20141216110727.GA27195@noname.str.redhat.com> References: <1418305950-30924-1-git-send-email-pbonzini@redhat.com> <1418305950-30924-2-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1418305950-30924-2-git-send-email-pbonzini@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 1/5] linux-aio: queue requests that cannot be submitted List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: ming.lei@canonical.com, pl@kamp.de, qemu-devel@nongnu.org, stefanha@redhat.com Am 11.12.2014 um 14:52 hat Paolo Bonzini geschrieben: > Keep a queue of requests that were not submitted; pass them to > the kernel when a completion is reported, unless the queue is > plugged. > > The array of iocbs is rebuilt every time from scratch. This > avoids keeping the iocbs array and list synchronized. > > Signed-off-by: Paolo Bonzini Just found out that in qemu-img bench, this patch seems to cost about 5-8% for me. An optimisation for the unplugged case would probably be easy, but that would be cheating, as the devices that we're really interested in always plug the queue (perhaps I should extend qemu-img bench to do that optionally, too). Anything clever that we can do about this? Or will we just have to live with the fact that sending a single request is now slower than it used to be before bdrv_plug? Kevin