Advertisement
Guest User

Untitled

a guest
Jul 27th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #注:很多发行版自带SysBench的是0.4.12,但有些参数(如oltp-tables-count)是0.5才支持的,建议从官方源获取源码编译运行
  4.  
  5. cmd="sysbench --test=/root/src/sysbench-0.5/sysbench/tests/db/oltp.lua \
  6. --oltp-table-size=2000000 \
  7. --oltp-tables-count=20 \
  8. --oltp-range-size=100 \
  9. --oltp-point-selects=10 \
  10. --oltp-simple-ranges=6 \
  11. --oltp-sum-ranges=2 \
  12. --oltp-order-ranges=3 \
  13. --oltp-distinct-ranges=2 \
  14. --oltp-index-updates=1 \
  15. --oltp-non-index-updates=1 \
  16. --num-threads=32
  17. --max-requests=0
  18. --max-time=1800
  19. --report-interval=10
  20. --rand-init=on
  21. --rand-type=special
  22. --rand-spec-iter=12
  23. --rand-spec-pct=10
  24. --rand-spec-res=75
  25. --verbosity=3
  26. --mysql-host=10.0.0.1
  27. --mysql-port=3306
  28. --mysql-user=root
  29. --mysql-password=123456
  30. "
  31. $cmd cleanup
  32. $cmd prepare
  33. $cmd run
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement