OpenVZ Forum


Home » General » Support » vzctl set cpuunits and vzcpucheck strange behaviour
vzctl set cpuunits and vzcpucheck strange behaviour [message #38674] Thu, 14 January 2010 21:14 Go to previous message
Paparaciz
Messages: 302
Registered: August 2009
Senior Member
I don't know if I missed something or is it just a bug....

kernel 2.6.18-164.2.1.el5.028stab066.10
vzctl-3.0.23-1

in each HN i have 1 CT runing (httpd, mysql with replication)

so there is a command sequence on HN
#vzctl set 502 --cpuunits 1000 --save
Setting CPU units: 1000
Saved parameters for CT 502

#vzcpucheck
Current CPU utilization: 2000
Power of the node: 160011

ok

#vzctl set 502 --cpuunits 10000 --save
Setting CPU units: 10000
#vzcpucheck
Current CPU utilization: 11000
Power of the node: 160011

emm ok

#vzctl set 502 --cpuunits 30000 --save
Setting CPU units: 30000
#vzcpucheck
Current CPU utilization: 32250
Power of the node: 160011

emmm why 32250 not 31000??

ok, let it be...

# vzctl set 502 --cpuunits 120000 --save
..
Current CPU utilization: 126000

+6000

ok
# vzctl set 502 --cpuunits 130000 --save
Current CPU utilization: 167666
Power of the node: 160011
Warning: hardware node is overcommitted

emm, what??
# vzctl set 502 --cpuunits 124000 --save
..
Current CPU utilization: 126000

# vzctl set 502 --cpuunits 125000 --save
..
Current CPU utilization: 126000

final
# vzctl set 502 --cpuunits 126000 --save
# vzcpucheck
Current CPU utilization: 167666
Power of the node: 160011
Warning: hardware node is overcommitted


so...
why some time vzctl set and vzcpuchkeck gives different expected result.
why setting cpuunits to 126000 gives hardware overcomitted while hardware node has power of 160011
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: service vz start, command not found centOS 5.5
Next Topic: yum update : vzeventmod
Goto Forum:
  


Current Time: Thu Oct 09 10:04:20 GMT 2025

Total time taken to generate the page: 0.07713 seconds