31

Okay, I'm very much a Windows user myself, so my knowledge of Linux-y type things is a bit limited.

However it was my general understanding that "Load Average" is an indication of how many processed are being run at any given time, on average over the last minute, five minutes and... fifteen minutes?

Anyway, I've been monitoring my server because we had a big opening and lots of people!

See?

I've been watching top and noticed something that seemed contrary to what I thought I knew.

If the load average is at 7, with 4 hyper-threaded processors, shouldn't that means that the CPU is working to about 7/8 capacity?

Why, then was it showing 50.0%id? How can it be idle half the time?

1

1 Answer 1

95

top shows CPU utilization for running processes while load average shows (since 1993) number of running processes plus number of processes in the uninterruptible state. Processes waiting for work do not consume CPU. As a result top CPU utilization is less that 7/8 * 100%.

Source: http://www.brendangregg.com/blog/2017-08-08/linux-load-averages.html

2
  • Sorry for the delay in getting back to you - I must have missed the notification for this question in my power Stack Overflowing! But +1 and Accepted for a very thorough answer. Thank you! Mar 11, 2014 at 18:41
  • Even skwllsp has given a detailed answer but it is hard to understand by avg load vs no. of running processes. so to understand it there is simple formula that for a single cpu machine avg load 1 denotes to 100% cpu utilization...while fora 4 cpu machine avg load 4 denotes to 100% cpu uitlization, so avg load 1 for 4 cpu machine means 25% cpu utilization.. Aug 5, 2015 at 5:12

Not the answer you're looking for? Browse other questions tagged or ask your own question.