linux/proc/loadavg [英] linux /proc/loadavg

查看:106
本文介绍了linux/proc/loadavg的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从linux发出此命令时:

When issueing this command from linux:

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

最后两个数字是多少?

What are the last 2 numbers?

最后一个每秒保持增加2,我应该担心吗?

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

推荐答案

最后一个是系统最近15分钟的工作量.

Last one is the system's workload for last 15 minutes.

/proc/loadavg

此文件的前三个字段是平均负载数字,给出 运行队列(状态R)或等待磁盘中的作业数 I/O(状态D)平均超过1、5和15分钟.他们是 与正常运行时间(1)和其他给出的平均负载数相同 程式.

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.

第四个字段由两个数字组成,两个数字之间用a分隔 斜杠(/).其中第一个是当前正在执行的数量 内核调度实体(进程,线程);这会更少 等于或等于CPU数量.斜杠后的值是 当前存在于内核上的内核调度实体的数量 系统.

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.

第五个字段是该进程的PID 最近在系统上创建的.

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

这篇关于linux/proc/loadavg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆