vzctl set cpuunits and vzcpucheck strange behaviour [message #38674] |
Thu, 14 January 2010 21:14  |
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
|
|
|