OpenVZ Forum


Home » General » Support » Still don't understand cpulimit / cpuunits
Still don't understand cpulimit / cpuunits [message #25551] Sat, 29 December 2007 19:49 Go to next message
dermax is currently offline  dermax
Messages: 5
Registered: November 2006
Junior Member
Hi,

I know that this has been discussed very often, but I still don't get the point - sorry. Sad

I have a host machine with Q6600 as CPU. I understand that I have 400 cpulimit units, which I can assign to VEs:

VE #1 gets 100 units, so to say 2.4 GHz
VE #2 gets 50 units, only 1.2 GHz

VE #1 receives 1000 cpuunits, VE #2 2000 cpuunits.

Okay - but how do the cpuunits get in now? I've read a lot of times that the cpuunits only come into play when all ressources are taken. So does it mean in my case, ie. when all other VEs are filling up the CPU power and only 2 GHz are left, the second (#2) VE receives more of the remaining 2 GHz instead the first VE?

Thanks!
Re: Still don't understand cpulimit / cpuunits [message #25553 is a reply to message #25551] Sat, 29 December 2007 21:23 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
dermax wrote on Sat, 29 December 2007 14:49

Hi,

I know that this has been discussed very often, but I still don't get the point - sorry. Sad

I have a host machine with Q6600 as CPU. I understand that I have 400 cpulimit units, which I can assign to VEs:

VE #1 gets 100 units, so to say 2.4 GHz
VE #2 gets 50 units, only 1.2 GHz




See it this way: everytime VE 2 gets 1 cpu units, VE 1 gets 2.

dermax wrote on Sat, 29 December 2007 14:49



VE #1 receives 1000 cpuunits, VE #2 2000 cpuunits.



I think it would behave the same way as 50/100.

Have you read this: http://openvz.org/pipermail/users/2006-June/000224.html


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: Still don't understand cpulimit / cpuunits [message #25554 is a reply to message #25551] Sat, 29 December 2007 23:15 Go to previous messageGo to next message
dermax is currently offline  dermax
Messages: 5
Registered: November 2006
Junior Member
Yeah, but when all resources are available, cpuunits isn't important, right? The cpu usage is just being spread between all VEs, where the maximum depends on the cpulimit value.
Re: Still don't understand cpulimit / cpuunits [message #25555 is a reply to message #25554] Sun, 30 December 2007 01:51 Go to previous message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
You're mixing cpulimit and cpuunits.

cpulimit is a max value, no matter the load on the node.
cpuunits is a minimal value, guaranteeing a cpu share, even if the cpus are fully loaded.

Please see the manual for more info.


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Previous Topic: Centos5: ERROR: No such OS template: install
Next Topic: *SOLVED* VE does not start
Goto Forum:
  


Current Time: Fri Sep 13 02:34:40 GMT 2024

Total time taken to generate the page: 0.04974 seconds