2016-09-25 78 views
0

我使用fio進行存儲基準測試和fio2gnuplot繪製圖形,每次運行測試並查看iops的日誌文件時,第二個coloumn始終爲1,這是iops值,由於此圖形只是一條垂直於Y的直線這是沒有道理的。我試過各種iodepths,ioengines但沒有use.am我使用任何參數(選項)錯了?如何解釋ioops日誌文件?

以下是我的作業文件。

[global] 

enter code here 

rw=randwrite 
size=128m 
thread=1 
iodepth=2 
ioengine=libaio 
per_job_logs=0 
directory=/home/fio 



[job_512] 
write_bw_log=logfiles_libaio/fio-test_512 
write_iops_log=logfiles_libaio/fio-test_512 
write_lat_log=logfiles_libaio/fio-test_512 
bs=512b 

,這是日誌文件

1, 1, 0, 512 
2, 1, 1, 512 
18, 1, 1, 512 
19, 1, 0, 512 
31, 1, 1, 512 
53, 1, 1, 512 
55, 1, 1, 512 
56, 1, 0, 512 
59, 1, 1, 512 
63, 1, 1, 512 

回答

1

根據FIO手冊(man FIO),在 「FIO文件格式」,它說:

Fio supports a variety of log file formats, for logging latencies, bandwidth, and IOPS. The logs 
    share a common format, which looks like this: 

    time (msec), value, data direction, offset 

    Time for the log entry is always in milliseconds. The value logged depends on the type of log, it 
    will be one of the following: 


    Latency log 
      Value is in latency in usecs 
    Bandwidth log 
      Value is in KB/sec 
    IOPS log 
      Value is in IOPS 

    Data direction is one of the following: 


    0  IO is a READ 
    1  IO is a WRITE 
    2  IO is a TRIM 

不過,我覺得'抵消'應該是'IO尺寸'。

所以,在你的帶寬情況下,它是:

timestamp(ms), bandwidth(KB/sec), R/W, size