LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-02-2006, 10:18 AM   #1
The00Dustin
Member
 
Registered: Jan 2006
Posts: 70

Rep: Reputation: 15
Load Average with Multiple Processors


I have a server with multiple processors (2x dual core, technically 4 processors). The load average is often above 2.0 for the 1, 5, ond 15 minute averages. I was once taught that having a load average that is consistently above 2 meant it was time to upgrade (processors). I don't think this machine needs upgraded. Can anyone tell me if this load average only appears high because there are 4 processors (i.e. a consistent 8 would be time to upgrade) or at what consistent load average point a Linux box might need a processor upgrade? TIA
 
Old 05-02-2006, 12:24 PM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
You've got it right. "load average" needs to be divided by the number of CPUs when analyzing things. The rule of thumb on many production servers is that the load is high when the load average exceeds "3 or so times the number of CPUs" on a frequent and continuous basis.

A load average is "how many processes are waiting to get time on a CPU". The more CPUs you have, the higher load average you can tolerate.

e.g., a 16 CPU machine is not necessarily considered CPU overloaded until you frequently and consistantly see load averages above 48 (16 * 3 = 48). Everybody has their own rules on this. It's just a guideline.

Your load average of 2 on a 4 CPU machine is roughly equivalent to a load average of 0.5 on a single CPU machine. In other words - not really a problem. You also need to look at load average over a longer period to see what your real long-term average is. Your machine might be very busy during one hour of the day, but that doesn't mean you necessarily need to get more CPUs. Maybe, maybe not. If the machine is loafing during the other 23 hours of the day you may not really care about the bad hour. Depends on how important that one hour high-load performance is to you.
 
Old 05-02-2006, 07:26 PM   #3
The00Dustin
Member
 
Registered: Jan 2006
Posts: 70

Original Poster
Rep: Reputation: 15
Thanks for the detailed reply. I was actually trying to figure out where to set Nagios so it quits waking me up at night. What a lucky guess. =)
 
Old 05-02-2006, 09:07 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,008

Rep: Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099
Quote:
Originally Posted by haertig
A load average is "how many processes are waiting to get time on a CPU".
Not strictly - it's a combination of tasks on the runqueue and waiting I/O. Have a look at the man for proc, and check out the description for /proc/loadavg
Quote:
The more CPUs you have, the higher load average you can tolerate.
No argument here - wish I had a few more ....
 
Old 05-03-2006, 12:30 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,329

Rep: Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745
You may find this 2 part article informative:
http://www.teamquest.com/resources/g...ay/5/index.htm
http://www.teamquest.com/resources/g...ay/7/index.htm
FYI, on Redhat based systems, after loading top, hit the '1' on the main keybd and it'll show all cpus/cores. Try it on yours.
 
Old 05-03-2006, 09:21 AM   #6
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Originally Posted by The00Dustin
I was actually trying to figure out where to set Nagios so it quits waking me up at night.
I monitor a lot of production servers using Big Brother (apparently a Nagios competetor, based on your context). I cut the notifications way back at night, so it has to be a blatant problem before it will start notifing people.

I'm very familiar with those automated middle-of-the-night notifications! It took a while for me to tune Big Brother's settings to allow me a bit of sleep. All is good now. I keep beefing up my scripts so that the people that cause the problems are the ones that Big Brother now pages. This allows me more sleep, and also tends to make people solve the problems they are causing.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
load average? ampex189 Linux - Newbie 2 03-06-2005 08:17 PM
my Load Average is always 1.0 when processors are idle ouimet Linux - Hardware 2 12-15-2004 10:39 AM
Load average 1.0, 1.0, 1.0 ? belated Linux - Newbie 4 11-30-2003 04:49 PM
Load average calculation ? mikeshn Linux - General 4 08-27-2003 03:53 PM
Average load Cyth Linux - General 1 01-22-2002 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration