?
Solved

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

Posted on 1998-10-02
3
Medium Priority
?
554 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 90 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

718 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