Separate names with a comma.
Discussion in 'Proxmox VE: Installation and configuration' started by CobraHost, Apr 9, 2012.
Is it possible to add CPU limits on Proxmox VE 2.x with KVM ?
How do we do this?
When you are creating a VM and it asks about cores .. If you give the VM 1 core .. it can only use one physical core, this is the way I understand it.
That is not limiting the CPU to a certain amount of units or amount per core.
when we use 100% of 1 core, it raises the CPU usage to around 20% on a 16core AMD CPU.
XEN/VMware you can limit it to a certain amount of Ghz and that won't happen.
From what I understand you can not limit each cpu. You can add weight to a vm so it has more or less priority over CPU time. This really only comes into play (from what I understand) if the Physical cpu is over a certain usage percent. there is some DOCS about it here http://pve.proxmox.com/pve2-api-doc/ expand nodes, qemu, vmid and click on config then put
cpunits: 100 = 10%
cpuunits: 1000 = 100%
That is per core ?
No it dosn't work like that. It is weight based on the numbers given to other running VM's
So we cannot limit single VM using a lot of CPU to 10% ?
It has to be active on every other VPS.
I suggest you read through the WIKI to understand better. But you can limit a VM to the power of one physical CPU. Not less. Now if the Physical cpu useage gets high you can give some VM's more priority over CPU time. But you can not limit a VM to less power. Now i am not a expert but this is how I understand it.