sysbench fileio 壓測磁碟raid 5 raid 1 raid10 raid 50 情況

e71hao發表於2022-11-18

一 機器配置



二 磁碟配置  



三 壓測場景

raid5,6塊盤SEAGATE  12 Gbps SAS 900G 15000轉
場景 8k小檔案隨機讀寫,讀30MBPS,寫20MBPS,IOPS :讀3955,寫2636
[root@localhost test22]# sysbench --events=500000  --threads=10 fileio  --file-num=10  --file-total-size=50G --file-test-mode=rndrw  --file-fsync-freq=0  --file-block-size=8192 run
sysbench 1.0.17 (using system LuaJIT 2.0.4)
Running the test with following options:
Number of threads: 10
Initializing random number generator from current time
Extra file open flags: (none)
10 files, 5GiB each
50GiB total file size
Block size 8KiB
Number of IO requests: 500000
Read/Write ratio for combined random IO test: 1.50
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random r/w test
Initializing worker threads...
Threads started!
File operations:
    reads/s:                      3955.30
    writes/s:                     2636.89
    fsyncs/s:                     1.32
Throughput:
    read, MiB/s:                  30.90
    written, MiB/s:               20.60
General statistics:
    total time:                          75.8425s
    total number of events:              500000
Latency (ms):
         min:                                    0.00
         avg:                                    0.01
         max:                                    0.99
         95th percentile:                        0.02
         sum:                                 5085.59
Threads fairness:
    events (avg/stddev):           50000.0000/771.65
    execution time (avg/stddev):   0.5086/0.01



四 壓測場景  

raid1,2塊盤SEAGATE  12 Gbps SAS 900G 15000轉
[root@pro-pnh-310-db-tidb-mp-45 test22]# sysbench --events=500000  --threads=10 fileio  --file-num=9  --file-total-size=45G --file-test-mode=rndrw  --file-fsync-freq=0  --file-block-size=8192 run
sysbench 1.0.17 (using system LuaJIT 2.0.4)
Running the test with following options:
Number of threads: 10
Initializing random number generator from current time
Extra file open flags: (none)
9 files, 5GiB each
45GiB total file size
Block size 8KiB
Number of IO requests: 500000
Read/Write ratio for combined random IO test: 1.50
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random r/w test
Initializing worker threads...
Threads started!
File operations:
    reads/s:                      2493.33
    writes/s:                     1662.22
    fsyncs/s:                     0.75
Throughput:
    read, MiB/s:                  19.48
    written, MiB/s:               12.99
General statistics:
    total time:                          120.3164s
    total number of events:              500000
Latency (ms):
         min:                                    0.00
         avg:                                    0.01
         max:                                    0.85
         95th percentile:                        0.02
         sum:                                 4581.36
Threads fairness:
    events (avg/stddev):           50000.0000/1986.51
    execution time (avg/stddev):   0.4581/0.00



五  raid50 6塊盤SEAGATE  12 Gbps SAS 900G 15000轉

[root@pro-pnh-310-db-tidb-mp-45 aa]# sysbench --events=500000  --threads=10 fileio  --file-num=10  --file-total-size=50G --file-test-mode=rndrw  --file-fsync-freq=0  --file-block-size=8192 run
sysbench 1.0.17 (using system LuaJIT 2.0.4)
Running the test with following options:
Number of threads: 10
Initializing random number generator from current time
Extra file open flags: (none)
10 files, 5GiB each
50GiB total file size
Block size 8KiB
Number of IO requests: 500000
Read/Write ratio for combined random IO test: 1.50
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random r/w test
Initializing worker threads...
Threads started!
File operations:
    reads/s:                      3411.46
    writes/s:                     2274.27
    fsyncs/s:                     1.14
Throughput:
    read, MiB/s:                  26.65
    written, MiB/s:               17.77
General statistics:
    total time:                          87.9340s
    total number of events:              500000
Latency (ms):
         min:                                    0.00
         avg:                                    0.01
         max:                                    0.90
         95th percentile:                        0.03
         sum:                                 6256.42
Threads fairness:
    events (avg/stddev):           50000.0000/1046.49
    execution time (avg/stddev):   0.6256/0.01





來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30393770/viewspace-2924140/,如需轉載,請註明出處,否則將追究法律責任。

相關文章