How to determine the iops on a disk

Here is a quick primer and script to determine the iops on a disk. You can use the iostat utility but you have to first determine the name of the volume. I use df -h

iostat -d -x /dev/sda | awk 'NR==4{print "IOPS: " $4}'

For Ubuntu, you might have to install sysstat first:

apt install sysstat

For OpenSUSE, do this:

zypper in sysstat iotop

Share this article

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top