]> git.proxmox.com Git - qemu-server.git/commitdiff
correct cpuunits range
authorPhilip Abernethy <p.abernethy@proxmox.com>
Mon, 9 Oct 2017 11:40:23 +0000 (13:40 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 17 Oct 2017 12:10:49 +0000 (14:10 +0200)
'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

index 54775c185741be1b41b1e9a65d89b831acb652ad..896089fbf20def19b5f06273531b6d89765a987f 100644 (file)
@@ -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 => {