[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] xm save -c


  • To: "Nick Couchman" <Nick.Couchman@xxxxxxxxx>
  • From: "Mike Sun" <msun@xxxxxxxxxx>
  • Date: Fri, 14 Nov 2008 13:35:15 -0500
  • Cc: fabigant@xxxxxxxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx, xen-research@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 14 Nov 2008 10:36:51 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=cynKZThBh6bH98mMki3xmc/9aTYURdxpoOQCF7dltzAAwWq/Aor8Lqo1ddQIaihiLY COwtMmo564rT+uMzhf4bm/hYBA8WYA5NFvc9StZPkSBkDfszqm2GJ21NDyUbct0ChPxe FqY6PAv7t4Js6rLUTrZ5jyXb78FejU9MiQaT8=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

The modification to do a checkpoint using the live migration mechanism
of pre-copying is a trivial one and just something we're benchmarking
against with our CoW solution.  Here's a patch that changes 'xm save
-c' to do the checkpoint using the live migration mechanism instead of
the default way.  Word of warning: it's a hack and I haven't made the
changes necessary so that the checkpoint file won't contain the pages
copied during the copy rounds so the checkpoint file will be much
larger than necessary.

I'm not sure why a checkpoint with pre-copying mechanism hasn't been
enabled in Xen yet as the necessary code is all there.

Cheers,
Mike

diff -r dca3b5e459e3 tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py       Wed Sep 17 15:46:05 2008 +0100
+++ b/tools/python/xen/xend/XendDomain.py       Fri Nov 14 13:28:39 2008 -0500
@@ -1333,7 +1333,8 @@
                 oflags |= os.O_LARGEFILE
             fd = os.open(dst, oflags)
             try:
-                XendCheckpoint.save(fd, dominfo, False, False, dst,
+                live = True
+                XendCheckpoint.save(fd, dominfo, False, live, dst,
                                     checkpoint=checkpoint)
             except Exception, e:
                 os.close(fd)

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.