From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxEjC-0004X2-Gf for qemu-devel@nongnu.org; Mon, 21 Jan 2013 05:35:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxEjB-0000YT-90 for qemu-devel@nongnu.org; Mon, 21 Jan 2013 05:35:46 -0500 Received: from mail-ea0-f174.google.com ([209.85.215.174]:59674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxEjB-0000YJ-18 for qemu-devel@nongnu.org; Mon, 21 Jan 2013 05:35:45 -0500 Received: by mail-ea0-f174.google.com with SMTP id 1so2344075eaa.19 for ; Mon, 21 Jan 2013 02:35:44 -0800 (PST) Sender: Paolo Bonzini Message-ID: <50FD19FC.4030209@redhat.com> Date: Mon, 21 Jan 2013 11:35:40 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] qmp drive-mirror vs qemu-img convert , drive-mirror really slow List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexandre DERUMIER Cc: qemu-devel Il 21/01/2013 10:40, Alexandre DERUMIER ha scritto: > Hi list, > > I'm doing some speed benchmark between > > drive-mirror vs qemu-img convert , > > and drive-mirror seem to be a lot slower. > > > test: > > convert 1 32GB qcow2 file to raw file, local storage (6 disk 15k in raid10 + raid BBU cache) > > time result: > > qemu-img : 30sec > drive-mirror (vm is paused, no writes) : 5min > > > Any idea why drive-mirror is so slow ? (maybe does it use directsync when mirroring ?) No, it doesn't. Probably it's because the image is sparse? The current code in git master has a very coarse granularity (1 MB). Please try the blkmirror-job-1.4 branch from my github repo (git://github.com/bonzini/qemu.git). That branch uses the qcow2 file's cluster size as the granularity, and has other optimizations that kick in when the image is sparse. Paolo > I think both should have around same speed ? > > > Best Regards, > > Derumier Alexandre > > >