Commit d0ffa390 authored by Pedro Macedo's avatar Pedro Macedo Committed by Iustin Pop
Browse files

Add a flag to burnin to allow specifying VCPU count.


Signed-off-by: default avatarPedro Macedo <pmacedo@google.com>
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 5abecc1c
......@@ -126,6 +126,9 @@ OPTIONS = [
default=128, type="unit", metavar="<size>",
completion_suggest=("128M 256M 512M 1G 4G 8G"
" 12G 16G").split()),
cli.cli_option("--vcpu-count", dest="vcpu_count", help="VCPU count",
default=3, type="unit", metavar="<count>",
completion_suggest=("1 2 3 4").split()),
cli.DEBUG_OPT,
cli.VERBOSE_OPT,
cli.NOIPCHECK_OPT,
......@@ -471,7 +474,7 @@ class Burner(object):
self.instances = args
self.bep = {
constants.BE_MEMORY: options.mem_size,
constants.BE_VCPUS: 1,
constants.BE_VCPUS: options.vcpu_count,
}
self.hypervisor = None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment