Skip to content

Instantly share code, notes, and snippets.

@matoken
Created November 10, 2018 05:27
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save matoken/6e3a4d07e36698470bac6ec75bb2c1d1 to your computer and use it in GitHub Desktop.
$ fio ./ssd-test.fio
seq-read: (g=0): rw=read, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=4
rand-read: (g=1): rw=randread, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=4
seq-write: (g=2): rw=write, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=4
rand-write: (g=3): rw=randwrite, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=4
fio-3.8
Starting 4 processes
Jobs: 1 (f=1): [_(3),w(1)][57.4%][r=0KiB/s,w=732KiB/s][r=0,w=183 IOPS][eta 02m:59s]
seq-read: (groupid=0, jobs=1): err= 0: pid=8394: Fri Nov 9 21:44:44 2018
read: IOPS=2171, BW=8687KiB/s (8895kB/s)(509MiB/60003msec)
slat (usec): min=2, max=6356, avg=19.39, stdev=50.14
clat (usec): min=85, max=29414, avg=1817.47, stdev=518.69
lat (usec): min=488, max=29419, avg=1837.38, stdev=514.57
clat percentiles (usec):
| 1.00th=[ 529], 5.00th=[ 1287], 10.00th=[ 1598], 20.00th=[ 1696],
| 30.00th=[ 1729], 40.00th=[ 1745], 50.00th=[ 1778], 60.00th=[ 1795],
| 70.00th=[ 1827], 80.00th=[ 1860], 90.00th=[ 2008], 95.00th=[ 2474],
| 99.00th=[ 3720], 99.50th=[ 4555], 99.90th=[ 6587], 99.95th=[ 7570],
| 99.99th=[12125]
bw ( KiB/s): min= 6068, max= 8136, per=78.20%, avg=6792.52, stdev=191.67, samples=119
iops : min= 1517, max= 2034, avg=1697.79, stdev=47.93, samples=119
lat (usec) : 100=0.01%, 250=0.03%, 500=0.66%, 750=0.89%, 1000=1.51%
lat (msec) : 2=86.90%, 4=9.24%, 10=0.75%, 20=0.01%, 50=0.01%
cpu : usr=2.38%, sys=5.48%, ctx=106370, majf=0, minf=16
IO depths : 1=0.1%, 2=0.1%, 4=100.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 rwts: total=130310,0,0,0 short=0,0,0,0 dropped=0,0,0,0
latency : target=0, window=0, percentile=100.00%, depth=4
rand-read: (groupid=1, jobs=1): err= 0: pid=9476: Fri Nov 9 21:44:44 2018
read: IOPS=732, BW=2928KiB/s (2999kB/s)(172MiB/60005msec)
slat (usec): min=4, max=3243, avg=28.46, stdev=30.41
clat (usec): min=129, max=46471, avg=5426.45, stdev=2478.94
lat (usec): min=530, max=46491, avg=5455.53, stdev=2478.87
clat percentiles (usec):
| 1.00th=[ 1844], 5.00th=[ 2212], 10.00th=[ 2376], 20.00th=[ 2671],
| 30.00th=[ 4228], 40.00th=[ 4490], 50.00th=[ 5997], 60.00th=[ 6259],
| 70.00th=[ 6390], 80.00th=[ 6783], 90.00th=[ 8356], 95.00th=[ 8717],
| 99.00th=[10683], 99.50th=[16319], 99.90th=[20317], 99.95th=[21103],
| 99.99th=[42730]
bw ( KiB/s): min= 2118, max= 2789, per=80.39%, avg=2353.85, stdev=116.76, samples=119
iops : min= 529, max= 697, avg=588.10, stdev=29.19, samples=119
lat (usec) : 250=0.01%, 500=0.01%, 750=0.11%, 1000=0.06%
lat (msec) : 2=1.29%, 4=24.01%, 10=70.73%, 20=3.67%, 50=0.11%
cpu : usr=1.36%, sys=2.86%, ctx=44288, majf=0, minf=14
IO depths : 1=0.1%, 2=0.1%, 4=100.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 rwts: total=43931,0,0,0 short=0,0,0,0 dropped=0,0,0,0
latency : target=0, window=0, percentile=100.00%, depth=4
seq-write: (groupid=2, jobs=1): err= 0: pid=10829: Fri Nov 9 21:44:44 2018
write: IOPS=325, BW=1302KiB/s (1333kB/s)(76.3MiB/60007msec)
slat (usec): min=3, max=2822, avg=37.16, stdev=39.08
clat (usec): min=1856, max=134338, avg=12242.68, stdev=9666.78
lat (msec): min=2, max=134, avg=12.28, stdev= 9.67
clat percentiles (msec):
| 1.00th=[ 7], 5.00th=[ 8], 10.00th=[ 8], 20.00th=[ 9],
| 30.00th=[ 9], 40.00th=[ 10], 50.00th=[ 10], 60.00th=[ 11],
| 70.00th=[ 12], 80.00th=[ 13], 90.00th=[ 14], 95.00th=[ 44],
| 99.00th=[ 49], 99.50th=[ 53], 99.90th=[ 112], 99.95th=[ 116],
| 99.99th=[ 134]
bw ( KiB/s): min= 518, max= 1487, per=83.30%, avg=1083.78, stdev=126.28, samples=119
iops : min= 129, max= 371, avg=270.60, stdev=31.58, samples=119
lat (msec) : 2=0.01%, 4=0.06%, 10=51.64%, 20=41.72%, 50=5.97%
lat (msec) : 100=0.49%, 250=0.12%
cpu : usr=0.62%, sys=1.58%, ctx=15627, majf=0, minf=11
IO depths : 1=0.1%, 2=0.1%, 4=100.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 rwts: total=0,19531,0,0 short=0,0,0,0 dropped=0,0,0,0
latency : target=0, window=0, percentile=100.00%, depth=4
rand-write: (groupid=3, jobs=1): err= 0: pid=11901: Fri Nov 9 21:44:44 2018
write: IOPS=215, BW=864KiB/s (885kB/s)(50.7MiB/60100msec)
slat (usec): min=7, max=1613, avg=50.36, stdev=35.22
clat (msec): min=5, max=140, avg=18.45, stdev=12.23
lat (msec): min=5, max=140, avg=18.50, stdev=12.23
clat percentiles (msec):
| 1.00th=[ 15], 5.00th=[ 16], 10.00th=[ 16], 20.00th=[ 16],
| 30.00th=[ 16], 40.00th=[ 16], 50.00th=[ 16], 60.00th=[ 16],
| 70.00th=[ 17], 80.00th=[ 18], 90.00th=[ 20], 95.00th=[ 22],
| 99.00th=[ 90], 99.50th=[ 106], 99.90th=[ 132], 99.95th=[ 136],
| 99.99th=[ 142]
bw ( KiB/s): min= 520, max= 1032, per=100.00%, avg=864.97, stdev=120.06, samples=120
iops : min= 130, max= 258, avg=216.22, stdev=30.00, samples=120
lat (msec) : 10=0.04%, 20=92.82%, 50=3.92%, 100=2.57%, 250=0.65%
cpu : usr=0.73%, sys=1.27%, ctx=13586, majf=0, minf=9
IO depths : 1=0.1%, 2=0.1%, 4=100.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 rwts: total=0,12981,0,0 short=0,0,0,0 dropped=0,0,0,0
latency : target=0, window=0, percentile=100.00%, depth=4
Run status group 0 (all jobs):
READ: bw=8687KiB/s (8895kB/s), 8687KiB/s-8687KiB/s (8895kB/s-8895kB/s), io=509MiB (534MB), run=60003-60003msec
Run status group 1 (all jobs):
READ: bw=2928KiB/s (2999kB/s), 2928KiB/s-2928KiB/s (2999kB/s-2999kB/s), io=172MiB (180MB), run=60005-60005msec
Run status group 2 (all jobs):
WRITE: bw=1302KiB/s (1333kB/s), 1302KiB/s-1302KiB/s (1333kB/s-1333kB/s), io=76.3MiB (79.0MB), run=60007-60007msec
Run status group 3 (all jobs):
WRITE: bw=864KiB/s (885kB/s), 864KiB/s-864KiB/s (885kB/s-885kB/s), io=50.7MiB (53.2MB), run=60100-60100msec
Disk stats (read/write):
mmcblk0: ios=141379/27626, merge=32862/4887, ticks=161904/348092, in_queue=469572, util=97.85%
$ fio ./ssd-test.fio
seq-read: (g=0): rw=read, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=4
rand-read: (g=1): rw=randread, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=4
seq-write: (g=2): rw=write, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=4
rand-write: (g=3): rw=randwrite, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=4
fio-3.8
Starting 4 processes
Jobs: 1 (f=1): [_(3),w(1)][57.2%][r=0KiB/s,w=876KiB/s][r=0,w=219 IOPS][eta 03m:00s]
seq-read: (groupid=0, jobs=1): err= 0: pid=27251: Fri Nov 9 20:59:38 2018
read: IOPS=1917, BW=7672KiB/s (7856kB/s)(450MiB/60003msec)
slat (usec): min=2, max=11635, avg=28.47, stdev=90.36
clat (usec): min=70, max=52249, avg=2050.13, stdev=872.13
lat (usec): min=544, max=52340, avg=2079.21, stdev=868.15
clat percentiles (usec):
| 1.00th=[ 570], 5.00th=[ 1303], 10.00th=[ 1729], 20.00th=[ 1860],
| 30.00th=[ 1909], 40.00th=[ 1942], 50.00th=[ 1958], 60.00th=[ 1991],
| 70.00th=[ 2024], 80.00th=[ 2073], 90.00th=[ 2343], 95.00th=[ 2999],
| 99.00th=[ 5145], 99.50th=[ 6390], 99.90th=[ 9110], 99.95th=[10945],
| 99.99th=[51643]
bw ( KiB/s): min= 4832, max= 7851, per=78.34%, avg=6009.44, stdev=240.39, samples=119
iops : min= 1208, max= 1962, avg=1501.98, stdev=60.05, samples=119
lat (usec) : 100=0.01%, 250=0.07%, 500=0.12%, 750=1.62%, 1000=0.87%
lat (msec) : 2=62.32%, 4=32.91%, 10=2.02%, 20=0.05%, 50=0.01%
lat (msec) : 100=0.01%
cpu : usr=2.48%, sys=5.59%, ctx=104475, majf=0, minf=17
IO depths : 1=0.1%, 2=0.1%, 4=100.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 rwts: total=115079,0,0,0 short=0,0,0,0 dropped=0,0,0,0
latency : target=0, window=0, percentile=100.00%, depth=4
rand-read: (groupid=1, jobs=1): err= 0: pid=28240: Fri Nov 9 20:59:38 2018
read: IOPS=608, BW=2435KiB/s (2493kB/s)(143MiB/60003msec)
slat (usec): min=4, max=3822, avg=36.38, stdev=44.98
clat (usec): min=163, max=47459, avg=6523.28, stdev=2537.75
lat (usec): min=761, max=47487, avg=6560.36, stdev=2537.08
clat percentiles (usec):
| 1.00th=[ 2704], 5.00th=[ 3228], 10.00th=[ 3392], 20.00th=[ 3818],
| 30.00th=[ 5276], 40.00th=[ 5538], 50.00th=[ 7046], 60.00th=[ 7242],
| 70.00th=[ 7439], 80.00th=[ 8160], 90.00th=[ 9372], 95.00th=[10028],
| 99.00th=[11731], 99.50th=[18220], 99.90th=[22414], 99.95th=[23987],
| 99.99th=[45876]
bw ( KiB/s): min= 1778, max= 2365, per=83.21%, avg=2026.24, stdev=94.82, samples=119
iops : min= 444, max= 591, avg=506.21, stdev=23.78, samples=119
lat (usec) : 250=0.01%, 500=0.01%, 750=0.02%, 1000=0.12%
lat (msec) : 2=0.27%, 4=20.77%, 10=73.85%, 20=4.63%, 50=0.33%
cpu : usr=1.29%, sys=2.83%, ctx=37357, majf=0, minf=15
IO depths : 1=0.1%, 2=0.1%, 4=100.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 rwts: total=36527,0,0,0 short=0,0,0,0 dropped=0,0,0,0
latency : target=0, window=0, percentile=100.00%, depth=4
seq-write: (groupid=2, jobs=1): err= 0: pid=29228: Fri Nov 9 20:59:38 2018
write: IOPS=60, BW=243KiB/s (249kB/s)(14.3MiB/60122msec)
slat (usec): min=3, max=191763, avg=378.52, stdev=6929.88
clat (msec): min=2, max=335, avg=65.40, stdev=64.05
lat (msec): min=2, max=335, avg=65.78, stdev=64.40
clat percentiles (msec):
| 1.00th=[ 7], 5.00th=[ 8], 10.00th=[ 8], 20.00th=[ 9],
| 30.00th=[ 10], 40.00th=[ 11], 50.00th=[ 14], 60.00th=[ 72],
| 70.00th=[ 116], 80.00th=[ 144], 90.00th=[ 146], 95.00th=[ 159],
| 99.00th=[ 192], 99.50th=[ 194], 99.90th=[ 288], 99.95th=[ 292],
| 99.99th=[ 334]
bw ( KiB/s): min= 63, max= 873, per=88.04%, avg=213.93, stdev=217.87, samples=120
iops : min= 15, max= 218, avg=53.08, stdev=54.45, samples=120
lat (msec) : 4=0.08%, 10=33.80%, 20=16.78%, 50=1.86%, 100=12.01%
lat (msec) : 250=35.33%, 500=0.14%
cpu : usr=0.06%, sys=0.40%, ctx=3002, majf=0, minf=12
IO depths : 1=0.1%, 2=0.1%, 4=99.9%, 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 rwts: total=0,3654,0,0 short=0,0,0,0 dropped=0,0,0,0
latency : target=0, window=0, percentile=100.00%, depth=4
rand-write: (groupid=3, jobs=1): err= 0: pid=30209: Fri Nov 9 20:59:38 2018
write: IOPS=73, BW=294KiB/s (301kB/s)(17.2MiB/60038msec)
slat (usec): min=6, max=237929, avg=398.87, stdev=7517.47
clat (msec): min=8, max=358, avg=54.08, stdev=67.20
lat (msec): min=8, max=358, avg=54.48, stdev=67.72
clat percentiles (msec):
| 1.00th=[ 14], 5.00th=[ 16], 10.00th=[ 16], 20.00th=[ 16],
| 30.00th=[ 16], 40.00th=[ 16], 50.00th=[ 16], 60.00th=[ 17],
| 70.00th=[ 23], 80.00th=[ 124], 90.00th=[ 190], 95.00th=[ 192],
| 99.00th=[ 203], 99.50th=[ 241], 99.90th=[ 300], 99.95th=[ 330],
| 99.99th=[ 359]
bw ( KiB/s): min= 64, max= 1024, per=100.00%, avg=293.36, stdev=321.87, samples=120
iops : min= 16, max= 256, avg=73.28, stdev=80.47, samples=120
lat (msec) : 10=0.02%, 20=69.25%, 50=3.24%, 100=6.29%, 250=20.72%
lat (msec) : 500=0.48%
cpu : usr=0.22%, sys=0.52%, ctx=4782, majf=0, minf=10
IO depths : 1=0.1%, 2=0.1%, 4=99.9%, 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 rwts: total=0,4407,0,0 short=0,0,0,0 dropped=0,0,0,0
latency : target=0, window=0, percentile=100.00%, depth=4
Run status group 0 (all jobs):
READ: bw=7672KiB/s (7856kB/s), 7672KiB/s-7672KiB/s (7856kB/s-7856kB/s), io=450MiB (471MB), run=60003-60003msec
Run status group 1 (all jobs):
READ: bw=2435KiB/s (2493kB/s), 2435KiB/s-2435KiB/s (2493kB/s-2493kB/s), io=143MiB (150MB), run=60003-60003msec
Run status group 2 (all jobs):
WRITE: bw=243KiB/s (249kB/s), 243KiB/s-243KiB/s (249kB/s-249kB/s), io=14.3MiB (14.0MB), run=60122-60122msec
Run status group 3 (all jobs):
WRITE: bw=294KiB/s (301kB/s), 294KiB/s-294KiB/s (301kB/s-301kB/s), io=17.2MiB (18.1MB), run=60038-60038msec
Disk stats (read/write):
mmcblk0: ios=122974/7182, merge=28633/947, ticks=143960/398860, in_queue=449784, util=93.98%
@matoken
Copy link
Author

matoken commented Nov 10, 2018

fio の example の /usr/share/doc/fio/examples/ssd-test.fio を利用

$ dpkg-query -W fio
fio     3.8-1
$ lsb_release -d
Description:    Debian GNU/Linux unstable (sid)
$ uname -m
x86_64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment