Received: from eggs.gnu.org ([2001:4830:134:3::10]:53886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkvSN-0004Ny-4b for qemu-devel@nongnu.org; Wed, 22 Apr 2015 10:16:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkvSI-0006Z1-CW for qemu-devel@nongnu.org; Wed, 22 Apr 2015 10:16:51 -0400 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:34518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkvSI-0006Yx-4z for qemu-devel@nongnu.org; Wed, 22 Apr 2015 10:16:46 -0400 Received: by wicmx19 with SMTP id mx19so87787286wic.1 for ; Wed, 22 Apr 2015 07:16:45 -0700 (PDT) Date: Wed, 22 Apr 2015 15:16:42 +0100 From: Stefan Hajnoczi Message-ID: <20150422141642.GZ27617@stefanha-thinkpad.redhat.com> References: <1426069701-1405-1-git-send-email-den@openvz.org> <1426069701-1405-25-git-send-email-den@openvz.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aSM3KCOUSI0G0tph" Content-Disposition: inline In-Reply-To: <1426069701-1405-25-git-send-email-den@openvz.org> Subject: Re: [Qemu-devel] [PATCH 24/27] block/parallels: delay writing to BAT till bdrv_co_flush_to_os List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Denis V. Lunev" Cc: Kevin Wolf , qemu-devel@nongnu.org, Stefan Hajnoczi --aSM3KCOUSI0G0tph Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 11, 2015 at 01:28:18PM +0300, Denis V. Lunev wrote: > The idea is that we do not need to immediately sync BAT to the image as > from the guest point of view there is a possibility that IO is lost > even in the physical controller until flush command was finished. > bdrv_co_flush_to_os is exactly the right place for this purpose. >=20 > Technically the patch uses loaded BAT data as a cache and performs > actual on-disk metadata updates in parallels_co_flush_to_os callback. >=20 > This patch speed ups > qemu-img create -f parallels -o cluster_size=3D64k ./1.hds 64G > qemu-io -f parallels -c "write -P 0x11 0 1024k" 1.hds > writing from 50-60 Mb/sec to 80-90 Mb/sec on rotational media and > from 160 Mb/sec to 190 Mb/sec on SSD disk. >=20 > Signed-off-by: Denis V. Lunev > Reviewed-by: Roman Kagan > CC: Kevin Wolf > CC: Stefan Hajnoczi > --- > block/parallels.c | 50 ++++++++++++++++++++++++++++++++++++++++++++------ > 1 file changed, 44 insertions(+), 6 deletions(-) Reviewed-by: Stefan Hajnoczi --aSM3KCOUSI0G0tph Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVN61KAAoJEJykq7OBq3PIadsH/1nXvNoMzCcwOAFZfzlY2OCY uw7frX52fycN0Hb9IhC41oU1RmPlZh02RIJe4R952+6mqy191ypH1N4Qg1RkaXX7 El0l4HGrXoDt+1tBp0H5T66yhbggZXaCsWRhm64bxP0IhxaHWLxNPJMxoPArJohm SN/uUT+LIJVmIzG3lEyxk2JJcrbNwiK21f7XJdGiy683qRivgc2ciIvULDAZCmEv 5oe6QkpJVpLDR0UrP+mUfnTouN2gS+hecAy0XC+lX5ME2T5JaG+YtW4UnjKyvkGn iKG54aXdfWzvfuvdoQkWUbt1oY+go9j47F1irFSxghDauFXqIfrS/zjuU63wIfI= =e9d3 -----END PGP SIGNATURE----- --aSM3KCOUSI0G0tph--