OpenVZ Forum


Home » General » Support » What happen when i assign more cpu than is available?
What happen when i assign more cpu than is available? [message #50592] Wed, 18 September 2013 20:48 Go to next message
postcd is currently offline  postcd
Messages: 73
Registered: April 2013
Member
Hello,

i think CPU is not burstable in OpenVZ VMs, so i want to ask what happen when the cpu is distributed between VMs and there is no more free cpu units, cpu Mhz.., what if i create new VM with big cpu time assigned to it?

[Updated on: Wed, 18 September 2013 20:51]

Report message to a moderator

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.
Previous Topic: OpenVPN *CLIENT* on OpenVZ VPS
Next Topic: Migrate from openvz version 2.x to 3.x
Goto Forum:
  


Current Time: Mon May 06 05:30:10 GMT 2024

Total time taken to generate the page: 0.01862 seconds