OpenVZ Forum


Home » General » Support » cpuunits
cpuunits [message #50944] Sun, 08 December 2013 05:37 Go to previous message
grep is currently offline  grep
Messages: 34
Registered: November 2013
Member
Hello,

i know, this topic was already often here and on google, but i dont understand completly cpuunits.

My test server: 200% CPU, 2 Cores.
Current CPU utilization: 121111
Power of the node: 180006

When i want to garantuee one VE 50% CPU share then i would need to assign 90000 cpuunits, right?

I made some tests with stress testers.
When i assign one VE 2000 cpu units, it get on stresser 100% cpu and the other two VEs get 50% cpu (i checked with top).

Shouldnt it be, that at 2000 cpuunits the VE gets around 55% cpu and not 100%? 100% is the half of the total node and i took only 2000.
If i use the full cpu units of the node to the VE (vzctl set 101 --cpuunits 180000), then it is the same result as when i assign only 2000.

Can please sometime spend his time and explain a dumb person like me how this can be?

Please see my test results. Already when i make the interger value +1 the ve get much more cpu. It dont make the results better when i make the interger more high.

Thanks so much, my head is already smoking and my brain working and working but, hmm... ok, please help Smile))

PS: If every VE have the same cpuunits, then it is like fair use of all containers?

Test results:
VE 100, cpuunit 1000
real    1m43.342s
user    1m5.196s
sys     0m0.101s

VE 101, cpuunit 1000
real    1m42.879s
user    1m5.365s
sys     0m0.084s

VE 102, cpuunit 1000
real    1m29.582s
user    1m5.063s
sys     0m0.135s


VE 100, cpuunit 1001
real    0m13.094s

VE 101, cpuunit 1000
real    0m17.058s

VE 102, cpuunit 1000
real    0m16.851s


VE 100, cpuunit 20000
real    1m15.323s
user    1m5.034s
sys     0m0.069s

VE 101, cpuunit 1000
real    1m40.064s
user    1m5.291s
sys     0m0.100s

VE 102, cpuunit 1000
real    1m43.121s
user    1m4.120s
sys     0m0.135s


VE 100, cpuunit 180000
real    1m5.432s
user    1m5.188s
sys     0m0.035s

VE 101, cpuunit 1000
real    1m44.517s
user    1m5.314s
sys     0m0.115s

VE 102, cpuunit 1000
real    1m45.020s
user    1m5.059s
sys     0m0.225s


VE 100, cpuunit 180000
real    1m5.673s
user    1m5.115s
sys     0m0.105s

VE 101, cpuunit 1000
real    1m47.805s
user    1m0.395s
sys     0m0.106s

VE 102, cpuunit 500
real    1m32.997s
user    1m5.217s
sys     0m0.151s


VE 100, cpuunit 1500
real    1m31.839s
user    1m5.296s
sys     0m0.092s

VE 101, cpuunit 1000
real    1m46.488s
user    1m0.188s
sys     0m0.104s

VE 102, cpuunit 2000
real    1m12.817s
user    1m5.029s
sys     0m0.076s

[Updated on: Sun, 08 December 2013 06:16]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: High Load
Next Topic: cpuunits #2
Goto Forum:
  


Current Time: Wed Oct 09 22:19:36 GMT 2024

Total time taken to generate the page: 0.10073 seconds