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

Alexandre DERUMIER aderumier at odiso.com
Tue Jun 2 09:25:32 CEST 2015


>>So how do you specify 50% (Note: cpulimit is an integer value)?

We can't.

Is the cpuunit value in vmid.conf in percent ? I never used it.

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.



----- Mail original -----
De: "dietmar" <dietmar at proxmox.com>
À: "aderumier" <aderumier at odiso.com>
Cc: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Mardi 2 Juin 2015 08:52:40
Objet: Re: [pve-devel] [PATCH] implement cpuunit with cgroups

> On June 2, 2015 at 8:27 AM Alexandre DERUMIER <aderumier at odiso.com> wrote: 
> 
> 
> >>why *100 (description states value is already in %)? 
> 
> I think that is cpuunit=1 for 1core ? (same than lxc) , so we need *100 to 
> get it in %. 

So how do you specify 50% (Note: cpulimit is an integer value)? 



More information about the pve-devel mailing list