fio - flexible io benchmark
因工作需要找一個可以取代IOmeter業界慣用的IO效能評測軟體,過去為了某些測試有初略使用了fio 這個軟體,現在要來進階了。之前用的版本是1.5.x版,現在用的是2.0.7版這兩版在測試結果的輸出上欄位不同,2.0.7版多了更多欄位這裡不細述。 為了方便定義出多種測試pattern,決定使用參數的方式而不用profile file,範例如下: fio –name=$name –rw=${iomode} –direct=1 –ioengine=libaio –runtime=30s –ioscheduler=noop –filename=/dev/$target –bs=${block} –size=80% –iodepth=${iodepth} –zonesize=$[size/stream]k –numjobs=$stream –group_reporting –minimal >>