Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 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.

share|improve this answer
    
CPUs can be loaded w/o context switching actually. –  poige Mar 7 '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 7 '13 at 20:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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