当前位置: 技术问答>linux和unix
/proc/loadavg是怎样计算的?
来源: 互联网 发布时间:2015-09-24
本文导语: /proc/loadavg的计算依据是什么?进程? cat /proc/loadavg 2.28 1.17 0.46 3/85 2677 其中:2.28 1.17 0.46 到底是什么意义? 有的说分别是:1秒平均负载、5秒平均负载、15秒平均负载 有的说分别是:1分钟平均负载、5分钟平均...
/proc/loadavg的计算依据是什么?进程?
cat /proc/loadavg 2.28 1.17 0.46 3/85 2677
其中:2.28 1.17 0.46 到底是什么意义?
有的说分别是:1秒平均负载、5秒平均负载、15秒平均负载
有的说分别是:1分钟平均负载、5分钟平均负载、15分钟平均负载
还有的说是:最高利用率、平均利用率、最低录用率
到底是什么呀?晕了
根据什么算出来的呢?
cat /proc/loadavg 2.28 1.17 0.46 3/85 2677
其中:2.28 1.17 0.46 到底是什么意义?
有的说分别是:1秒平均负载、5秒平均负载、15秒平均负载
有的说分别是:1分钟平均负载、5分钟平均负载、15分钟平均负载
还有的说是:最高利用率、平均利用率、最低录用率
到底是什么呀?晕了
根据什么算出来的呢?
|
from proc(5) manual page:
/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 sepa‐
rated by a slash (/). The first of these is the number of cur‐
rently 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.
/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 sepa‐
rated by a slash (/). The first of these is the number of cur‐
rently 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.