使用fio测试rbd,配置文件如下:
# cat fio.rbd.conf
[global]
ioengine=rbd
clientname=admin
pool=rbd01
rbdname=fio01
rw=write
bs=4k
runtime=120
[rbd_test]
iodepth=32
运行后的输出:
# fio ./fio.rbd.conf
1: rbd_iodepth32: (g=0): rw=write, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=rbd, iodepth=32
2: fio-3.1
3: Starting 1 process
4: Jobs: 1 (f=1): [W(1)][100.0%][r=0KiB/s,w=5760KiB/s][r=0,w=1440 IOPS][eta 00m:00s]
5: rbd_iodepth32: (groupid=0, jobs=1): err= 0: pid=19872: Fri Apr 27 16:16:57 2018
6: write: IOPS=1938, BW=7755KiB/s (7941kB/s)(2272MiB/300006msec)
7: slat (nsec): min=1650, max=838091, avg=5346.15, stdev=5862.49
8: clat (msec): min=6, max=464, avg=16.38, stdev=30.09
9: lat (msec): min=6, max=464, avg=16.39, stdev=30.09
10: clat percentiles (msec):
11: | 1.00th=[ 8], 5.00th=[ 9], 10.00th=[ 9], 20.00th=[ 9],
12: | 30.00th=[ 10], 40.00th=[ 11], 50.00th=[ 11], 60.00th=[ 12],
13: | 70.00th=[ 12], 80.00th=[ 14], 90.00th=[ 19], 95.00th=[ 32],
14: | 99.00th=[ 113], 99.50th=[ 271], 99.90th=[ 397], 99.95th=[ 405],
15: | 99.99th=[ 435]
16: bw ( KiB/s): min= 256, max=14080, per=100.00%, avg=7755.94, stdev=3066.02, samples=600
17: iops : min= 64, max= 3520, avg=1938.96, stdev=766.50, samples=600
18: lat (msec) : 10=40.74%, 20=50.67%, 50=5.05%, 100=0.25%, 250=2.76%
19: lat (msec) : 500=0.53%
20: cpu : usr=1.37%, sys=0.13%, ctx=36809, majf=0, minf=22093
21: IO depths : 1=3.1%, 2=6.3%, 4=12.5%, 8=25.0%, 16=50.0%, 32=3.1%, >=64=0.0%
22: submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
23: complete : 0=0.0%, 4=97.0%, 8=0.0%, 16=0.0%, 32=3.0%, 64=0.0%, >=64=0.0%
24: issued rwt: total=0,581632,0, short=0,0,0, dropped=0,0,0
25: latency : target=0, window=0, percentile=100.00%, depth=32
第6行:
输出总的IOPS,BW,也就是每秒IO操作数和带宽。
第7行:
slat 意为 submission latency,即IO提交延时。
nsec 为时间单位,纳秒。
该行统计IO生成到提交到内核之间的延时,min为所有最小延时,max为最大延时.
第8行:
clat 意为 completion latency,即IO完成延时。
msec为时间单位,毫秒。
该行统计IO完成需要多少延时,几个统计值与第7行相似。
第10~15行:
统计本次测试IO延时的比重。
比如第12行,30.00th=[ 10],表示10msec以下延时的IO操作占所有IO操作的30%,50.00th=[ 11],表示11msec以下延时的IO操作占所有IO操作的50%。
网友评论