]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Drop CPUs= limit
authorDaan De Meyer <daan@amutable.com>
Mon, 11 May 2026 19:58:24 +0000 (21:58 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 11 May 2026 22:13:10 +0000 (23:13 +0100)
Limiting VMs to 2 cpus was cargo culting without any
actual data that this benefits performance. The host OS
has a scheduler, let's make use of it and give the VM access
to all the CPUs. This doesn't mean they become inaccessible to
the host, it just means the VM gets as many virtual CPUs as the
host has CPU cores (threads). How they get scheduled is still up
to the host OS.

mkosi/mkosi.conf

index 2fc087cb73f4092011da32c76add90ae920d73d3..0fbb81eeed23e18331880d1badc6e315f72b2a0c 100644 (file)
@@ -141,7 +141,6 @@ Credentials=
         tty.virtual.tty1.agetty.autologin=root
         tty.virtual.tty1.login.noauth=yes
 RuntimeBuildSources=yes
-CPUs=2
 TPM=yes
 VSock=yes
 KVM=yes