Posted on 2012-05-14 16:10
Milo的海域 閱讀(805)
評(píng)論(0) 編輯 收藏 所屬分類:
MySQL
0.5版本的sysbench已經(jīng)支持multi-table
Download src code
bzr branch lp:sysbench
make后就可以執(zhí)行了
Percona對(duì)這個(gè)版本的sysbench的參數(shù)有個(gè)不錯(cuò)的wiki page:
http://www.percona.com/docs/wiki/benchmark:sysbench:olpt.lua下面這個(gè)文章對(duì)0.5的sysbench有個(gè)比較全面的介紹:
./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
補(bǔ)充下,如果要使用 --max-time這個(gè)參數(shù), 需要配合--max-requests=0。
--max-requests=N limit for total number of requests [10000]
如果N=0將取消max-requests的限制