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)

相关推荐
laimaxgg20 分钟前
Linux关于华为云开放端口号后连接失败问题解决
linux·运维·服务器·网络·tcp/ip·华为云
浪小满22 分钟前
linux下使用脚本实现对进程的内存占用自动化监测
linux·运维·自动化·内存占用情况监测
东软吴彦祖36 分钟前
包安装利用 LNMP 实现 phpMyAdmin 的负载均衡并利用Redis实现会话保持nginx
linux·redis·mysql·nginx·缓存·负载均衡
艾杰Hydra1 小时前
LInux配置PXE 服务器
linux·运维·服务器
慵懒的猫mi1 小时前
deepin分享-Linux & Windows 双系统时间不一致解决方案
linux·运维·windows·mysql·deepin
阿无@_@1 小时前
2、ceph的安装——方式二ceph-deploy
linux·ceph·centos
PyAIGCMaster2 小时前
ollama部署及实践记录,虚拟环境,pycharm等
linux·ide·pycharm
ouliten2 小时前
最新版pycharm如何配置conda环境
linux·pycharm·conda
AGI学习社3 小时前
2024中国排名前十AI大模型进展、应用案例与发展趋势
linux·服务器·人工智能·华为·llama
H.203 小时前
centos7执行yum操作时报错Could not retrieve mirrorlist http://mirrorlist.centos.org解决
linux·centos