From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHX0W-0004YR-9Y for qemu-devel@nongnu.org; Mon, 18 Mar 2013 06:09:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHX0R-0005wf-38 for qemu-devel@nongnu.org; Mon, 18 Mar 2013 06:09:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHX0Q-0005vQ-Rs for qemu-devel@nongnu.org; Mon, 18 Mar 2013 06:09:27 -0400 Message-ID: <5146E7B8.9000204@redhat.com> Date: Mon, 18 Mar 2013 11:08:56 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <5142CCB6.7000004@linux.vnet.ibm.com> <20130315145100.GA17187@stefanha-thinkpad.redhat.com> <5146B6F2.3030004@linux.vnet.ibm.com> <20130318090430.GB2476@dhcp-200-207.str.redhat.com> In-Reply-To: <20130318090430.GB2476@dhcp-200-207.str.redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC] qmp interface for save vmstate to image List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Juan Quintela , Stefan Hajnoczi , qemu-devel , Dietmar Maurer , Wenchao Xia Il 18/03/2013 10:04, Kevin Wolf ha scritto: > Oh, seems I misread this then. I thought this was about internal live > snapshots, which is a feature that I consider really useful. I'm not so > sure if saving the VM state as the disk contents of a qcow2 image is > really helpful. > > If zero clusters help a lot, then there's clearly something to improve > in the migration protocol, because it shouldn't send so many zeros in > the first place. Zero pages are sent as a single 9-byte entry (64 bits for the address and flags, 8 for the zero). I don't expect the migration stream to have a single zero cluster, since every page is prefixed by the 64 bits for the address and flags. Furthermore, the RAM data would be horribly unaligned because of this. 15-20% sectors or so would be read twice, since reading each page (4104 bytes including the address and flags) would span 10 sectors (5120 bytes). Paolo