FIO工具测试延迟、带宽、IOPS

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

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

康雨城

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值