sysbench支持以下几种测试模式:
1、CPU运算性能
2、磁盘IO性能
3、内存分配及传输速度
4、内存分配及传输速度
5、POSIX线程性能
6、数据库性能(OLTP基准测试)
目前sysbench主要支持mysql,drizzle,pgsql,oracle等几种数据库
下面安装sysbench
一、 下载源码包,安装epel包后以便安装bzr客户端:
[root ~]$ rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
warning: /var/tmp/rpm-tmp.wgHSDP: Header V3 DSA/SHA1 Signature, key ID 217521f6: NOKEY
Preparing... ########################################### [100%]
1:epel-release ########################################### [100%]
然后就可以开始安装bzr客户端了:
以下安装报错了:
[root yum.repos.d]$ yum install bzr Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.ustc.edu.cn * epel: mirrors.ustc.edu.cn * extras: mirror.bit.edu.cn * updates: mirror.bit.edu.cn epel | 3.7 kB 00:00 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package bzr.x86_64 0:2.1.4-2.el5 will be installed --> Processing Dependency: python(abi) = 2.4 for package: bzr-2.1.4-2.el5.x86_64 --> Processing Dependency: python-paramiko for package: bzr-2.1.4-2.el5.x86_64 --> Processing Dependency: python-elementtree for package: bzr-2.1.4-2.el5.x86_64 --> Running transaction check ---> Package bzr.x86_64 0:2.1.4-2.el5 will be installed --> Processing Dependency: python(abi) = 2.4 for package: bzr-2.1.4-2.el5.x86_64 --> Processing Dependency: python-elementtree for package: bzr-2.1.4-2.el5.x86_64 ---> Package python-paramiko.noarch 0:1.7.6-1.el5 will be installed --> Processing Dependency: python(abi) = 2.4 for package: python-paramiko-1.7.6-1.el5.noarch --> Finished Dependency Resolution Error: Package: bzr-2.1.4-2.el5.x86_64 (epel) Requires: python(abi) = 2.4 Installed: python-2.6.6-52.el6.x86_64 (@updates) python(abi) = 2.6 Available: python26-2.6.8-2.el5.x86_64 (epel) python(abi) = 2.6 Error: Package: python-paramiko-1.7.6-1.el5.noarch (epel) Requires: python(abi) = 2.4 Installed: python-2.6.6-52.el6.x86_64 (@updates) python(abi) = 2.6 Available: python26-2.6.8-2.el5.x86_64 (epel) python(abi) = 2.6 Error: Package: bzr-2.1.4-2.el5.x86_64 (epel) Requires: python-elementtree You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest |