TEST-1: Sequential writes ------------------------- Add config options in a text file (see `man fio` for details): $ cat seq-write.fio [writes] rw=write ioengine=psync bs=512 filename=/export/iotests/fio-test1 time_based runtime=30 size=256k Run the `fio` test: $ fio seq-write.fio writes: (g=0): rw=write, bs=512-512/512-512/512-512, ioengine=psync, iodepth=1 fio-2.2.8 Starting 1 process writes: Laying out IO file(s) (1 file(s) / 0MB) Jobs: 1 (f=1): [W(1)] [100.0% done] [0KB/338.8MB/0KB /s] [0/694K/0 iops] [eta 00m:00s] writes: (groupid=0, jobs=1): err= 0: pid=32387: Thu Jan 21 12:52:16 2016 write: io=10149MB, bw=346409KB/s, iops=692817, runt= 30000msec clat (usec): min=1, max=81, avg= 1.08, stdev= 0.28 lat (usec): min=1, max=81, avg= 1.13, stdev= 0.35 clat percentiles (usec): | 1.00th=[ 1], 5.00th=[ 1], 10.00th=[ 1], 20.00th=[ 1], | 30.00th=[ 1], 40.00th=[ 1], 50.00th=[ 1], 60.00th=[ 1], | 70.00th=[ 1], 80.00th=[ 1], 90.00th=[ 1], 95.00th=[ 2], | 99.00th=[ 2], 99.50th=[ 2], 99.90th=[ 3], 99.95th=[ 4], | 99.99th=[ 5] bw (KB /s): min=335779, max=347282, per=100.00%, avg=346405.97, stdev=1453.82 lat (usec) : 2=92.32%, 4=7.61%, 10=0.07%, 20=0.01%, 50=0.01% lat (usec) : 100=0.01% cpu : usr=33.05%, sys=66.95%, ctx=19, majf=0, minf=82 IO depths : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.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.0%, 64=0.0%, >=64=0.0% issued : total=r=0/w=20784537/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=1 Run status group 0 (all jobs): WRITE: io=10149MB, aggrb=346408KB/s, minb=346408KB/s, maxb=346408KB/s, mint=30000msec, maxt=30000msec Disk stats (read/write): sdb: ios=0/12, merge=0/15, ticks=0/94, in_queue=94, util=0.31% TEST-2: Random writes --------------------- Config options: $ cat rand-write.fio [writes] rw=randwrite ioengine=psync bs=512 filename=/export/iotests/fio-test2 time_based runtime=30 size=256k Run `fio` with the above config options: $ fio rand-write.fio writes: (g=0): rw=randwrite, bs=512-512/512-512/512-512, ioengine=psync, iodepth=1 fio-2.2.8 Starting 1 process ^Cbs: 1 (f=1): [w(1)] [22.6% done] [0KB/298.5MB/0KB /s] [0/610K/0 iops] [eta 00m:24s] fio: terminating on signal 2 writes: (groupid=0, jobs=1): err= 0: pid=32450: Thu Jan 21 12:57:16 2016 write: io=2055.6MB, bw=310609KB/s, iops=621218, runt= 6775msec clat (usec): min=1, max=366, avg= 1.11, stdev= 0.90 lat (usec): min=1, max=367, avg= 1.16, stdev= 0.92 clat percentiles (usec): | 1.00th=[ 1], 5.00th=[ 1], 10.00th=[ 1], 20.00th=[ 1], | 30.00th=[ 1], 40.00th=[ 1], 50.00th=[ 1], 60.00th=[ 1], | 70.00th=[ 1], 80.00th=[ 1], 90.00th=[ 2], 95.00th=[ 2], | 99.00th=[ 2], 99.50th=[ 2], 99.90th=[ 3], 99.95th=[ 4], | 99.99th=[ 6] bw (KB /s): min=297402, max=316541, per=99.95%, avg=310467.00, stdev=6506.75 lat (usec) : 2=89.25%, 4=10.68%, 10=0.07%, 20=0.01%, 50=0.01% lat (usec) : 100=0.01%, 250=0.01%, 500=0.01% cpu : usr=37.57%, sys=62.27%, ctx=73, majf=0, minf=41 IO depths : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.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.0%, 64=0.0%, >=64=0.0% issued : total=r=0/w=4208754/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=1 Run status group 0 (all jobs): WRITE: io=2055.6MB, aggrb=310609KB/s, minb=310609KB/s, maxb=310609KB/s, mint=6775msec, maxt=6775msec Disk stats (read/write): sdb: ios=64/8, merge=0/2, ticks=11/11, in_queue=22, util=0.33%