All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Dietmar Maurer <dietmar@proxmox.com>
Cc: "kwolf@redhat.com" <kwolf@redhat.com>,
	"stefanha@gmail.com" <stefanha@gmail.com>,
	"aliguori@us.ibm.com" <aliguori@us.ibm.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"blauwirbel@gmail.com" <blauwirbel@gmail.com>
Subject: Re: [Qemu-devel] [RFC PATCH 0/2] live backup vm
Date: Wed, 12 Dec 2012 11:00:22 +0100	[thread overview]
Message-ID: <50C855B6.80507@redhat.com> (raw)
In-Reply-To: <24E144B8C0207547AD09C467A8259F75578A82E5@lisa.maurer-it.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?
> 

  reply	other threads:[~2012-12-12 10:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-08  8:24 [Qemu-devel] [RFC PATCH 0/2] live backup vm Wenchao Xia
2012-12-07 10:12 ` Dietmar Maurer
2012-12-09  4:37   ` Wenchao Xia
2012-12-09  7:12     ` Dietmar Maurer
2012-12-10  1:37       ` Wenchao Xia
2012-12-10  6:23         ` Dietmar Maurer
2012-12-11  7:14           ` Wenchao Xia
2012-12-11  7:46             ` Dietmar Maurer
2012-12-12  2:16               ` Wenchao Xia
2012-12-12  8:30               ` Paolo Bonzini
2012-12-12  8:50                 ` Dietmar Maurer
2012-12-12  9:03                 ` Dietmar Maurer
2012-12-12 10:00                   ` Paolo Bonzini [this message]
2012-12-08  8:24 ` [Qemu-devel] [RFC PATCH 1/2] live backup vm, export functions Wenchao Xia
2012-12-08  8:24 ` [Qemu-devel] [RFC PATCH 2/2] live backup vm, snapshots all lively Wenchao Xia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50C855B6.80507@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=blauwirbel@gmail.com \
    --cc=dietmar@proxmox.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.