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.