0.5版本的sysbench已經(jīng)支持multi-table
Download src code
make后就可以執(zhí)行了
Percona對這個版本的sysbench的參數(shù)有個不錯的wiki page:
http://www.percona.com/docs/wiki/benchmark:sysbench:olpt.lua
下面這個文章對0.5的sysbench有個比較全面的介紹:
補充下,如果要使用 --max-time這個參數(shù), 需要配合--max-requests=0。
Download src code
bzr branch lp:sysbench
make后就可以執(zhí)行了
Percona對這個版本的sysbench的參數(shù)有個不錯的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
./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這個參數(shù), 需要配合--max-requests=0。
--max-requests=N limit for total number of requests [10000]
如果N=0將取消max-requests的限制