From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tij89-000140-ST for qemu-devel@nongnu.org; Wed, 12 Dec 2012 05:01:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tij7w-0005JD-DJ for qemu-devel@nongnu.org; Wed, 12 Dec 2012 05:01:33 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tij7w-0005J2-60 for qemu-devel@nongnu.org; Wed, 12 Dec 2012 05:01:20 -0500 Message-ID: <50C855B6.80507@redhat.com> Date: Wed, 12 Dec 2012 11:00:22 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <24E144B8C0207547AD09C467A8259F7557871C7B@lisa.maurer-it.com> <1755108635.21844346.1355301038964.JavaMail.root@redhat.com> <24E144B8C0207547AD09C467A8259F75578A82E5@lisa.maurer-it.com> In-Reply-To: <24E144B8C0207547AD09C467A8259F75578A82E5@lisa.maurer-it.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH 0/2] live backup vm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dietmar Maurer Cc: "kwolf@redhat.com" , "stefanha@gmail.com" , "aliguori@us.ibm.com" , "qemu-devel@nongnu.org" , "blauwirbel@gmail.com" Il 12/12/2012 10:03, Dietmar Maurer ha scritto: >>> So our snapshot implementation uses the following steps: >>> >>> 1.) qmp: savevm-start [statefile] >>> >>> This save the VM state into [statefile] and then stops the VM. >> >> That's migrate exec:cat>statefile (or similar) > > We save to block devices, so we need to allocate them in advance > with a size of 2 x 'memory size'. > So we have an upper limit for the state file file, i.e. we stop the > VM if ('statefile size' > 'assigned memory'). This is a heuristic that we can add (though remember you'll need some extra space for the device state). > It would be great to have some other means to reduce state size (instead > of stopping the VM), for example by slowing down the VM somehow? Yes, you can use the cpu cgroup. Paolo > Any other ideas? >