Solved

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

Posted on 1998-10-02
3
543 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How yum repo uses sqlite3 to keep metadata about the repository? 2 47
ignore other .htaccess 2 59
centos commands 6 70
Samba Question 11 82
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

820 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