From 67498860a4e5b78ea10f30c05a9c0579f1e244bf Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 7 Jul 2021 10:27:05 +0200 Subject: [PATCH] conf: cpuunits: adapt description and defaults for cgroup v2 Signed-off-by: Thomas Lamprecht --- PVE/QemuServer.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index be9df1f9..7e615554 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -315,11 +315,13 @@ my $confdesc = { cpuunits => { optional => 1, type => 'integer', - description => "CPU weight for a VM.", - verbose_description => "CPU weight for a VM. Argument is used in the kernel fair scheduler. The larger the number is, the more CPU time this VM gets. Number is relative to weights of all the other running VMs.", + description => "CPU weight for a VM, will be clamped to [1, 10000] in cgroup v2.", + verbose_description => "CPU weight for a VM. Argument is used in the kernel fair scheduler." + ." The larger the number is, the more CPU time this VM gets. Number is relative to" + ." weights of all the other running VMs.", minimum => 2, maximum => 262144, - default => 1024, + default => 'cgroup v1: 1024, cgroup v2: 100', }, memory => { optional => 1,