--- Begin Message ---
Subject: |
[PATCH] vm: Pass -smp to QEMU to allow use of multiple cores. |
Date: |
Sat, 27 Apr 2019 21:43:25 +0100 |
* gnu/build/vm.scm (load-in-linux-vm): Pass (parallel-job-count) to QEMU with
-smp to allow using multiple cores.
---
gnu/build/vm.scm | 1 +
1 file changed, 1 insertion(+)
diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm
index 372cf63c68..ac99d6b1a3 100644
--- a/gnu/build/vm.scm
+++ b/gnu/build/vm.scm
@@ -145,6 +145,7 @@ the #:references-graphs parameter of 'derivation'."
(_ #f))
(apply invoke qemu "-nographic" "-no-reboot"
+ "-smp" (number->string (parallel-job-count))
"-m" (number->string memory-size)
"-object" "rng-random,filename=/dev/urandom,id=guixsd-vm-rng"
"-device" "virtio-rng-pci,rng=guixsd-vm-rng"
--
2.21.0
--- End Message ---
--- Begin Message ---
Subject: |
Re: [bug#35461] [PATCH] vm: Pass -smp to QEMU to allow use of multiple cores. |
Date: |
Mon, 29 Apr 2019 21:12:59 +0100 |
User-agent: |
mu4e 1.0; emacs 26.1 |
Ludovic Courtès <address@hidden> writes:
> Christopher Baines <address@hidden> skribis:
>
>> * gnu/build/vm.scm (load-in-linux-vm): Pass (parallel-job-count) to QEMU with
>> -smp to allow using multiple cores.
>
> Good idea, LGTM!
Great, I've pushed this to master now.
signature.asc
Description: PGP signature
--- End Message ---