1. Introduction to sysbenchHere we introduce a MySQL database stress testing software sysbench, which is used for benchmark testing. Sysbench is an open source, modular, cross-platform multi-threaded performance testing tool. It can be used to perform performance tests on CPU, memory, disk I/O, threads, and databases. Currently supported databases are MySQL, Oracle and PostgreSQL. #Project download address: https://launchpad.net/sysbench The idea of this benchmark suite is to quickly get an impression of system performance without having to set up a complex database benchmark or even having a database installed.
Sysbench's oltp is mainly used to evaluate and test the database load under various system parameters. Disadvantages of SysBench: 2. Sysbench installation process#Install related dependenciesmount /dev/cdrom /mnt yum -y install make automake libtool pkgconfig libaio-devel libtool # Installation process starts#Make a link to the client lib package ln -sf /mysql/app/mysql/lib/libmysqlclient.so.20 /usr/lib/libmysqlclient.so.20 #Unzip and install cd /softtar zxvf sysbench-1.0.15.tar.gz cd sysbench-1.0.15./autogen.sh ./configure --prefix=/mysql/app/sysbench --with-mysql=/mysql/app/mysql --with-mysql-includes=/mysql/app/mysql/include/ #--with-mysql-libs=/usr/lib/ make && make install #Configure environment variables vi ~/.bash_profile PATH=$PATH:/mysql/app/sysbench/bin:$HOME/bin source ~/.bash_profile sysbench --version #If an error message is reported, sysbench: error while loading shared libraries: libmysqlclient.so.20: cannot open shared object file: No such file or directory #Then add the line /usr/lib to /etc/ld.so.cnf [root@tse01 local]# cat /etc/ld.so.conf include ld.so.conf.d/*.conf /usr/lib/ #Execute ldconfig -v to update the configuration [root@tse01 local]# /sbin/ldconfig -v # Tips:If you installed the MySQL header files and libraries in nonstandard locations (no mysql_config can be found in PATH), You can specify the --with-mysql-includes and --with-mysql-libs option arguments explicitly, as above. To compile sysbench without MySQL support, use --without-mysql. #General command line optionsThe following table lists the supported common options, their descriptions and default values:
Note that you can specify a byte by appending the corresponding multiplication suffix (K for kilobytes, M for megabytes, G for gigabytes, T for terabytes). #sysbench uses [command] commonly used are: 1) prepare for testing and generate data The above is the detailed introduction to the use of MySQL performance stress benchmark testing tool sysbench. For more information on the use of MySQL sysbench, please pay attention to other related articles on 123WORDPRESS.COM! You may also be interested in:
|
<<: Implementation of Docker deployment of SQL Server 2019 Always On cluster
After obtaining the system time using Java and st...
Table of contents The effect of mixed inheritance...
Less is More is a catchphrase for many designers....
A system administrator may manage multiple server...
You can save this logo locally as a .rar file and...
Previous words Line-height, font-size, and vertica...
Preface This article mainly introduces the releva...
Robots.txt is a plain text file in which website ...
There was a shaking barrage on TikTok a while ago...
HTML is made up of tags and attributes, which are...
Today, when I searched for a page on Baidu, becaus...
Table of contents 1. Help Command 2. Mirror comma...
1. CSS3 triangle continues to zoom in special eff...
I have found a lot of online resources on this pro...
The purpose of writing scripts is to avoid having...