cpu share for KVM

zzzevaka

New Member
Apr 29, 2015
2
0
1
Hello!


I've created two KVM VM (maximum CPU for both) and set cpuunits:
103 - 1000
104 - 500


When I used 100% CPU on both VM at the same time i saw a splitting CPU fifty-fifty between two VM.


The cpuunits wasn't been configured for cgroup:

root@vds-02:/# cat /proc/vz/fairsched/104/cpu.shares
1024


I've edited this file:
echo 512 > /proc/vz/fairsched/104/cpu.shares


And it works. A splitting CPU works like i want.




Why configuring of cpuunits for KVM by WEB-GUI or qm doesn't work? How can I fix it?


Thanks!
 
Last edited:
Interested to see the answers you get, I think this has been discussed before and I don't think cpu units applies to KVM, only VZ.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!