From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEGU9-00042H-IZ for qemu-devel@nongnu.org; Fri, 14 Feb 2014 05:59:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEGU3-0007Ng-Jb for qemu-devel@nongnu.org; Fri, 14 Feb 2014 05:59:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:1334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEGU3-0007Nc-Ax for qemu-devel@nongnu.org; Fri, 14 Feb 2014 05:59:03 -0500 Message-ID: <52FDF6F0.4090405@redhat.com> Date: Fri, 14 Feb 2014 11:58:56 +0100 From: Michal Privoznik MIME-Version: 1.0 References: <52FDE495.4050004@ac.upc.edu> In-Reply-To: <52FDE495.4050004@ac.upc.edu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [libvirt-users] Adjust disk image migration (NBD) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Joaquim Barrera , Libvirt Users Cc: qemu-devel On 14.02.2014 10:40, Joaquim Barrera wrote: > Hi all, > > As I am doing some tests with qemu, I realized that the way it does > 'migrate -i tcp:DEST:444' is not the same as 'libvirt migrate > --copy-storage-inc'. Basically qemu uses the same stream as RAM > migration and libvirt takes advantage of NBD transfer. > > With virsh migrate-setspeed I observed that one can only control the > transfer throughput of RAM, but not disk synchronization. At least this > is what I can see in bmon when doing a migration with incremental copy. > > The question is: Am I missing something or it is not implemented? > > Thank you guys! > I think this is actually a qemu bug. Libvirt passes the correct values: 2014-02-14 10:52:08.010+0000: 27701: debug : qemuMonitorIOWrite:504 : QEMU_MONITOR_IO_WRITE: mon=0x7f06cc00ea20 buf={"execute":"drive-mirror","arguments":{"device":"drive-virtio-disk0","target":"nbd:masina:49153:exportname=drive-virtio-disk0","speed":1048576,"sync":"full","mode":"existing"},"id":"libvirt-15"} ... 2014-02-14 10:53:51.169+0000: 27701: debug : qemuMonitorIOWrite:504 : QEMU_MONITOR_IO_WRITE: mon=0x7f06cc00ea20 buf={"execute":"migrate_set_speed","arguments":{"value":1048576},"id":"libvirt-221"} 2014-02-14 10:53:51.204+0000: 27701: debug : qemuMonitorIOWrite:504 : QEMU_MONITOR_IO_WRITE: mon=0x7f06cc00ea20 buf={"execute":"migrate","arguments":{"detach":true,"blk":false,"inc":false,"uri":"fd:migrate"},"id":"libvirt-223"} However I observe what you do - disk migration is not shaped, while internal state is. Michal