0

Does loadavg affect the CPU usage?

Say I see a process consuming 60% of CPU time, both when loadavg (last minute) was 5 and 1, would it be the same?

Kevin
  • 40,767
daisy
  • 54,555

1 Answers1

1

Load average is a calculation of the average number of processes is the CPU's runnable queue. Having a high load average doesn't necessarily mean high CPU usage, since the processes could be waiting on I/O. Higher loads due require the CPU to do more context switching.

jordanm
  • 42,678
  • CPUs can be loaded w/o context switching actually. – poige Mar 07 '13 at 12:26
  • No... a process waiting on I/O is (by definition) not runnable. A high load average means that whenever the CPU finishes a job, other(s) are waiting, so the utilization will be high. It has nothing to do with the fraction of CPU time any particular process is using. – vonbrand Mar 07 '13 at 20:52