一,sysbench官方下载
http://sysbench.sourceforge.net/
二,sysbench安装
- #cd sysbench-0.4.12
- #./autogen.sh
- #./configure --prefix=/store1/sysbench
- #make
- #make install
安装过程出现了Fata Error,主要是由于没有执行./autogen.sh命今,其它问题,请参考下面的链接资料。
三,sysbench使用
1,基础语法
- #sysbench [common-options] --test=name [test-options] command
2,测试cpu性能
- #sysbench --test=cpu --cpu-max-prime=20000 run
3,测试threads进程性能
- #sysbench --num-threads=64 --test=threads --thread-yields=100 --thread-locks=2 run
4,其它测试请参考sysbench在线文档
http://sysbench.sourceforge.net/docs/
其它资料
http://www.randombugs.com/linux/compiling-sysbench-0412-debian.html
实践是一个过程,记录是一种方式,无数个思考的点滴托起
