Solved

what's the actual meaning of "load average"?

Posted on 1998-10-02
3
541 Views
Last Modified: 2008-03-06
Hi there,

I have a rough idea of what "load average" is. When more programs are running, the load average is higher.  But, how do this relate to things like the user, system and idle jiffies?

0
Comment
Question by:oldjst
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
mlev earned 30 total points
ID: 1638184
Load average is the average number of processes in the running queue, IOW, processes whose state is "RUNNING", IOW, processes between which the CPU time is shared (i.e.processes that are idle or waiting for I/O don't affect it)
0
 

Author Comment

by:oldjst
ID: 1638185
More specifically, can we describe "load average" as user jiffies/ (system jiffies + idle jiffies) ? If not, is there any easy means to calculate that using the info available in the /proc file system. (Sine I need to calculate the load average for varying time length, the average data from say uptime is not so useful)

Thanks.
0
 
LVL 2

Expert Comment

by:mlev
ID: 1638186
You cannot calculate it based on jiffies. For example, if you have one heavy calculation job running, almost 100% jiffies will
be user jiffies, and the load average will be around 1.0.
And if you have 10 such jobs running simultaneously, almost
100% jiffies will still be user jiffies, but the load average
will be around 10.0.

That said, there is a file /proc/loadavg. It contains the following info:
The load average over the last 1, 5 and 15 minutes, updated every 5 seconds;
(*) The current number of running tasks and total number of tasks;
PID of the last process in the CPU (i.e. the process accessing the file).

You can sample (*) and compute the average of their ratio over an arbitrary period of time.
Hope this helps.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question