使用fio命令测试硬盘iops

2017年12月19日

fio -filename=/dev/vda1 -direct=1 -rw=randrw -bs=16k -rwmixread=50 -ioengine=libaio -size=20G -numjobs=32 -runtime=1800 -group_reporting -name=randrw-libaio > /tmp/ioreport.txt

注意有些环境下–ioscheduler=noop参数是不支持的。目前测试Centos 7.2环境里面不支持这个擦参数设置

randrw-libaio: (g=0): rw=randrw, bs=16K-16K/16K-16K/16K-16K, ioengine=libaio, iodepth=1

fio-2.2.8
Starting 32 processes

randrw-libaio: (groupid=0, jobs=32): err= 0: pid=30224: Tue Dec 19 12:24:24 2017
read : io=54934MB, bw=31251KB/s, iops=1953, runt=1800002msec
slat (usec): min=0, max=6099, avg= 7.58, stdev=19.53
clat (usec): min=126, max=818101, avg=8787.58, stdev=16145.88
lat (usec): min=162, max=818108, avg=8795.55, stdev=16146.09
clat percentiles (usec):
| 1.00th=[ 636], 5.00th=[ 772], 10.00th=[ 892], 20.00th=[ 1064],
| 30.00th=[ 1208], 40.00th=[ 1336], 50.00th=[ 1480], 60.00th=[ 1752],
| 70.00th=[ 9408], 80.00th=[15808], 90.00th=[20608], 95.00th=[38144],
| 99.00th=[77312], 99.50th=[94720], 99.90th=[119296], 99.95th=[148480],
| 99.99th=[333824]
bw (KB /s): min= 31, max= 2478, per=3.13%, avg=978.07, stdev=254.99
write: io=54962MB, bw=31267KB/s, iops=1954, runt=1800002msec
slat (usec): min=0, max=6168, avg= 7.72, stdev=19.14
clat (usec): min=2, max=736757, avg=7570.44, stdev=13873.55
lat (usec): min=725, max=736765, avg=7578.55, stdev=13873.65
clat percentiles (usec):
| 1.00th=[ 1064], 5.00th=[ 1192], 10.00th=[ 1288], 20.00th=[ 1528],
| 30.00th=[ 1768], 40.00th=[ 1976], 50.00th=[ 2160], 60.00th=[ 2416],
| 70.00th=[ 2896], 80.00th=[12480], 90.00th=[19328], 95.00th=[36608],
| 99.00th=[76288], 99.50th=[87552], 99.90th=[115200], 99.95th=[120320],
| 99.99th=[138240]
bw (KB /s): min= 30, max= 2587, per=3.13%, avg=978.82, stdev=256.25
lat (usec) : 4=0.01%, 250=0.01%, 500=0.01%, 750=2.15%, 1000=5.81%
lat (msec) : 2=44.42%, 4=17.69%, 10=4.19%, 20=15.92%, 50=6.96%
lat (msec) : 100=2.60%, 250=0.24%, 500=0.01%, 750=0.01%, 1000=0.01%
cpu : usr=0.07%, sys=0.15%, ctx=7033488, majf=0, minf=1163
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=3515788/w=3517559/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):
READ: io=54934MB, aggrb=31251KB/s, minb=31251KB/s, maxb=31251KB/s, mint=1800002msec, maxt=1800002msec
WRITE: io=54962MB, aggrb=31267KB/s, minb=31267KB/s, maxb=31267KB/s, mint=1800002msec, maxt=1800002msec

Disk stats (read/write):
vdb: ios=3515765/3517627, merge=0/0, ticks=30843155/26581951, in_queue=57787574, util=100.00%

发表评论

电子邮件地址不会被公开。 必填项已用*标注