Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Almost. Linux includes processes in I/O wait, so CPU utilization doesn't map directly to load. A system can have a low CPU utilization and still have a high load in this case. See the Wikipedia description.
For example, one can interpret a load average of "1.73 0.50 7.98" on a single-CPU system as:
* during the last minute, the CPU was overloaded by 73% (1 CPU with 1.73 runnable processes, so that 0.73 processes had to wait for a turn)
* during the last 5 minutes, the CPU was underloaded 50% (no processes had to wait for a turn)
* during the last 15 minutes, the CPU was overloaded 698% (1 CPU with 7.98 runnable processes, so that 6.98 processes had to wait for a turn)
If i apply "1.73 0.50 7.98" on dual core machine does it mean:
-for last minute the cpu was overloaded by 73% i.e 73/2 = 36% per proc ?
-for last 5 minute the cpu was under loaded by 50% i.e 50/2 = 25% per proc ?
1 core and 1 loadavg means 100% CPU utilization.
For 2 cores the loadavg has to be 2 to mean 100% CPU utilization.
A loadavg of .75 should signal the System Admin to look into it before the system/server gets worse- a proactive action.
A loadavg of .9 and above means critical state and requires immediate action to be taken to prevent a system crash! Well, the system may not crash at all but a lot of jobs can fail to run. I have seen it practially. Once I was working for a client and the server's loadavg reached so much hight that even "clear" would fail to run.
If i apply "1.73 0.50 7.98" on dual core machine does it mean:
-for last minute the cpu was overloaded by 73% i.e 73/2 = 36% per proc ?
-for last 5 minute the cpu was under loaded by 50% i.e 50/2 = 25% per proc ?
Assuming no I/O wait, that would be correct. However, if you have many processes in wait, the CPU will likely be low while the load is high. Examples from Wikipedia include a slow I/O device or NFS mount.
The better way to think of load on Linux is as a measure of system response time. The higher the number, the less responsive. If you want a measure of CPU load exclusively, use top or sar.
Last edited by macemoneta; 03-02-2011 at 11:47 AM.
Dodgy software can place threads (incorrectly) in uninterrupable sleep, and drive the load way past 100 - with no (response) effect on anything. Apache for example.
loadavg, like %wa, is a barely useful metric. Especially when it's not properly understood, and interpreted in relation to the specific computing environment involved.
To clarify, the response time I was referring to is process response time (how quickly processes are being serviced), not interactive response. You're correct that interactive response may not be impacted at all, even with a high load.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.