测试软件:sysbench-fileio

1、测试环境是PC服务器,磁盘用的是oracle acfs
2、创建文件

  1. [root@ ogg]# sysbench --test=fileio --num-threads=32 --file-total-size=20G --file-test-mode=rndrw prepare
  2. sysbench 0.5: multi-threaded system evaluation benchmark

  3. 128 files, 163840Kb each, 20480Mb total
  4. Creating files for the test...
  5. Extra file open flags: 0
  6. Creating file test_file.0
  7. Creating file test_file.1
  8. Creating file test_file.2
  9. .........................
  10. Creating file test_file.125
  11. Creating file test_file.126
  12. Creating file test_file.127
  13. 21474836480 bytes written in 90.29 seconds (226.81 MB/sec).
默认创建了128个文件,块大小16K,创建时间90秒,每秒226M
3、测试随机读写

  1. [root@ ogg]# sysbench --test=fileio --num-threads=32 --file-total-size=20G --file-test-mode=rndrw run
  2. sysbench 0.5: multi-threaded system evaluation benchmark

  3. Running the test with following options:
  4. Number of threads: 32
  5. Random number generator seed is 0 and will be ignored


  6. Extra file open flags: 0
  7. 128 files, 160Mb each
  8. 20Gb total file size
  9. Block size 16Kb
  10. Number of IO requests: 10000
  11. Read/Write ratio for combined random IO test: 1.50
  12. Periodic FSYNC enabled, calling fsync() each 100 requests.
  13. Calling fsync() at the end of test, Enabled.
  14. Using synchronous I/O mode
  15. Doing random r/w test
  16. Threads

  17. Operations performed: 5997 reads, 4003 writes, 12800 Other = 22800 Total
  18. Read 93.703Mb Written 62.547Mb Total transferred 156.25Mb (90.321Mb/sec)
  19.  5780.54 Requests/sec executed

  20. General statistics:
  21.     total time: 1.7299s
  22.     total number of events: 10000
  23.     total time taken by event execution: 0.1696s
  24.     response time:
  25.          min: 0.01ms
  26.          avg: 0.02ms
  27.          max: 0.24ms
  28.          approx. 95 percentile: 0.03ms

  29. Threads fairness:
  30.     events (avg/stddev): 312.5000/88.82
  31.     execution time (avg/stddev): 0.0053/0.00
默认随机读写的比例是3:2,总传输156M,每秒90M。
完成93M读,62M写的总时间是1.729s。
4、清除测试文件

  1. [root@ ogg]# sysbench --test=fileio --num-threads=32 --file-total-size=20G --file-test-mode=rndrw cleanup
  2. sysbench 0.5: multi-threaded system evaluation benchmark

  3. Removing test files...

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12219480/viewspace-1755430/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/12219480/viewspace-1755430/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值