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
Basic Introduction In the previous article, we in...
Enable remote access to MySQL By default, MySQL u...
The main part of the page: <body> <ul id...
1. The first parameter props of the setUp functio...
Table of contents 1. Lock and Latch 2. Repeatable...
This article shares the specific code of JS+AJAX ...
Table of contents Preface 1. ss command 2. Overal...
1. Inline style, placed in <body></body&g...
1. Modify the firewall configuration file # vi /e...
illustrate: VMware IOInsight is a tool that helps...
1. Environment: CentOS7, Openssl1.1.1k. 2. Concep...
To beautify the table, you can set different bord...
Use jQuery to implement form validation, for your...
This article summarizes some simple principles of...
Introduction to Nginx dynamic and static separati...