Linux command
ioping 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Measure disk latency
ioping [path]
Run specific number of requests
ioping -c [10] [path]
Measure with specific size
ioping -s [1M] [path]
Measure disk seek rate
ioping -R [/dev/sda]
Measure sequential speed
ioping -RL [/dev/sda]
Use direct I/O
ioping -D [path]
Quiet mode with statistics
ioping -q -c [100] [path]
说明
ioping monitors disk I/O latency in real time, similar to how ping shows network latency. Generates I/O patterns and measures response time. SSDs should show sub-millisecond latency; HDDs typically show a few milliseconds. High latency spikes may indicate problems.
参数
- -c _count_
- Stop after count requests.
- -s _size_
- Request size (default 4k).
- -R
- Disk seek rate test.
- -L
- Sequential operations (default random).
- -D
- Use direct I/O (O_DIRECT).
- -W
- Use writes (dangerous for devices).
- -C
- Use cached I/O.
- -A
- Use asynchronous I/O.
- -q
- Quiet mode, show only summary.
- -w _seconds_
- Stop after specified time.
FAQ
What is the ioping command used for?
ioping monitors disk I/O latency in real time, similar to how ping shows network latency. Generates I/O patterns and measures response time. SSDs should show sub-millisecond latency; HDDs typically show a few milliseconds. High latency spikes may indicate problems.
How do I run a basic ioping example?
Run `ioping [path]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c _count_ do in ioping?
Stop after count requests.