How to install and use sysbench bitsCN.com (rhel5.8 + mysql5.5)
Errors are reported constantly during the installation process. it takes only one morning for reference to a large number of online materials.
1. prepare the environment, install related software packages, mount the optical drive, and configure yum Mount-o loop/data/rhel-server-5.9-x86_64-dvd.iso/mnt/cdrom
Configure yum
Vi/etc/yum. repos. d/rhel58.repo
[Server]
Name = rhel58server
Baseurl = file: // mnt/cdrom/Server/
Enable = 1
Gpcheck = 1
Gpgkey = file: // mnt/cdrom/Server/RPM-GPG-KEY-redhat-release
2. install the related software package. Otherwise, an error may occur (note that you must install mysql-devel) Yum install automake
Yum install libtool
Yum install zlib
Yum install gcc
Yum install gcc glibc-devel glibc-headers glibc-kernheaders
3. formal installation A. extract
Tar zxvf sysbench-0.4.8.tar.gz
B. modify the configuration file.
Vi configure. ac
# Checks for programs.
AC_PROG_CC
# AC_PROG_LIBTOOL
AC_PROG_RANLIB
AX_CHECK_DOCBOOK
C. execute the following commands respectively,
./Autogen. sh
./Configure -- with-mysql-supported des =/usr/include/mysql/
-- With-mysql-libs =/usr/lib64/mysql/
LDFLAGS = '-ldld'
Make
Makeinstall
Problems during installation 1. copy config. guess and config. sub from/usr/share/libtool to current directory, then./configure
2. Error: client_plugin.c: 178: undefined reference to 'dlclose' sysbench
./Config command to add the LDFLAGS = '-ldld' parameter
Test method
1. cpu performance test
Sysbench -- test = cpu -- cpu-max-prime = 20000 run
In the preceding example, the maximum prime number is 20000. you can adjust the value based on the cpu performance.
2. Thread Testing
Sysbench -- test = threads -- num-threads = 64 -- thread-yields = 100 -- thread-locks = 2 run
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service