什么是 iowait?
iowait 是指 CPU 核心在等待磁盘 IO 完成期间处于空闲状态的时间百分比。它是判断磁盘是否拖慢系统速度的关键信号。
Evidence to look for
iowait 显示在 top、vmstat、iostat 和 /proc/stat 中
在繁忙系统上,数值超过 5-10% 可能表示存在磁盘瓶颈
高 iowait 与高 CPU 同时出现,可能意味着线程在等待磁盘时发生堆积
What it usually means
iowait 并不意味着 CPU 在“执行 IO 工作”,而是指 CPU 在等待磁盘时没有其他任务可执行。在繁忙系统上,高 iowait 意味着磁盘正在成为瓶颈;在空闲系统上,这可能是正常现象。
What to do next
- 1当 iowait 升高时,检查磁盘利用率和 await 时间
- 2如果磁盘已饱和,请迁移到更快的存储设备
- 3减少并发的磁盘密集型操作数量
See what's causing your CPU
cpum.ai turns CPU, process, disk, and memory signals into plain-English explanations with evidence.
Open cpum.ai