Install ioping on Raspberry Pi

Install ioping on Raspberry Pi

The ioping is a command line tool that enables to monitor I/O latency. The ioping displays storage device latency in the same way as ping command displays network latency.

This tutorial shows how to install ioping on Raspberry Pi.

Connect to Raspberry Pi via SSH. Update the package lists and install ioping by using the following commands:

sudo apt update
sudo apt install -y ioping

After the installation is finished, we can check ioping version:

ioping -v

Now we can use the ioping command and provide a directory path as argument in order to measure the I/O latency:

ioping -c 6 /tmp

The command provides output similar to the following:

4 KiB <<< /tmp (ext4 /dev/root): request=1 time=676.1 us (warmup)
4 KiB <<< /tmp (ext4 /dev/root): request=2 time=656.0 us
4 KiB <<< /tmp (ext4 /dev/root): request=3 time=641.0 us
4 KiB <<< /tmp (ext4 /dev/root): request=4 time=635.8 us
4 KiB <<< /tmp (ext4 /dev/root): request=5 time=624.5 us
4 KiB <<< /tmp (ext4 /dev/root): request=6 time=633.9 us

--- /tmp (ext4 /dev/root) ioping statistics ---
5 requests completed in 3.19 ms, 20 KiB read, 1.57 k iops, 6.12 MiB/s
generated 6 requests in 5.00 s, 24 KiB, 1 iops, 4.80 KiB/s
min/avg/max/mdev = 624.5 us / 638.2 us / 656.0 us / 10.4 us

The -c option defines the number of requests.

By default, request size is 4 kilobytes. Request size can be changed with -s option.

ioping -c 6 -s 1MB /tmp

If you decided to completely remove ioping, run the following command:

sudo apt purge --autoremove -y ioping

Leave a Comment

Cancel reply

Your email address will not be published.