* [Qemu-devel] qmp drive-mirror vs qemu-img convert , drive-mirror really slow [not found] <fdc4edd8-3194-4621-a58c-bfee5e5e9826@mailpro> @ 2013-01-21 9:40 ` Alexandre DERUMIER 2013-01-21 10:35 ` Paolo Bonzini 0 siblings, 1 reply; 3+ messages in thread From: Alexandre DERUMIER @ 2013-01-21 9:40 UTC (permalink / raw) To: qemu-devel 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 ?) I think both should have around same speed ? Best Regards, Derumier Alexandre ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] qmp drive-mirror vs qemu-img convert , drive-mirror really slow 2013-01-21 9:40 ` [Qemu-devel] qmp drive-mirror vs qemu-img convert , drive-mirror really slow Alexandre DERUMIER @ 2013-01-21 10:35 ` Paolo Bonzini 2013-01-21 10:45 ` Alexandre DERUMIER 0 siblings, 1 reply; 3+ messages in thread From: Paolo Bonzini @ 2013-01-21 10:35 UTC (permalink / raw) 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 > > > ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] qmp drive-mirror vs qemu-img convert , drive-mirror really slow 2013-01-21 10:35 ` Paolo Bonzini @ 2013-01-21 10:45 ` Alexandre DERUMIER 0 siblings, 0 replies; 3+ messages in thread From: Alexandre DERUMIER @ 2013-01-21 10:45 UTC (permalink / raw) To: Paolo Bonzini; +Cc: qemu-devel >>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. I'll try that, thanks Paolo, I'll keep you in touch. ----- Mail original ----- De: "Paolo Bonzini" <pbonzini@redhat.com> À: "Alexandre DERUMIER" <aderumier@odiso.com> Cc: "qemu-devel" <qemu-devel@nongnu.org> Envoyé: Lundi 21 Janvier 2013 11:35:40 Objet: Re: qmp drive-mirror vs qemu-img convert , drive-mirror really slow 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 > > > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-01-21 10:45 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <fdc4edd8-3194-4621-a58c-bfee5e5e9826@mailpro> 2013-01-21 9:40 ` [Qemu-devel] qmp drive-mirror vs qemu-img convert , drive-mirror really slow Alexandre DERUMIER 2013-01-21 10:35 ` Paolo Bonzini 2013-01-21 10:45 ` Alexandre DERUMIER
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).