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

32 lines
1.0 KiB
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://ss64.com/mac/iostat.html>。
- 显示快照设备统计信息每次传输的千字节数、每秒传输次数、每秒兆字节数、CPU统计信息用户模式、系统模式和空闲模式下的时间百分比和系统负载平均值过去1分钟、5分钟和15分钟
`iostat`
- 仅显示设备统计信息:
`iostat -d`
- 每2秒显示CPU和磁盘统计信息的增量报告
`iostat 2`
- 每秒显示第一个磁盘的统计信息,直到手动停止:
`iostat -w 1 disk0`
- 每3秒显示第二个磁盘的统计信息10次
`iostat -w 3 -c 10 disk1`
- 使用旧式 `iostat` 显示格式。显示每秒传输的扇区数、每秒传输次数、每笔交易的平均毫秒数以及来自默认样式显示的CPU统计信息和负载平均值
`iostat -o`
- 显示总设备统计信息KB/t每次传输的千字节数如前所述xfrs传输总次数MB传输的总兆字节数
`iostat -I`