Skip to content

Instantly share code, notes, and snippets.

@kevherro
Last active April 13, 2018 21:40
Show Gist options
  • Save kevherro/6b583feb01f0deaa49ac608dd551d419 to your computer and use it in GitHub Desktop.
Save kevherro/6b583feb01f0deaa49ac608dd551d419 to your computer and use it in GitHub Desktop.
/proc/loadavg

Background

proc - a process information pseudo-file system which is used as an interface to kernel data structures

loadavg describes CPU load

Command and Sample Output

> cat /proc/loadavg
0.01 0.06 0.11 2/442 4114

Description and Meaning

Let's take a look at the output above, namely:

0.01 0.06 0.11 2/442 4114

The first three metrics describes the number of jobs in the run queue or waiting for disk I/O averaged over:

0.01 - 1 minute

0.06 - 5 minutes

0.11 - 15 minutes

These are the same load average numbers given by uptime(1)

The fourth metric compares the number of currently runnable kernel scheduling entities (processesses, threads) against the number of kernel scheduling entities that currently exist on the system:

2/ - number of currently runnable threads

/442 - number of threads that currently exist on the system

The fifth metric identifies the PID of the process that was most recently created on the system

4114 - PID of process that was most recently created on the system

Additional References

proc(5) - Linux man page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment