OpenVZ Forum


Home » General » Support » Incorrect load average
Incorrect load average [message #21013] Sun, 30 September 2007 12:19 Go to next message
sspt is currently offline  sspt
Messages: 100
Registered: August 2006
Location: Portugal
Senior Member
The host load average seems to be a sum of the VPS laverage:

[root@xx ~]# vzlist -o laverage,cpulimit
      LAVERAGE  CPULIM
0.00/0.00/0.00       0
0.00/0.00/0.00       0
3.54/2.82/1.79      26
0.00/0.00/0.00       0
0.00/0.00/0.00       0


top - 05:12:05 up 15 days, 19:49,  1 user,  load average: 3.56, 2.82, 1.78
Tasks: 291 total,   3 running, 288 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.2%us,  6.3%sy,  0.0%ni, 92.9%id,  0.1%wa,  0.0%hi,  0.5%si,  0.0%st
Mem:   8140924k total,  6908692k used,  1232232k free,   647508k buffers
Swap:  2031608k total,       28k used,  2031580k free,  5522328k cached


When we limit the cpu the host load average gets higher
top - 05:12:05 up 15 days, 19:49,  1 user,  load average: 3.56, 2.82, 1.78

but the real usage get's lower (as it should)
Cpu(s):  0.2%us,  6.3%sy,  0.0%ni, 92.9%id,  0.1%wa,  0.0%hi,  0.5%si,  0.0%st


Shouldn't the host load average be calculated based on the host stats instead of the vps stats?


http://static.openvz.org/userbars/openvz-user.png
Re: Incorrect load average [message #21097 is a reply to message #21013] Mon, 01 October 2007 18:12 Go to previous message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
HN Load avg is the number of procs in the runqueue. If a VE has a very low cpulimit, it can have a high load despite low amounts of work being done (high amount of idle cpu %). Due to this, the HN load can be very deceiving.

For example- take a VE, set cpulimit to 2, start it, and run 100 cpuburn processes inside. now look at you HN's load and also the idle/user cpu %. you will see the cpus are doing almost nothing yet the load is around 100.

Rick


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Previous Topic: *SOLVED* X server in VE, can't install udev on debian etch
Next Topic: venet bridge dont work[CentOS]
Goto Forum:
  


Current Time: Fri Apr 19 15:01:20 GMT 2024

Total time taken to generate the page: 0.02461 seconds