|
Re: What happen when i assign more cpu than is available? [message #50598 is a reply to message #50592] |
Fri, 20 September 2013 09:33 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) |
votsalo
Messages: 26 Registered: December 2011 Location: Greece
|
Junior Member |
|
|
You cannot assign more cpu than is available.
read the man page for vzctl for --cpuunits and --cpus.
Also read the wiki. Search for "cpuunits".
(It explains cpuunits and cpulimit, but not cpus).
I'm not sure exactly how cpuunits and cpus relate to each other. If the host has 4 cpus and you create two containers with:
A: 1 cpu, 1000 cpuunits
B: 4 cpus, 1000 cpuunits
I assume that because container A sees only 1 cpu, it can use only 25% of the total cpu time, even though it is allocated 50% of it. I conclude that a container gets assigned the minimum of the cpu allocation and the cpuunits allocation.
|
|
|