Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do the numbers in /proc/loadavg mean on Linux?

Tags:

linux

When issuing this command on Linux:

# cat /proc/loadavg 0.75 0.35 0.25 1/25 1747 

The first three numbers are load averages. What are the last 2 numbers?

The last one keeps increasing by 2 every second, should I be worried?

like image 711
Ulterior Avatar asked Aug 16 '12 12:08

Ulterior


People also ask

What is Proc Loadavg in Linux?

16. /proc/loadavg. This file provides a look at the load average in regard to both the CPU and IO over time, as well as additional data used by uptime and other commands.

What is a good Linux load average?

Between 0.00 and 1.0, there is no need to worry. Your servers are safe! 1.5 means the queue is filling up. If the average gets any higher, things are going to start slowing down.


1 Answers

/proc/loadavg

The first three fields in this file are load average figures giving the number of jobs in the run queue (state R) or waiting for disk I/O (state D) averaged over 1, 5, and 15 minutes. They are the same as the load average numbers given by uptime(1) and other programs.

The fourth field consists of two numbers separated by a slash (/). The first of these is the number of currently executing kernel scheduling entities (processes, threads); this will be less than or equal to the number of CPUs. The value after the slash is the number of kernel scheduling entities that currently exist on the system.

The fifth field is the PID of the process that was most recently created on the system.

like image 130
auselen Avatar answered Oct 04 '22 16:10

auselen