Linux CPU 数据 Metrics 指标解读

过去从未仔细了解过使用 tophtop 等命令时显式的CPU信息,本文我们详解解读和标注一下各个数据项的含义,同时和 Ganglia 显式的数据做一个映射。开始前介绍一个小知识,很多查看CPU的命令行工具都是 cat /proc/stat 里的数据,所以数据来源都是一样的,区别只在于显式格式,用户体验上。本文我们以 mpstatuptime 命令为主,最后介绍一下 tophtop 的一些细微差异。

一般来说,CPU 的性能会分成两个维度来看,一个是:利用率,另一个是:(1/5/15分钟的)平均负载,这两种指标是不同的 (具体内容,年后补啦!收工了!今年肝稿 108 篇!累死~)


%user: Percentage of CPU utilization that occurred while executing at the user level (application).

%nice: Percentage of CPU utilization that occurred while executing at the user level with nice priority.

%system: Percentage of CPU utilization that occurred while executing at the system level (kernel).

%iowait: Percentage of time that the CPU or CPUs were idle during which the system had an outstanding disk I/O request.

%idle: Percentage of time that the CPU or CPUs were idle and the system did not have an outstanding disk I/O request.

%usr -- % CPU usage at the user level

%nice -- % CPU usage for user processes labeled "nice"

%sys -- % CPU usage at the system (Linux kernel) level

%iowait -- % CPU usage idling waiting on a disk read/write

%irq -- % CPU usage handling hardware interrupts

%soft -- % CPU usage handing software interrupts

%steal -- % CPU usage being forced to wait for a hypervisor handling other virtual processors

%guest -- % CPU usage spent running a virtual processor

%idle -- % CPU usage on idle time (no processes, and not waiting on a disk read/write)

相关推荐
谢平康20 分钟前
通过nfs方式做目录限额方法
linux·服务器·网络
刘一说21 分钟前
Windows 与 Linux 跨平台自动化 MySQL 8 备份:专业级脚本设计与实战指南
linux·数据库·windows·mysql·自动化
I · T · LUCKYBOOM23 分钟前
2.2yum安装--单服务器托管多网站
linux·运维·服务器
郝学胜-神的一滴26 分钟前
线程同步:并行世界的秩序守护者
java·linux·开发语言·c++·程序人生
Linux技术芯32 分钟前
浅谈nvme协议版本的发展
linux
释怀不想释怀36 分钟前
Linux(复习常见命令)
linux·运维·服务器
_F_y38 分钟前
负载均衡在线oj(文件版)
linux·运维·负载均衡
Chase_______42 分钟前
【Linux指南】:vi编辑器
linux·运维·编辑器
礼拜天没时间.1 小时前
【生产级实战】Linux 集群时间同步详解(NTP + Cron,超详细)
linux·运维·服务器·时间同步·cron·ntp
艾莉丝努力练剑1 小时前
【Linux进程控制(一)】进程创建是呼吸,进程终止是死亡,进程等待是重生:进程控制三部曲
android·java·linux·运维·服务器·人工智能·安全