unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#35461] [PATCH] vm: Pass -smp to QEMU to allow use of multiple cores.
@ 2019-04-27 20:43 Christopher Baines
  2019-04-29  7:49 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Baines @ 2019-04-27 20:43 UTC (permalink / raw)
  To: 35461

* 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#35461] [PATCH] vm: Pass -smp to QEMU to allow use of multiple cores.
  2019-04-27 20:43 [bug#35461] [PATCH] vm: Pass -smp to QEMU to allow use of multiple cores Christopher Baines
@ 2019-04-29  7:49 ` Ludovic Courtès
  2019-04-29 20:12   ` bug#35461: " Christopher Baines
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2019-04-29  7:49 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 35461

Christopher Baines <mail@cbaines.net> 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!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#35461: [PATCH] vm: Pass -smp to QEMU to allow use of multiple cores.
  2019-04-29  7:49 ` Ludovic Courtès
@ 2019-04-29 20:12   ` Christopher Baines
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Baines @ 2019-04-29 20:12 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 35461-done

[-- Attachment #1: Type: text/plain, Size: 285 bytes --]


Ludovic Courtès <ludo@gnu.org> writes:

> Christopher Baines <mail@cbaines.net> 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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-04-29 20:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-27 20:43 [bug#35461] [PATCH] vm: Pass -smp to QEMU to allow use of multiple cores Christopher Baines
2019-04-29  7:49 ` Ludovic Courtès
2019-04-29 20:12   ` bug#35461: " Christopher Baines

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).