From 5e767b34a5b5e8d1ba2b572cae07a94ab32329e6 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Thu, 24 Apr 2008 07:35:04 +0000 Subject: [PATCH] Implement memory size option for burnin This simple patch adds memory size for the burnin instances, which helps testing allocator algorithm response based on the available node memory and instance memory size values. Reviewed-by: ultrotter --- tools/burnin | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/burnin b/tools/burnin index 0878f0bac..23a82e649 100755 --- a/tools/burnin +++ b/tools/burnin @@ -112,6 +112,8 @@ class Burner(object): default=4 * 1024, type="unit", metavar="<size>") parser.add_option("--swap-size", dest="swap_size", help="Swap size", default=4 * 1024, type="unit", metavar="<size>") + parser.add_option("--mem-size", dest="mem_size", help="Memory size", + default=128, type="unit", metavar="<size>") parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False, help="print command execution messages to stdout") @@ -216,7 +218,7 @@ class Burner(object): Log("- Add instance %s on nodes %s/%s" % (instance, pnode, snode)) op = opcodes.OpCreateInstance(instance_name=instance, - mem_size=128, + mem_size=self.opts.mem_size, disk_size=self.opts.os_size, swap_size=self.opts.swap_size, disk_template=self.opts.disk_template, -- GitLab