OpenVZ Forum


Home » General » Support » What happen when i assign more cpu than is available?
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
votsalo is currently offline  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.
 
Read Message
Read Message
Previous Topic: OpenVPN *CLIENT* on OpenVZ VPS
Next Topic: Migrate from openvz version 2.x to 3.x
Goto Forum:
  


Current Time: Mon Nov 11 03:49:34 GMT 2024

Total time taken to generate the page: 0.03465 seconds