How To Install fio on CentOS 8

fio is Multithreaded IO generation tool

Introduction

In this tutorial we learn how to install fio on CentOS 8.

What is fio

fio is an I/O tool that will spawn a number of threads or processes doing a particular type of io action as specified by the user. fio takes a number of global parameters, each inherited by the thread unless otherwise parameters given to them overriding that setting is given. The typical use of fio is to write a job file matching the io load one wants to simulate.

We can use yum or dnf to install fio on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install fio.

Install fio on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install fio using dnf by running the following command:

sudo dnf -y install fio

Install fio on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install fio using yum by running the following command:

sudo yum -y install fio

How To Uninstall fio on CentOS 8

To uninstall only the fio package we can use the following command:

sudo dnf remove fio

fio Package Contents on CentOS 8

/usr/bin/fio
/usr/bin/fio-btrace2fio
/usr/bin/fio-dedupe
/usr/bin/fio-genzipf
/usr/bin/fio-verify-state
/usr/bin/fio2gnuplot
/usr/bin/fio_generate_plots
/usr/bin/fio_jsonplus_clat2csv
/usr/bin/fiologparser.py
/usr/bin/fiologparser_hist.py
/usr/bin/genfio
/usr/lib/.build-id
/usr/lib/.build-id/0c
/usr/lib/.build-id/0c/8a9a6540d4d4a8247e07553d72cde921c4379b
/usr/lib/.build-id/53
/usr/lib/.build-id/53/43de0b6cb40d8dc00880f5aec9c58f99505a14
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/04fd1f459461cd77a2ddb0a05678bf86f20361
/usr/lib/.build-id/5f/aaa03019b45ff1c0d039aa0f82e90664701e09
/usr/lib/.build-id/de
/usr/lib/.build-id/de/14bf0bd1ab450e09e4dc97d707fd4b5004ea05
/usr/share/doc/fio
/usr/share/doc/fio/COPYING
/usr/share/doc/fio/GFIO-TODO
/usr/share/doc/fio/HOWTO
/usr/share/doc/fio/MORAL-LICENSE
/usr/share/doc/fio/README
/usr/share/doc/fio/REPORTING-BUGS
/usr/share/doc/fio/SERVER-TODO
/usr/share/doc/fio/STEADYSTATE-TODO
/usr/share/doc/fio/examples
/usr/share/doc/fio/examples/1mbs_clients.fio
/usr/share/doc/fio/examples/aio-read.fio
/usr/share/doc/fio/examples/backwards-read.fio
/usr/share/doc/fio/examples/basic-verify.fio
/usr/share/doc/fio/examples/butterfly.fio
/usr/share/doc/fio/examples/cpp_null.fio
/usr/share/doc/fio/examples/cpuio.fio
/usr/share/doc/fio/examples/cross-stripe-verify.fio
/usr/share/doc/fio/examples/dev-dax.fio
/usr/share/doc/fio/examples/disk-zone-profile.fio
/usr/share/doc/fio/examples/e4defrag.fio
/usr/share/doc/fio/examples/e4defrag2.fio
/usr/share/doc/fio/examples/enospc-pressure.fio
/usr/share/doc/fio/examples/exitwhat.fio
/usr/share/doc/fio/examples/falloc.fio
/usr/share/doc/fio/examples/filecreate-ioengine.fio
/usr/share/doc/fio/examples/filestat-ioengine.fio
/usr/share/doc/fio/examples/fio-rand-RW.fio
/usr/share/doc/fio/examples/fio-rand-read.fio
/usr/share/doc/fio/examples/fio-rand-write.fio
/usr/share/doc/fio/examples/fio-seq-RW.fio
/usr/share/doc/fio/examples/fio-seq-read.fio
/usr/share/doc/fio/examples/fio-seq-write.fio
/usr/share/doc/fio/examples/fixed-rate-submission.fio
/usr/share/doc/fio/examples/flow.fio
/usr/share/doc/fio/examples/fsx.fio
/usr/share/doc/fio/examples/ftruncate.fio
/usr/share/doc/fio/examples/gfapi.fio
/usr/share/doc/fio/examples/gpudirect-rdmaio-client.fio
/usr/share/doc/fio/examples/gpudirect-rdmaio-server.fio
/usr/share/doc/fio/examples/http-s3.fio
/usr/share/doc/fio/examples/http-swift.fio
/usr/share/doc/fio/examples/http-webdav.fio
/usr/share/doc/fio/examples/ime.fio
/usr/share/doc/fio/examples/iometer-file-access-server.fio
/usr/share/doc/fio/examples/jesd219.fio
/usr/share/doc/fio/examples/latency-profile.fio
/usr/share/doc/fio/examples/libhdfs.fio
/usr/share/doc/fio/examples/libiscsi.fio
/usr/share/doc/fio/examples/libpmem.fio
/usr/share/doc/fio/examples/mtd.fio
/usr/share/doc/fio/examples/nbd.fio
/usr/share/doc/fio/examples/netio.fio
/usr/share/doc/fio/examples/netio_multicast.fio
/usr/share/doc/fio/examples/null.fio
/usr/share/doc/fio/examples/numa.fio
/usr/share/doc/fio/examples/pmemblk.fio
/usr/share/doc/fio/examples/poisson-rate-submission.fio
/usr/share/doc/fio/examples/rados.fio
/usr/share/doc/fio/examples/rand-zones.fio
/usr/share/doc/fio/examples/rbd.fio
/usr/share/doc/fio/examples/rdmaio-client.fio
/usr/share/doc/fio/examples/rdmaio-server.fio
/usr/share/doc/fio/examples/ssd-steadystate.fio
/usr/share/doc/fio/examples/ssd-test.fio
/usr/share/doc/fio/examples/steadystate.fio
/usr/share/doc/fio/examples/surface-scan.fio
/usr/share/doc/fio/examples/tiobench-example.fio
/usr/share/doc/fio/examples/waitfor.fio
/usr/share/doc/fio/examples/zipf.fio
/usr/share/fio
/usr/share/fio/graph2D.gpm
/usr/share/fio/graph3D.gpm
/usr/share/fio/math.gpm
/usr/share/man/man1/fio.1.gz
/usr/share/man/man1/fio2gnuplot.1.gz
/usr/share/man/man1/fio_generate_plots.1.gz
/usr/share/man/man1/fiologparser_hist.py.1.gz

References

Summary

In this tutorial we learn how to install fio on CentOS 8 using yum and dnf.