[pve-devel] [PATCH] implement cpuunit with cgroups

Dietmar Maurer dietmar at proxmox.com
Tue Jun 2 10:08:50 CEST 2015


> I'm seeing in qemuserver:
>     cpulimit => {
>         optional => 1,
>         type => 'integer',
>         description => "Limit of CPU usage in per cent. Note if the computer
> has 2 CPUs, it has total of 200% CPU time. Value '0' indicates no CPU
> limit.\n\n.",
> 
> 
> but in lxc
> 
>     cpulimit => {
>         optional => 1,
>         type => 'integer',
>         description => "Limit of CPU usage. Note if the computer has 2 CPUs,
> it has total of '2' CPU time. Value '0' indicates no CPU limit.",
>         minimum => 0,
> 
> 
> That's why I'm confused.

Yes, I am confused too ;-) We can either change the type to float/number, or
use integer percentage. AFAIK vzctl uses percentage like

-cpulimit 100 => 100% 

What do you prefer? 




More information about the pve-devel mailing list