LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-29-2012, 09:49 AM   #1
linuxandtsm
Member
 
Registered: May 2011
Posts: 194

Rep: Reputation: Disabled
How to determine load on CPU is high


Hi all,

There is a linux server with 4 CPU cores and is having the load average's in the range greater than 7. I am wondering if this should be considered as a high load on CPU ?
What is the rule of thumb to determine this ?

Code:
]# grep cores /proc/cpuinfo
cpu cores       : 1
cpu cores       : 1
cpu cores       : 1
cpu cores       : 1
Code:
 09:48:26 up 225 days, 20:32,  1 user,  load average: 7.70, 7.52, 7.34
Thanks in advance!

Last edited by linuxandtsm; 05-29-2012 at 09:50 AM.
 
Old 05-29-2012, 11:15 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326

Rep: Reputation: 919Reputation: 919Reputation: 919Reputation: 919Reputation: 919Reputation: 919Reputation: 919Reputation: 919
not sure... but heres mine for comparison:
Code:
[schneidz@hyper ~]$ egrep "(processor|name|core id)" /proc/cpuinfo
processor	: 0
model name	: Intel(R) Atom(TM) CPU  230   @ 1.60GHz
core id		: 0
processor	: 1
model name	: Intel(R) Atom(TM) CPU  230   @ 1.60GHz
core id		: 0
[schneidz@hyper ~]$ w
 11:14:14 up 7 days,  2:17,  3 users,  load average: 0.00, 0.02, 0.05
 
Old 05-29-2012, 07:23 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,415

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
Well, one way to get a bit more info is to run 'top', then hit '1' which should display separate figures for each core.
Code:
 top
top - 09:22:33 up 506 days,  1:11,  2 users,  load average: 0.34, 0.33, 0.36
Tasks: 160 total,   1 running, 159 sleeping,   0 stopped,   0 zombie
Cpu0  :  0.2%us,  0.1%sy,  0.0%ni, 99.7%id,  0.1%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu1  :  0.3%us,  0.4%sy,  0.0%ni, 99.0%id,  0.4%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu2  :  0.0%us,  0.3%sy,  0.0%ni, 99.4%id,  0.1%wa,  0.1%hi,  0.1%si,  0.0%st
Cpu3  :  0.3%us,  0.3%sy,  0.0%ni, 99.2%id,  0.1%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu4  :  0.0%us,  0.1%sy,  0.0%ni, 99.7%id,  0.1%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu5  :  0.3%us,  0.4%sy,  0.0%ni, 99.2%id,  0.1%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu6  :  0.0%us,  0.1%sy,  0.0%ni, 99.8%id,  0.1%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu7  :  0.3%us,  0.3%sy,  0.0%ni, 99.1%id,  0.2%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   3368188k total,  3278892k used,    89296k free,   122800k buffers
Swap:  2097144k total,      116k used,  2097028k free,  3006816k cached
My general rules of thumb are:
1. load < 0.1 -> just OS
2. load < 1 ignore
3. load < 5 -> busy but nothing to worry about
4. load < 10 -> busy and users may notice
5. load >= 10 definitely an issue

BUT this all depends on what is normal/what response times are reqd by the users. Some people just can't afford a fast box and always run at eg load = 10.

Last edited by chrism01; 05-29-2012 at 07:28 PM.
 
Old 05-29-2012, 09:53 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,286

Rep: Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165Reputation: 4165
In Linux, CPU busy percentage has only an indirect influence on loadavg. It is not the same concept.
Read this - it's a little dated, but the concepts expounded are still relevant.
 
  


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
[SOLVED] High CPU load, but low CPU usage (high idle CPU) baffy Linux - Newbie 5 03-13-2013 10:24 AM
apache high cpu load on high traffic awww Linux - Newbie 9 10-04-2011 03:22 PM
High load and high cpu kernel usage enid Linux - Server 8 09-30-2010 04:33 AM
Determine cause of high IO Wait on CPU? danraider Linux - Software 2 10-15-2007 10:10 AM
Why am I getting ?high? CPU load? pnh73 Linux - General 15 10-21-2003 11:36 AM

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

All times are GMT -5. The time now is 08:57 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