性能测试工具sysbench安装与使用

创造于:2010年06月09日09:15 档案在:性能优化 浏览次数:225 作者:liuhui

一,sysbench官方下载
http://sysbench.sourceforge.net/

二,sysbench安装

  1. #cd sysbench-0.4.12
  2. #./autogen.sh
  3. #./configure --prefix=/store1/sysbench
  4. #make
  5. #make install

安装过程出现了Fata Error,主要是由于没有执行./autogen.sh命今,其它问题,请参考下面的链接资料。

三,sysbench使用
1,基础语法

  1. #sysbench [common-options] --test=name [test-options] command

2,测试cpu性能

  1. #sysbench --test=cpu --cpu-max-prime=20000 run

3,测试threads进程性能

  1. #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

发表一下看法
注册一下,轻松回复,请放心,邮箱严格保密,便于更好沟通
用户名*
邮箱*
个人主页 (带http://)
内容
验证码