From 237239bf60f874e5cfc66298b4765238d865e912 Mon Sep 17 00:00:00 2001 From: Philip Abernethy Date: Mon, 9 Oct 2017 13:40:23 +0200 Subject: [PATCH] correct cpuunits range MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 'These options take an integer value and control the "cpu.shares" control group attribute. The allowed range is 2 to 262144. Defaults to 1024.' – man 5 systemd.resource-control --- PVE/QemuServer.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 54775c18..896089fb 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -214,9 +214,9 @@ my $confdesc = { 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.\n\nNOTE: You can disable fair-scheduler configuration by setting this to 0.", - minimum => 0, - maximum => 500000, + 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, }, memory => {