From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bD6zI-0006V2-6l for qemu-devel@nongnu.org; Wed, 15 Jun 2016 05:19:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bD6zH-0004Gx-6r for qemu-devel@nongnu.org; Wed, 15 Jun 2016 05:19:52 -0400 Date: Wed, 15 Jun 2016 10:19:43 +0100 From: Stefan Hajnoczi Message-ID: <20160615091943.GA26488@stefanha-x1.localdomain> References: <1465917916-22348-1-git-send-email-den@openvz.org> <1465917916-22348-6-git-send-email-den@openvz.org> <5760C98F.4010600@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SLDf9lqlvOQaIe6s" Content-Disposition: inline In-Reply-To: <5760C98F.4010600@redhat.com> Subject: Re: [Qemu-devel] [PATCH 5/9] mirror: improve performance of mirroring of empty disk List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: "Denis V. Lunev" , qemu-devel@nongnu.org, qemu-block@nongnu.org, vsementsov@virtuozzo.com, Fam Zheng , Kevin Wolf , Max Reitz , Jeff Cody --SLDf9lqlvOQaIe6s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 14, 2016 at 09:20:47PM -0600, Eric Blake wrote: > On 06/14/2016 09:25 AM, Denis V. Lunev wrote: > > We should not take into account zero blocks for delay calculations. > > They are not read and thus IO throttling is not required. In the > > other case VM migration with 16 Tb QCOW2 disk with 4 Gb of data takes > > days. > >=20 > > Signed-off-by: Denis V. Lunev > > Reviewed-by: Vladimir Sementsov-Ogievskiy > > CC: Stefan Hajnoczi > > CC: Fam Zheng > > CC: Kevin Wolf > > CC: Max Reitz > > CC: Jeff Cody > > CC: Eric Blake > > --- > > block/mirror.c | 7 +++++-- > > 1 file changed, 5 insertions(+), 2 deletions(-) >=20 > Seems reasonable, but I'll let others more familiar with throttling give > the final say. There is a bounce buffer fallback when !drv->bdrv_co_pwrite_zeroes. In that case we need to account for the bytes transferred. I don't see where the patch takes this into account. --SLDf9lqlvOQaIe6s Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJXYR2vAAoJEJykq7OBq3PIMtQH/iIWzyPB+v8B8jt4NxRIpaMV JqxRR65++DIKwIrByhvizKADbfZ57K1WX9cQRF1ubOxK2ASWCXrNJlmb/pCo4D22 R26tr+aih91GQrPPV+FPfjuHMk1xjjsBUT7VqjcMaYzkEf5IwpApSFBfyl4IWLzc PukFoivDRqhf/QRvcuRT2NhjxPg2xonU3dM0cnmNUNvKlw4o1py4co1+nkZT+zVx 1TtDytOGjfsXn4WEuw650tWXvaD4FbeT8jOmz5IjOVyLXpiXFhZIuv1a4Bz+3p53 jC8jHjdGuCiw37eJ71qL98Mdp78vMnn+NDEsvaMXPxdFM8PHVQXhhuiJb/nmhhc= =gIiD -----END PGP SIGNATURE----- --SLDf9lqlvOQaIe6s--