How To Analyze Hard Disk Performance with FIO & IOPING in CentOS 7

How to analyze and control the performance of your hard drives using the fio and ioping commands in CentOS 7.

Today we will analyze two other commands that for our management tasks will be useful for the entire process of analyzing hard drives: fio and ioping since these two commands offer much more information including latency and processes.

Install fio in CentOS 7

In the first place it will be necessary to install the EPEL repository, and for this, we will execute the following commands in their order:


Then we will execute the following command for its installation:

yum localinstall epel-release-latest-7.noarch.rpm
yum install fio

How To Run fio in CentOS 7

If we want to do a complete analysis that includes the random measurement of reading and writing it will be necessary to execute the following command:

fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=random_read_write.fio --bs=4k --iodepth=64 --size=4G --readwrite=randrw --rwmixread=75

We will see that it starts the process of analyzing the hard disk:

This process takes between an hour and an hour and a half.

There we can see much more complete and detailed information about the state of the hard disk.

If we want to measure only the reading of the disk we will execute the following command:

fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=random_read.fio --bs=4k --iodepth=64 --size=4G --readwrite=randread

If we're going to measure the writing we will run the following:

fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=random_write.fio --bs=4k --iodepth=64 --size=4G --readwrite=randwrite

Install IOPing on CentOS 7

Thanks to this command we can measure the latency of the hard disk in a specified period.

For installation in CentOS 7 we will execute the following command:

yum install ioping

How To Run IOPing in CentOS 7

For its execution we will use the following syntax:

ioping -c (ping_number) /

For example, we will execute ioping -c 10 / and this will be the result obtained. The final line shows the latency of the disk.

We verify that they are two useful and functional commands for the management of hard disks.

Similar Posts

Leave a Reply

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