sysbench 安装
http://blog.163.com/digoal@126/blog/static/16387704020134142151769/
1 找不到mysql
的include
和lib
文件目录
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | wget -c http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-devel-5.6.19-1.el6.x86_64.rpm/from/http://mysql.spd.co.il/ rpm -ivh MySQL-devel-5.6.19-1.el6.x86_64.rpm wget -c http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-shared-5.6.19-1.el6.x86_64.rpm/from/http://mysql.spd.co.il/ rpm -ivh MySQL-shared-5.6.19-1.el6.x86_64.rpm rpm -qa|grep MySQL rpm -ql MySQL-server-5.6.19-1.el6.x86_64 chkconfig --list|grep -i mysql ./configure --with-mysql-includes=/usr/include/mysql --with-mysql-libs=/usr/lib64/mysql/ make make check make install |
可惜,仍然不能很好的结果问题,继续艰难摸索中.
#### 2 最终解决方案
##### 5-0 版本但是不能测试
oltp
1 2 3 | http://www.lefred.be/node/154 rpm -ivh sysbench-0.5-2.el6_.x86_64.rpm rpm -ql sysbench |
转回 4.10 版本 解决方案
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | #git clone https://github.com/nettedfish/sysbench_from_percona.git yum -y install libtool yum -y install automake* rm -rf libtool ln -s /usr/bin/libtool ./ ./autogen.sh ./configure make & make install ln -s /usr/local/bin/sysbench /usr/bin/ sysbench --test=oltp help sysbench 0.4.10: multi-threaded system evaluation benchmark oltp options: --oltp-test-mode=STRING test type to use {simple,complex,nontrx,sp} [complex] --oltp-sp-name=STRING name of store procedure to call in SP test mode [] --oltp-read-only=[on|off] generate only 'read' queries (do not modify database) [off] --oltp-skip-trx=[on|off] skip BEGIN/COMMIT statements [off] --oltp-range-size=N range size for range queries [100] --oltp-point-selects=N number of point selects [10] --oltp-simple-ranges=N number of simple ranges [1] --oltp-sum-ranges=N number of sum ranges [1] --oltp-order-ranges=N number of ordered ranges [1] --oltp-distinct-ranges=N number of distinct ranges [1] --oltp-index-updates=N number of index update [1] --oltp-non-index-updates=N number of non-index updates [1] --oltp-nontrx-mode=STRING mode for non-transactional test {select, update_key, update_nokey, insert, delete} [select] --oltp-auto-inc=[on|off] whether AUTO_INCREMENT (or equivalent) should be used on id column [on] --oltp-connect-delay=N time in microseconds to sleep after connection to database [10000] --oltp-user-delay-min=N minimum time in microseconds to sleep after each request [0] --oltp-user-delay-max=N maximum time in microseconds to sleep after each request [0] --oltp-table-name=STRING name of test table [sbtest] --oltp-table-size=N number of records in test table [10000] --oltp-dist-type=STRING random numbers distribution {uniform,gaussian,special} [special] --oltp-dist-iter=N number of iterations used for numbers generation [12] --oltp-dist-pct=N percentage of values to be treated as 'special' (for special distribution) [1] --oltp-dist-res=N percentage of 'special' values to use (for special distribution) [75] General database options: --db-driver=STRING specifies database driver to use ('help' to get list of available drivers) --db-ps-mode=STRING prepared statements usage mode {auto, disable} [auto] Compiled-in database drivers: mysql - MySQL driver mysql options: --mysql-host=[LIST,...] MySQL server host [localhost] --mysql-port=N MySQL server port [3306] --mysql-socket=STRING MySQL socket --mysql-user=STRING MySQL user [sbtest] --mysql-password=STRING MySQL password [] --mysql-db=STRING MySQL database name [sbtest] --mysql-table-engine=STRING storage engine to use for the test table {myisam,innodb,bdb,heap,ndbcluster,federated} [innodb] --mysql-engine-trx=STRING whether storage engine used is transactional or not {yes,no,auto} [auto] --mysql-ssl=[on|off] use SSL connections, if available in the client library [off] --myisam-max-rows=N max-rows parameter for MyISAM tables [1000000] --mysql-create-options=STRING additional options passed to CREATE TABLE [] |
后续将继续关注数据测试结果.
3 关于libtool
错误的其它参考
4 sysbench-4.12
和dbt2
官方测试源址
1 2 3 4 5 6 | wget http://downloads.mysql.com/source/sysbench-0.4.12.5.tar.gz gunzip sysbench-0.4.12.5.tar.gz tar -xvf sysbench-0.4.12.5.tar cd sysbench-0.4.12.5 wget http://downloads.mysql.com/source/dbt2-0.37.50.3.tar.gz |
欢迎参见Details