Files
tldr/pages.zh/linux/iostat.md

28 lines
565 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# iostat
> 报告设备和分区的统计信息。
> 更多信息:<https://manned.org/iostat>。
- 显示从系统启动以来的 CPU 和磁盘统计信息报告:
`iostat`
- 显示单位转换为兆字节的 CPU 和磁盘统计信息报告:
`iostat -m`
- 显示 CPU 统计信息:
`iostat -c`
- 显示带有磁盘名称(包括 LVM的磁盘统计信息
`iostat -N`
- 显示设备 "sda" 的扩展磁盘统计信息及其磁盘名称:
`iostat -xN {{sda}}`
- 每 2 秒显示一次 CPU 和磁盘统计信息的增量报告:
`iostat {{2}}`