SysbenchディスクIOテストの出力結果解読

6603 ワード

データの準備+ランダム読み書きテスト
sysbench --num-threads=16 --test=fileio --file-total-size=3G --file-test-mode=rndrw prepare



sysbench --num-threads=16 --test=fileio --file-total-size=3G --file-test-mode=rndrw run 

出力結果:#後は解読コメント
root@wuzhou:/home/meizu/sysbench/sysbench-0.4.12# sysbench --num-threads=16 --test=fileio --file-total-size=3G --file-test-mode=rndrw run 

sysbench 0.4.12:  multi-threaded system evaluation benchmark



Running the test with following options:

Number of threads: 16                             #16 



Extra file open flags: 0

128 files, 24Mb each                              #3G 128 , 24Mb

3Gb total file size 

Block size 16Kb                                   # 16Kb Number of random requests for random IO: 10000          # IO 10000       

Read/Write ratio for combined random IO test: 1.50      # 1.5:1

Periodic FSYNC enabled, calling fsync() each 100 requests.  

Calling fsync() at the end of test, Enabled.

Using synchronous I/O mode

Doing random r/w test             # 

Threads started!

Done.



Operations performed:  6010 Read, 3998 Write, 12806 Other = 22814 Total

Read 93.906Mb  Written 62.469Mb  Total transferred 156.38Mb  (122.03Mb/sec)   # IO (122.03Mb/sec) 7810.19 Requests/sec executed      #7810.19/s  IOPC。 IO block,  block=16K,7810*16/1024=122.03Mb. IO IOPS。                               



Test execution summary:

    total time:                          1.2814s

    total number of events:              10008

    total time taken by event execution: 15.8660

    per-request statistics:

         min:                                  0.00ms

         avg:                                  1.59ms

         max:                                 14.04ms

         approx.  95 percentile:               6.04ms



Threads fairness:

    events (avg/stddev):           625.5000/24.21

    execution time (avg/stddev):   0.9916/0.01