1、测试环境是PC服务器,磁盘用的是oracle acfs
2、创建文件
默认创建了128个文件,块大小16K,创建时间90秒,每秒226M
3、测试随机读写
默认随机读写的比例是3:2,总传输156M,每秒90M。
完成93M读,62M写的总时间是1.729s。
4、清除测试文件
2、创建文件
- [root@ ogg]# sysbench --test=fileio --num-threads=32 --file-total-size=20G --file-test-mode=rndrw prepare
- sysbench 0.5: multi-threaded system evaluation benchmark
-
- 128 files, 163840Kb each, 20480Mb total
- Creating files for the test...
- Extra file open flags: 0
- Creating file test_file.0
- Creating file test_file.1
- Creating file test_file.2
- .........................
- Creating file test_file.125
- Creating file test_file.126
- Creating file test_file.127
- 21474836480 bytes written in 90.29 seconds (226.81 MB/sec).
3、测试随机读写
- [root@ ogg]# sysbench --test=fileio --num-threads=32 --file-total-size=20G --file-test-mode=rndrw run
- sysbench 0.5: multi-threaded system evaluation benchmark
-
- Running the test with following options:
- Number of threads: 32
- Random number generator seed is 0 and will be ignored
-
-
- Extra file open flags: 0
- 128 files, 160Mb each
- 20Gb total file size
- Block size 16Kb
- Number of IO requests: 10000
- Read/Write ratio for combined random IO test: 1.50
- 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
-
- Operations performed: 5997 reads, 4003 writes, 12800 Other = 22800 Total
- Read 93.703Mb Written 62.547Mb Total transferred 156.25Mb (90.321Mb/sec)
- 5780.54 Requests/sec executed
-
- General statistics:
- total time: 1.7299s
- total number of events: 10000
- total time taken by event execution: 0.1696s
- response time:
- min: 0.01ms
- avg: 0.02ms
- max: 0.24ms
- approx. 95 percentile: 0.03ms
-
- Threads fairness:
- events (avg/stddev): 312.5000/88.82
- execution time (avg/stddev): 0.0053/0.00
完成93M读,62M写的总时间是1.729s。
4、清除测试文件
- [root@ ogg]# sysbench --test=fileio --num-threads=32 --file-total-size=20G --file-test-mode=rndrw cleanup
- sysbench 0.5: multi-threaded system evaluation benchmark
-
- Removing test files...
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12219480/viewspace-1755430/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/12219480/viewspace-1755430/