[Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-09 Thread Chijianchun
Now in KVM, when RAM snapshot, vcpus needs stopped, it is Unfriendly restrictions to users. Are there plans to achieve ram live Snapshot feature? in my mind, Snapshots can not occupy additional too much memory, So when the memory needs to be changed, the old memory page is needed to flush to th

Re: [Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-09 Thread Paolo Bonzini
Il 09/08/2013 12:20, Chijianchun ha scritto: > Now in KVM, when RAM snapshot, vcpus needs stopped, it is Unfriendly > restrictions to users. > > Are there plans to achieve ram live Snapshot feature? > > in my mind, Snapshots can not occupy additional too much memory, So when > the memory needs

Re: [Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-09 Thread Anthony Liguori
Chijianchun writes: > Now in KVM, when RAM snapshot, vcpus needs stopped, it is Unfriendly > restrictions to users. > > Are there plans to achieve ram live Snapshot feature? I think you mean a live version of the savevm command. You can approximate live migrating to a file, creating an externa

Re: [Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-09 Thread Eric Blake
On 08/09/2013 09:45 AM, Anthony Liguori wrote: > Chijianchun writes: > >> Now in KVM, when RAM snapshot, vcpus needs stopped, it is Unfriendly >> restrictions to users. >> >> Are there plans to achieve ram live Snapshot feature? > > I think you mean a live version of the savevm command. > > Yo

Re: [Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-12 Thread Stefan Hajnoczi
On Fri, Aug 09, 2013 at 10:20:49AM +, Chijianchun wrote: > Now in KVM, when RAM snapshot, vcpus needs stopped, it is Unfriendly > restrictions to users. > > Are there plans to achieve ram live Snapshot feature? > > in my mind, Snapshots can not occupy additional too much memory, So when the

Re: [Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-12 Thread Alex Bligh
--On 12 August 2013 11:59:03 +0200 Stefan Hajnoczi wrote: The idea that was discussed on qemu-devel@nongnu.org uses fork(2) to capture the state of guest RAM and then send it back to the parent process. The guest is only paused for a brief instant during fork(2) and can continue to run aft

Re: [Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-12 Thread Stefan Hajnoczi
On Mon, Aug 12, 2013 at 12:26 PM, Alex Bligh wrote: > --On 12 August 2013 11:59:03 +0200 Stefan Hajnoczi > wrote: > >> The idea that was discussed on qemu-devel@nongnu.org uses fork(2) to >> capture the state of guest RAM and then send it back to the parent >> process. The guest is only paused f

Re: [Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-12 Thread Wenchao Xia
于 2013-8-12 19:33, Stefan Hajnoczi 写道: On Mon, Aug 12, 2013 at 12:26 PM, Alex Bligh wrote: --On 12 August 2013 11:59:03 +0200 Stefan Hajnoczi wrote: The idea that was discussed on qemu-devel@nongnu.org uses fork(2) to capture the state of guest RAM and then send it back to the parent process

Re: [Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-13 Thread Stefan Hajnoczi
On Tue, Aug 13, 2013 at 4:53 AM, Wenchao Xia wrote: > 于 2013-8-12 19:33, Stefan Hajnoczi 写道: > >> On Mon, Aug 12, 2013 at 12:26 PM, Alex Bligh wrote: >>> >>> --On 12 August 2013 11:59:03 +0200 Stefan Hajnoczi >>> wrote: >>> The idea that was discussed on qemu-devel@nongnu.org uses fork(2) t

Re: [Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-13 Thread Wenchao Xia
于 2013-8-13 16:21, Stefan Hajnoczi 写道: On Tue, Aug 13, 2013 at 4:53 AM, Wenchao Xia wrote: 于 2013-8-12 19:33, Stefan Hajnoczi 写道: On Mon, Aug 12, 2013 at 12:26 PM, Alex Bligh wrote: --On 12 August 2013 11:59:03 +0200 Stefan Hajnoczi wrote: The idea that was discussed on qemu-devel@nongn

Re: [Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-14 Thread Stefan Hajnoczi
On Wed, Aug 14, 2013 at 3:54 AM, Wenchao Xia wrote: > 于 2013-8-13 16:21, Stefan Hajnoczi 写道: > >> On Tue, Aug 13, 2013 at 4:53 AM, Wenchao Xia >> wrote: >>> >>> 于 2013-8-12 19:33, Stefan Hajnoczi 写道: >>> On Mon, Aug 12, 2013 at 12:26 PM, Alex Bligh wrote: > > > --On 12 August 20

Re: [Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-14 Thread Alex Bligh
On 14 Aug 2013, at 08:53, Stefan Hajnoczi wrote: > The fork child can minimize the chance of out-of-memory by using > madvise(MADV_DONTNEED) after pages have been written out. This may also be helpful (last clause) before starting writing. MADV_SEQUENTIAL Expect page refer

Re: [Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-14 Thread Wenchao Xia
于 2013-8-14 15:53, Stefan Hajnoczi 写道: > On Wed, Aug 14, 2013 at 3:54 AM, Wenchao Xia > wrote: >> 于 2013-8-13 16:21, Stefan Hajnoczi 写道: >> >>> On Tue, Aug 13, 2013 at 4:53 AM, Wenchao Xia >>> wrote: 于 2013-8-12 19:33, Stefan Hajnoczi 写道: > On Mon, Aug 12, 2013 at 12:26 PM, Al

Re: [Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-15 Thread Stefan Hajnoczi
On Thu, Aug 15, 2013 at 10:26:36AM +0800, Wenchao Xia wrote: > 于 2013-8-14 15:53, Stefan Hajnoczi 写道: > > On Wed, Aug 14, 2013 at 3:54 AM, Wenchao Xia > > wrote: > >> 于 2013-8-13 16:21, Stefan Hajnoczi 写道: > >> > >>> On Tue, Aug 13, 2013 at 4:53 AM, Wenchao Xia > >>> wrote: > > 于 2013-

Re: [Qemu-devel] Are there plans to achieve ram live Snapshot feature?

2013-08-15 Thread Wenchao Xia
于 2013-8-15 15:49, Stefan Hajnoczi 写道: On Thu, Aug 15, 2013 at 10:26:36AM +0800, Wenchao Xia wrote: 于 2013-8-14 15:53, Stefan Hajnoczi 写道: On Wed, Aug 14, 2013 at 3:54 AM, Wenchao Xia wrote: 于 2013-8-13 16:21, Stefan Hajnoczi 写道: On Tue, Aug 13, 2013 at 4:53 AM, Wenchao Xia wrote: 于 2013