WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] "xm save" hanging when saving domain in "pause" state

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] "xm save" hanging when saving domain in "pause" state
From: "Claris Castillo" <claris.castillo@xxxxxxxxx>
Date: Fri, 14 Jul 2006 16:08:55 -0700
Delivery-date: Sun, 16 Jul 2006 09:35:54 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=kMl6ti7lBMLjl6JPm20Ea6Ol+LykEx7htkTviz99BPuuq92Xv3IpsTxnvu0MIraQdIpPblhWdBVOF557E5w9QTjJYiD61Dmw6W66j3tQqonTA5ORZ/aJ0KdGVT5wEOzgVJC4t8SMET2M8HSTiCfylk2g6U1soTaZccJuSKu4Ot4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060714223717.GA13794@xxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <c068e800607132232u6d8a95e4h49e2f672287ab3fc@xxxxxxxxxxxxxx> <20060714223717.GA13794@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
 
Thanks for your reply Michael. These are bad news... I am actually looking at options to do offline migration, that is, take snapshots of the VMs state and their corresponding filesystems in order to be able to fire them up in a different host if for some reason the original host they are assigned to crashes at some point. I have found some threads with *very* similar questions in some mailing lists, unfortunately they don't extend to more than two entries and have more questions than answers.
 
 

Ok. Parameter of design? As far as I understand by "pausing" a domain, XEN is basically indicating the scheduler not to give any other slice to that particular VM from that point in time (until the VM is unpaused)  Why can't XEN0 just surpass the scheduler, indicate to the VM that it must disconnect its devices (basically doing an enhanced version of "xm unpause") and put itself in quiescent state, and wait to be notified by the VM (step 2 in your email)?. What is wrong with such approach? Am I missing something? Would not this enable a clean checkpointing procedure?

Thanks

cc
PS Yes, I am aware that checkpointing is in the roadmap. Unfortunately it has a priority level of 2 and I can't wait that long :(

 



 

On 7/14/06, Michael Vrable <mvrable@xxxxxxxxxxx> wrote:
On Thu, Jul 13, 2006 at 10:32:47PM -0700, Claris Castillo wrote:
> Is there any known issue on saving a domain which is in pause state?
> Xen hangs whenever I try to save (by means of xm save command) the state of
> a machine which has been paused (by means of xm pause command). I have been
> looking at the log files etc but I am not able to spot the problem. BTW, xm
> save works prefectly fine if the domain is running or block. The problem is
> when the domain is in pause.

Yes, this is by design.  Save/restore are a cooperative process:
1. Xend notifies the domain that it will be saved
2. The domain disconnects from devices, places itself into a quiescent
   state, and notifies Xen
3. After receiving this notification, xend saves the domain's CPU state
   and memory to a file
Pausing a domain will prevent any progress from being made on step 2
(for the obvious reason--the domain can't run), so saving will hang.

--Michael Vrable

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users



--
Claris Castillo
http://www4.ncsu.edu/~ccastil
PhD. Candidate
Computer Science
North Carolina State University
Raleigh, NC
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users