Solved

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

Posted on 1998-10-02
3
550 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

623 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