Posted on 2012-05-14 16:10
Milo的海域 閱讀(807)
評論(0) 編輯 收藏 所屬分類:
MySQL
0.5版本的sysbench已經支持multi-table
Download src code
bzr branch lp:sysbench
make后就可以執行了
Percona對這個版本的sysbench的參數有個不錯的wiki page:
http://www.percona.com/docs/wiki/benchmark:sysbench:olpt.lua下面這個文章對0.5的sysbench有個比較全面的介紹:
./sysbench --mysql-host=$host1 --mysql-port=3306 --mysql-user=*** --mysql-password=*** --test=/path/to/sysbench/tests/db/oltp.lua --oltp-tables-count=$oltp_table_num --num-threads=$num_thread --max-requests=0 --max-time=$max_time prepare
./sysbench --mysql-host=$host1 --mysql-port=3306 --mysql-user=*** --mysql-password=*** --test=/path/to/sysbench/tests/db/oltp.lua --oltp-tables-count=$oltp_table_num --num-threads=$num_thread --max-requests=0 --max-time=$max_time run
補充下,如果要使用 --max-time這個參數, 需要配合--max-requests=0。
--max-requests=N limit for total number of requests [10000]
如果N=0將取消max-requests的限制