首页/系统/Linux 内核与性能调优速查/steal time 判读(虚拟化)
本包目录(357 条)
sysctl 内核参数72 条
CPU 与调度60 条
内存与 OOM58 条磁盘与 IO32 条网络栈调优98 条性能分析工具37 条

steal time 判读(虚拟化)

虚拟机 CPU 时间被宿主或其他租户抢占的部分记为 steal;持续偏高说明资源超卖或邻居争抢,虚机内部优化无法根治。

查看mpstat 的 %steal、top 的 st 列
来源/proc/stat 的 steal 计数
含义期望运行但被宿主延迟的时间

采样

采样
mpstat -P ALL 1 5 | grep -E 'CPU|all|Average'
top -bn1 | head -3

易错点

  • steal 高应向平台侧反馈或迁移实例,虚机内调参收益有限
  • 低负载时 steal 可能为 0,只有在有可运行任务时被抢占才计入

数据来源与参考

  • Linux 内核 Documentation/filesystems/proc.rst(/proc/stat)
  • sysstat 文档 mpstat(1)
​‌‌​​‌​​​‌‌​‌‌‌‌​‌‌​​​‌‌​‌‌‌​​‌‌​​‌​‌‌‌​​‌‌‌​​​‌​‌‌​‌​​‌​‌‌‌​​​‌​‌‌​‌​​‌​‌‌​​​‌‌​‌‌‌​‌​​​‌‌​‌‌‌‌​​‌​‌‌‌​​‌‌​​​‌‌​‌‌​‌‌‌‌​‌‌​‌‌​‌