aboutsummaryrefslogtreecommitdiffstats
path: root/tools/remus
diff options
context:
space:
mode:
authorShriram Rajagopalan <rshriram@cs.ubc.ca>2011-12-01 15:36:51 +0000
committerShriram Rajagopalan <rshriram@cs.ubc.ca>2011-12-01 15:36:51 +0000
commitd18429eabf8eef1b63e9f531e99d181533cfff90 (patch)
treeb23324d2a4b710535ae1d729020f0b617a5978bb /tools/remus
parentf6b3d39f5d316079add221d893e28009354b3f07 (diff)
downloadxen-d18429eabf8eef1b63e9f531e99d181533cfff90.tar.gz
xen-d18429eabf8eef1b63e9f531e99d181533cfff90.tar.bz2
xen-d18429eabf8eef1b63e9f531e99d181533cfff90.zip
remus: command line switch to enable/disable checkpoint compression
Add a command line switch to remus script that allows the user to enable or disable checkpoint compression in the libxc code. Signed-off-by: Shriram Rajagopalan <rshriram@cs.ubc.ca> Acked-by: Brendan Cully <brendan@cs.ubc.ca> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/remus')
-rw-r--r--tools/remus/remus10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/remus/remus b/tools/remus/remus
index 93a7eb8415..38f03650a3 100644
--- a/tools/remus/remus
+++ b/tools/remus/remus
@@ -16,6 +16,9 @@ from xen.xend import XendOptions
class CfgException(Exception): pass
class Cfg(object):
+
+ REMUS_FLAGS_COMPRESSION = 1
+
def __init__(self):
# must be set
self.domid = 0
@@ -25,6 +28,7 @@ class Cfg(object):
self.port = XendOptions.instance().get_xend_relocation_port()
self.interval = 200
self.netbuffer = True
+ self.flags = self.REMUS_FLAGS_COMPRESSION
self.timer = False
parser = optparse.OptionParser()
@@ -38,6 +42,8 @@ class Cfg(object):
help='replicate to /dev/null (no disk checkpoints, only memory & net buffering)')
parser.add_option('', '--no-net', dest='nonet', action='store_true',
help='run without net buffering (benchmark option)')
+ parser.add_option('', '--no-compression', dest='nocompress', action='store_true',
+ help='run without checkpoint compression')
parser.add_option('', '--timer', dest='timer', action='store_true',
help='force pause at checkpoint interval (experimental)')
self.parser = parser
@@ -56,6 +62,8 @@ class Cfg(object):
self.nullremus = True
if opts.nonet:
self.netbuffer = False
+ if opts.nocompress:
+ self.flags &= ~self.REMUS_FLAGS_COMPRESSION
if opts.timer:
self.timer = True
@@ -190,7 +198,7 @@ def run(cfg):
rc = 0
checkpointer = save.Saver(cfg.domid, fd, postsuspend, preresume, commit,
- interval)
+ interval, cfg.flags)
try:
checkpointer.start()