From 42f4c75ad75879db48e97f2ae0e2771aad56c439 Mon Sep 17 00:00:00 2001 From: David James Date: Wed, 16 Nov 2011 18:59:53 -0800 Subject: [PATCH] Update KVM to simulate up to 4 CPUs. This allows KVM stage to run significantly faster. On my machine, with this change I was able to run the pre-flight queue VM update tests in ~369 seconds, compared to the normal time of >1000 seconds. BUG=chromium-os:23112, chromium-os:22784 TEST=Verify speed increase, trybot runs. Change-Id: Ic27dd1719573fb50a412a0cfe39adf5408493ea8 Reviewed-on: https://gerrit.chromium.org/gerrit/11835 Commit-Ready: David James Reviewed-by: David James Tested-by: David James --- lib/cros_vm_lib.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cros_vm_lib.sh b/lib/cros_vm_lib.sh index 269b082863..ccf0abb7e3 100644 --- a/lib/cros_vm_lib.sh +++ b/lib/cros_vm_lib.sh @@ -90,6 +90,7 @@ function start_kvm() { fi sudo kvm -m 1024 \ + -smp 4 \ -vga std \ -pidfile "${KVM_PID_FILE}" \ -daemonize \