[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 231
  • Last Modified:

Load Average-----some conception to ask

 i just found my linux6.2 server respond very slow,i use
"top" and found the the load average is about 24,and this
cause my sendmail stop,so i restart sendmail,the system is
ok,and the load average get down,SO,it seems that SENDMAIL
cause such a big load average,but /var/log/maillog say not
hing strange.
  first,i want to know if i found the load average is too
large,how to reduce it & how to check why this for??
  if you can give me some URL to introduce more about load
average or tuning system working,i will be very glad.
  (BTW,i use the "vmstat" to check this server,and,found
the "b" of "procs" is 5,but "r" & "w" is 0,it's sth happen
ded,right?)
 
0
wingboad
Asked:
wingboad
  • 2
  • 2
1 Solution
 
MFCRichCommented:
Load average is the average number of processes that the scheduler has to choose from when it decides which process is going to run next. I go by the rule of thumb that load average should be lower than the number of CPUs in the box. A friend of mine uses the rule that if you have N CPUs then load average should be N-0.2 or lower.

The best way to reduce load average is to make sure you are not running anything you don't have to or schedule things to run at different times so they don't compete with each other.

You should also notice what the idle % is from top. It is sometimes a better indication of how heavily burden your system is. (Higher idle % means less burden)

0
 
wingboadAuthor Commented:
 ok,the strange thing is the idle % is quite well,about 50
% or more left,but the load average is bigger than your rul
e said,i wondered when i restart the sendmail service,the f
irst number of Load Average(LA) is low,less than my CPU No.
but the second & third number is still 2 or 3 times than i
dle status. BTW,i don't run any strange or extreme services
on my server,all of them are normal and neccesary.
  also,how can i tune my system about LA,idle CPU,and free
MEMORY like that. thank you
0
 
MFCRichCommented:
Using top you should be able to see both the total number of processes on your system and those that are running? Using shift-P will sort them by CPU usage.

The three numbers for load average represent your LA for different time periods. I'm not sure if these figure are exactly right but the first one is LA for last 5 seconds, the 2nd is for the last minute and the 3rd is for the last 10 minutes.

Also, some servers (like the apache web server) can fork a large number of children at start up. Look for processes with large numbers of instances running. The configuration file for the server in question should allow you to control this.

As for tuning LA, idle CPU, and memory the only real way to do this is not to run as many processes, buy a faster CPU, or buy more memory
0
 
wingboadAuthor Commented:
ok,it seems that i can just do little about it,but,thanks
for your answer,i will accept it
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now