Flexible IO Tester FIO

Benchmark drive performance in Linux using fio

[root@localhost ~]# yum install fio

[root@localhost ~]# fio –name=fiotest –filename=/home/test1 –size=1Gb –rw=randread –bs=8K –direct=1 –numjobs=8 –ioengine=libaio –iodepth=32 –group_reporting –runtime=60 –startdelay=60 
fiotest: (g=0): rw=randread, bs=(R) 8192B-8192B, (W) 8192B-8192B, (T) 8192B-8192B, ioengine=libaio, iodepth=32

fio-3.7
Starting 8 processes
fiotest: Laying out IO file (1 file / 1024MiB)
Jobs: 8 (f=8): [r(8)][100.0%][r=138MiB/s,w=0KiB/s][r=17.7k,w=0 IOPS][eta 00m:00s]
fiotest: (groupid=0, jobs=8): err= 0: pid=1570: Thu Apr 4 15:16:17 2024
read: IOPS=17.6k, BW=137MiB/s (144MB/s)(8192MiB/59678msec)
slat (nsec): min=1772, max=168226k, avg=429561.75, stdev=5219023.15
clat (usec): min=90, max=170040, avg=14103.62, stdev=27311.22
lat (usec): min=142, max=170100, avg=14535.20, stdev=27639.21
clat percentiles (usec):
| 1.00th=[ 1418], 5.00th=[ 1532], 10.00th=[ 1582], 20.00th=[ 1647],
| 30.00th=[ 1680], 40.00th=[ 1713], 50.00th=[ 1762], 60.00th=[ 1811],
| 70.00th=[ 1893], 80.00th=[ 2114], 90.00th=[ 73925], 95.00th=[ 74974],
| 99.00th=[ 83362], 99.50th=[ 84411], 99.90th=[ 94897], 99.95th=[105382],
| 99.99th=[135267]
bw ( KiB/s): min=13540, max=21595, per=12.39%, avg=17409.28, stdev=1192.48, samples=952
iops : min= 1692, max= 2699, avg=2175.78, stdev=149.06, samples=952
lat (usec) : 100=0.01%, 250=0.01%, 500=0.01%, 750=0.01%, 1000=0.01%
lat (msec) : 2=76.83%, 4=6.01%, 10=0.02%, 20=0.02%, 50=0.07%
lat (msec) : 100=16.97%, 250=0.07%
cpu : usr=0.57%, sys=11.88%, ctx=5839, majf=0, minf=790
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=100.0%, >=64=0.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.1%, 64=0.0%, >=64=0.0%
issued rwts: total=1048576,0,0,0 short=0,0,0,0 dropped=0,0,0,0
latency : target=0, window=0, percentile=100.00%, depth=32

Run status group 0 (all jobs):
READ: bw=137MiB/s (144MB/s), 137MiB/s-137MiB/s (144MB/s-144MB/s), io=8192MiB (8590MB), run=59678-59678msec

Disk stats (read/write):
dm-0: ios=1047760/2, merge=0/0, ticks=272512/0, in_queue=272228, util=100.00%, aggrios=1048576/4, aggrmerge=0/0, aggrticks=137249/0, aggrin_queue=133576, aggrutil=100.00%
sda: ios=1048576/4, merge=0/0, ticks=137249/0, in_queue=133576, util=100.00%

[root@localhost ~]# ls -lh /home/
total 1.0G
-rw-r–r–. 1 root root 1.0G Apr 4 15:14 test1

Leave a comment