概述
FIP中的I/O延迟包括三种:slat,clat,lat
关系是 lat = slat + clat
slat 表示fio submit某个I/O的延迟。
clat 表示fio complete某个I/O的延迟。
lat 表示从fio将请求提交给内核,再到内核完成这个I/O为止所需要的时间。
fio命令如下
fio -filename=/mnt/yucheng/testkyc.dat -direct=1 -iodepth 16 -thread -rw=randread -ioengine=libaio -bs=4k -size=10G -numjobs=1 --time_based -runtime=300 -group_reporting -name=kyctest
其中关键参数
- -rw=randread # 读写模式
- -bs=4k # 读写文件大小
命令结果
kyctest4rw: (g=0): rw=randread, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=16
fio-3.1
Starting 1 thread
kyctest4rw: Laying out IO file (1 file / 10240MiB)
fio: native_fallocate call failed: Operation not supported
Jobs: 1 (f=1): [r(1)][93.7%][r=52.6MiB/s,w=0KiB/s][r=13.5k,w=0 IOPS][eta 00m:19s]
Jobs: 1 (f=1): [r(1)][100.0%][r=53.0MiB/s,w=0KiB/s][r=13.6k,w=0 IOPS][eta 00m:00s]
kyctest: (groupid=0, jobs=1): err= 0: pid=3668664: Mon Mar 8 11:06:31 2021
read: IOPS=12.9k, BW=50.5MiB/s (52.0MB/s)(14.8GiB/300001msec)
slat (usec): min=2, max=201, avg= 9.71, stdev= 3.86
clat (usec): min=276, max=3065, avg=1223.95, stdev=182.92
lat (usec): min=288, max=3078, avg=1233.74, stdev=183.79
clat percentiles (usec):
| 1.00th=[ 791], 5.00th=[ 914], 10.00th=[ 996], 20.00th=[ 1090],
| 30.00th=[ 1139], 40.00th=[ 1172], 50.00th=[ 1221], 60.00th=[ 1270],
| 70.00th=[ 1319], 80.00th=[ 1369], 90.00th=[ 1450], 95.00th=[ 1516],
| 99.00th=[ 1680], 99.50th=[ 1729], 99.90th=[ 1827], 99.95th=[ 1876],
| 99.99th=[ 1942]
bw ( KiB/s): min=31080, max=67280, per=100.00%, avg=51817.13, stdev=5318.14, samples=598
iops : min= 7770, max=16820, avg=12954.27, stdev=1329.54, samples=598
lat (usec) : 500=0.01%, 750=0.46%, 1000=10.11%
lat (msec) : 2=89.42%, 4=0.01%
cpu : usr=1.36%, sys=15.83%, ctx=3611468, majf=0, minf=1758
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=100.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.1%, 32=0.0%, 64=0.0%, >=64=0.0%
issued rwt: total=3880415,0,0, short=0,0,0, dropped=0,0,0
latency : target=0, window=0, percentile=100.00%, depth=16
Run status group 0 (all jobs):
READ: bw=50.5MiB/s (52.0MB/s), 50.5MiB/s-50.5MiB/s (52.0MB/s-52.0MB/s), io=14.8GiB (15.9GB), run=300001-300001msec
带宽为52.0MB/s
最后
以上就是温柔短靴为你收集整理的FIO工具测试延迟、带宽、IOPS的全部内容,希望文章能够帮你解决FIO工具测试延迟、带宽、IOPS所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复