Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

What is the best way to determine in Linux if a multi-processor machine is overloaded? I thought load was a good measure but I run a large number of tasks which don't consume a lot of CPU but which drive up the load. A 4 processor machine has a load of 66 right now according to top for example but mpstat reports that the all CPU idle time is 89%.

share|improve this question
1  
Load is a terrible way of telling if you're short on CPU power. –  Ignacio Vazquez-Abrams Jun 29 '11 at 19:56
    
Yes I know - that's the purpose of the question :) They're a decent rule of thumb but I'm looking for something better. Really, I need a metric that shows me whether processes are waiting to be allocated. –  balor123 Jun 29 '11 at 20:15
add comment

1 Answer

Keep in mind that top displays 3 load averages. This is the line from my box:

load average: 0.02, 0.08, 0.12

The first number is the one minute average, second is 5 minute and the third is 15 minute. If you're only looking at the one minute average, that's not good enough. Standard rule of thumb is that the load should not be greater than 1 in a single core, 2 for dual core, etc. So, for example's sake, let's say you're running a quad core box. Anything above 4 is overloaded. That being said, you may see spikes in the one minute load average, but the 5 and 15 minute may still be fine.

Another explanation can be found here: http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages

share|improve this answer
    
Load from top is 73, 72, 70. I don't think averages are going to solve this problem. mpstat idle now 89%. –  balor123 Jun 29 '11 at 20:13
add comment

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.