Test iops using fio

fio (flexible I/O tester) – a tool that creates write / read streams to evaluate the performance of the file system, so to speak, see the speed in MB / s, IOPS, etc.

Installed in Ubuntu / Debian commands:

sudo apt-get update
sudo apt-get install fio

For systems with a graphical interface, you can install the management utility:

sudo apt-get install gfio

An example of a random write / read test:

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

Random reading test:

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

Test random recording:

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

During the test, the test file is created, do not forget to delete it when finished:

rm test

See also my articles:
DiskSpd. Windows IOPS Test
Examples of Items for Zabbix

Leave a comment

Leave a Reply