[pve-devel] [PATCH qemu-server] correct cpuunits range

Fabian Grünbichler f.gruenbichler at proxmox.com
Mon Oct 9 13:22:27 CEST 2017


On Mon, Oct 09, 2017 at 01:06:57PM +0200, Philip Abernethy wrote:
> '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
> ---
> Concerns #1321
> 
>  PVE/QemuServer.pm | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
> index 2b6fda9..e1d78ab 100644
> --- a/PVE/QemuServer.pm
> +++ b/PVE/QemuServer.pm
> @@ -215,8 +215,8 @@ my $confdesc = {
>  	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.",

isn't this note wrong now? ;)

> -	minimum => 0,
> -	maximum => 500000,
> +	minimum => 2,
> +	maximum => 262144,
>  	default => 1024,
>      },
>      memory => {
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel



More information about the pve-devel mailing list