Benchmark

如何將 Fio 配置為更準確的 IOP 結果

  • July 30, 2016

我正在使用 fio 來測試我的伺服器可以提供多少 iops。我的 conf 文件說要寫一個 20GB 的文件並讀取它。結果顯示 iops=27291。但測試只持續了10秒。例如,我想知道測試是否持續 2 小時,我會得到關於我的伺服器 IOP 的更準確的結果。

# cat fio/fio-readwrite-20g.fio 
[global]
ioengine=posixaio
rw=readwrite
size=20g
directory=/home/ustore/fio
thread=10
write_bw_log=fio-test
write_iops_log=fio-test
write_lat_log=fio-test

[fio-readwrite-20g]

閱讀手冊頁會產生

  runtime=int
         Terminate processing after the specified number of seconds.

  time_based
         If  given, run for the specified runtime duration even if the files 
         are completely read or written. The same workload will
         be repeated as many times as runtime allows.

引用自:https://serverfault.com/questions/792880