vmstat 是类 Unix/Linux 系统中的命令行工具,常用于查看系统的虚拟内存、进程、CPU、磁盘 I/O、交换分区(swap)等统计信息,帮助快速判断系统是否存在内存压力、I/O 瓶颈或 CPU 繁忙等问题。(不同系统输出字段可能略有差异;也可指同名统计工具的输出结果。)
/ˈviːɛm.stæt/
I ran vmstat to check whether the server was swapping.
我运行了 vmstat 来检查服务器是否在使用交换分区(swap)。
During the incident, vmstat showed high I/O wait and frequent context switches, which supported our conclusion that the disk subsystem was the bottleneck.
在故障期间,vmstat 显示 I/O 等待很高且上下文切换频繁,这支持了我们“磁盘子系统是瓶颈”的结论。
vmstat 是 virtual memory statistics(虚拟内存统计)的缩写,最早见于 Unix 系统工具传统中,用于以简洁的方式周期性输出关键性能指标,便于运维与性能排查。
vmstat(8) 手册页,在 procps/procps-ng 工具集中常见)