LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-11-2010, 11:16 AM   #1
soumyacs
LQ Newbie
 
Registered: Oct 2009
Posts: 21

Rep: Reputation: 0
How to reduce load average


Hi all,

How to reduce the load average? I have two linux machines.. now my problem is that both the machines having same configuration and same processes are running in those two machines... But in one machine the load average is more than 3 and in other it is 0.5(when i am using top command).

For this load average one machine(where load average is more) is slow when i am running application on it..

Can anybody pls help me out..?

I want to know how to reduce it...


Thanks in advance
 
Old 02-11-2010, 11:41 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
So what's different in these machines hardware and software-wise? What process are you talking about? Is the process being used similarly, like the same amount of clients, in both machines? Does load stay high from the start or does it gradually settle or does it only happen when used to its limits? If this application has configuration files, is there any difference between them on the two machines? Please try to be as verbose as possible with technical details.
 
Old 02-11-2010, 11:48 AM   #3
soumyacs
LQ Newbie
 
Registered: Oct 2009
Posts: 21

Original Poster
Rep: Reputation: 0
In case of h/w and s/w both the machines are same.. no difference between them..

Same java processes are running in both the machine..

No difference between the configuration files...

I found the load avg of one is machine is gradually increase from 2.5 to 3.. and it stat with 2.4...

and another machine it is 0.4 to 0.6...

I am not understanding that if the configurations are same the why the diffrnc between the load avg and it leads to the slow performance of a machine
 
Old 02-11-2010, 12:54 PM   #4
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,801

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by soumyacs View Post
In case of h/w and s/w both the machines are same.. no difference between them..

Same java processes are running in both the machine..

No difference between the configuration files...

I found the load avg of one is machine is gradually increase from 2.5 to 3.. and it stat with 2.4...

and another machine it is 0.4 to 0.6...
You mentioned that there are some Java processes running. What do they do? Have you run "top" on both systems to see what processes are using the most CPU time? Perhaps one system is being hit across the network and those Java processes are working a lot harder on the high load system.

Can you cut-n-paste the "top" output from both systems into a reply to this thread? It'll help if we can see what's going on.

--
Rick
 
Old 02-12-2010, 12:40 AM   #5
soumyacs
LQ Newbie
 
Registered: Oct 2009
Posts: 21

Original Poster
Rep: Reputation: 0
after executing top command on two machines...

Machine which is faster than the other-
top - 20:18:22 up 3:05, 4 users, load average: 0.11, 0.21, 0.26
Tasks: 160 total, 3 running, 157 sleeping, 0 stopped, 0 zombie
Cpu(s): 45.4% us, 1.0% sy, 0.0% ni, 53.3% id, 0.0% wa, 0.3% hi, 0.0% si
Mem: 511944k total, 505896k used, 6048k free, 34868k buffers
Swap: 1024116k total, 305188k used, 718928k free, 45700k cached

Machine which is slow-

top - 20:10:08 up 1 day, 11:26, 4 users, load average: 2.37, 2.30, 2.33
Tasks: 187 total, 1 running, 186 sleeping, 0 stopped, 0 zombie
Cpu(s): 8.7% us, 1.0% sy, 0.0% ni, 73.6% id, 16.6% wa, 0.1% hi, 0.1% si
Mem: 511944k total, 506184k used, 5760k free, 34392k buffers
Swap: 1024116k total, 512056k used, 512060k free, 13936k cached
 
Old 02-12-2010, 12:51 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Actually, we need to see that and the top 5 or 10 processes running at that time, so we can see the load AND what's causing it.
 
Old 09-28-2012, 12:22 AM   #7
gopa
LQ Newbie
 
Registered: Aug 2011
Posts: 13

Rep: Reputation: Disabled
How to Reduce Load Average in Linux

There are few factors that determine the Load Average of the Server Load. If the server uses dual processors the acceptable server load average is 2.00. This load is considered optimal.

Give the command "top" and check which process is utilizing more resources.

Check for mainly these processes.

1)sendmail

2)mysql

3)java.

These applications running status depend upon the applications you install and use them.

Most of the times sendmail process will run multiple times. So once restart the sendmail process to make it normal.

/etc/init.d/sendmail restart


Thanks & Regards,
Gopal Varma
 
Old 09-28-2012, 03:52 AM   #8
abhinav4
Member
 
Registered: Jun 2010
Location: India
Distribution: Fedora/Cent OS
Posts: 123

Rep: Reputation: 0
give top output from both the machines for better understanding of others
 
Old 09-28-2012, 08:02 AM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Guys, my last query/answer was 2 years ago; I'd let this one go.
 
  


Reply



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
does killing child processes help reduce CPU load average?? expeliarmus Linux - Software 2 08-02-2007 02:12 AM
does killing child processes reduce CPU load average?? expeliarmus Linux - General 2 08-02-2007 12:43 AM
does killing child processes reduce CPU load average?? expeliarmus Programming 1 08-02-2007 12:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:02 PM.

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