FIO工具测试延迟、带宽、IOPS
生活随笔
收集整理的這篇文章主要介紹了
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 supportedJobs: 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 2021read: IOPS=12.9k, BW=50.5MiB/s (52.0MB/s)(14.8GiB/300001msec)slat (usec): min=2, max=201, avg= 9.71, stdev= 3.86clat (usec): min=276, max=3065, avg=1223.95, stdev=182.92lat (usec): min=288, max=3078, avg=1233.74, stdev=183.79clat 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=598iops : min= 7770, max=16820, avg=12954.27, stdev=1329.54, samples=598lat (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=1758IO 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,0latency : target=0, window=0, percentile=100.00%, depth=16Run 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的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux下sed命令替换配置文件中某个
- 下一篇: Linux IO路径图