Proxmox Cpulimit doesnt work

ggsmarket

Member
Oct 9, 2014
37
0
6
vpscheaper.com
Hi,

I tried to limit CPU % by qm set VMID --cpulimit <value>
And reboot VM, now this value is in vm config file.

But it still load very high. I mean over 50% per CPU. (that VM has only 1 CPU and i set 50 for it).

THank you.
 
I think you mean different things. I have done same things on testvm. I can't set 50 at the webinterface in cpulimit. 50 says 50cores. That what you mean are the units. But also when you set the units you doesn't see that the machine consumes fewer load. You set only the cpu time what the guest gets. Example:

Code:
...
cores: 8
cpulimit: 6
cpuunits: 250000
vcpus: 2
...

So for the VM it looks likes here that she has 2 Cores. You can go up to max 6 Cores. Ok this makes no sense, but only for an example. Better were an cpulimit for 8. Cpuunits says 250000. That are 50% of the set cpu's (vcpus: 2). When you don't set vcpus an cpulimit, next example:

Code:
...
cores: 32
cpuunits: 250000
...

For example this PVEhost have 32 real cores. Then you have with this example full 50% from this cputime.

Best Regards