Thursday, March 28, 2019

using fio on Windows and Linux

Running FIO on Linux and Windows

Fio which stands for Flexible I/O Tester is a free and open source disk I/O tool used both for benchmark and stress/hardware verification developed by Jens Axboe.

Read more about fio here^

How to install?
 On Ubuntu fio can be installed by executing following command

#sudo apt-get install fio

On Windows, got to  http://www.bluestop.org/fio/
Choose the one with 2.2.8 or higher version and x64 binary or MSI and install it.

Run "fio" command to check if installation is fine.




On Windows, if you get 'fio' is not recognized as an internal or external command....




then follow ^this to add path in env,

In my case, I had reboot the server.


Next part is fio sample config files for Windows, here is sample config


[global]
thread
iodepth=32
group_reporting=1
norandommap=1
randrepeat=0
direct=1
ioengine=windowsaio
#time_based
#runtime=43200
gtod_reduce=1
random_distribution=zipf:1.3
size=10G
directory=H\:\

[rand-readwrite]
numjobs=8
bs=4k
rw=randrw

rwmixread=70


Few Notes:

  • Update the field “directory=” with correct primary volume drive letter(required only if it is not already H: )
  • Update the field runtime for increasing or decreasing the time of run in seconds.
  • Update the field zipf to 1.1 or 1.2, if you want the locality to spread.




Sample config file for Linux:

[global]
bs=16k
ioengine=libaio
iodepth=32
size=5G
direct=1
rw=read
time_based=1
runtime=300
filename=/dev/sdb
[rand-rw]
readwrite=randrw
rwmixread=70


No comments:

Post a Comment

Configure Ubuntu as a Router for AWS Direct Connect.

Scenario: We wanted to configure  AWS Direct Connect, a dedicated network from our premises to AWS.  It's a private network from AWS t...