Docu review done: Wed 31 Jul 2024 02:33:51 PM CEST
ioping
Table of content
General
Latency measures with IOPing
Installation
$ apt install ioping
Measure latency
RAW Statistics
$ ioping -p 100 -c 200 -i 0 -q .
will output RAW data:
99 10970974 9024 36961531 90437 110818 358872 30756 100 12516420
100 9573265 10446 42785821 86849 95733 154609 10548 100 10649035
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10)
Samples
Measure latency on . using 100 requests
$ ioping -c 100 .
4 KiB <<< . (xfs /dev/dm-2): request=1 time=16.3 ms (warmup)
4 KiB <<< . (xfs /dev/dm-2): request=2 time=253.3 us
4 KiB <<< . (xfs /dev/dm-2): request=3 time=284.0 ms
...
4 KiB <<< . (xfs /dev/dm-2): request=96 time=175.6 us (fast)
4 KiB <<< . (xfs /dev/dm-2): request=97 time=258.7 us (fast)
4 KiB <<< . (xfs /dev/dm-2): request=98 time=277.6 us (fast)
4 KiB <<< . (xfs /dev/dm-2): request=99 time=242.3 us (fast)
4 KiB <<< . (xfs /dev/dm-2): request=100 time=36.1 ms (fast)
--- . (xfs /dev/dm-2) ioping statistics ---
99 requests completed in 3.99 s, 396 KiB read, 24 iops, 99.3 KiB/s
generated 100 requests in 1.65 min, 400 KiB, 1 iops, 4.04 KiB/s
min/avg/max/mdev = 163.5 us / 40.3 ms / 760.0 ms / 118.5 ms
Last line shows the latency measures of the disk.
Measure latency on /tmp/using 10 requests of 1MB each
$ ioping -c 10 -s 1M /tmp
Measure disk seek rate
$ ioping -R /dev/sda
Measure disk sequential speed
$ ioping -RL /dev/sda
Get disk sequential speed in bytes per second
$ ioping -RLB . | awk '{print $4}'