First, sysbench-0.5 installation
Software Download Address: http://download.csdn.net/detail/zqtsx/8368857 or email to "pick up the Sky Star" get (PDF document download address http://download.csdn.net/ detail/zqtsx/8368939)
Tar zxvf sysbench-0.5tar.gz
CD sysbench-0.5 (unlike other packages is uncompressed, the default does not have configure files, so you need to execute the autogen.sh file before you can use./configure to compile the installation)
./autogen.sh the following figure:
To execute a compile command:
./configure--with-mysql-includes=/usr/local/mysql/include--with-mysql-libs=/usr/local/mysql/lib The following figure
(Note: The MySQL database file directory must be developed here, otherwise you will be prompted to the following figure error)
Then execute make && make install
After the installation is successful, the following illustration shows that the installation was successful
second, the use of (the following test cases need to use these instructions to see the understanding)
1: Usage (picking up heavenly star finishing)
Sysbench [general-options]...–test=<test-name> [test-options] ... command
General options:
--num-threads=n The number of test threads created. The default is 1. Maximum number of--max-requests=n requests. The default is 10000, and 0 is unrestricted.
--max-time=n Maximum execution time, the unit is S. The default is 0, not limited.
--forced-shutdown=string over Max-time forced interrupt. The default is off.
--thread-stack-size=size The stack size of each thread. The default is 32K.
--init-rng=[on|off] whether to initialize the random number generator at the beginning of the test. The default is off.
--test=string Specifies the name of the test project.
--debug=[on|off] whether to display more debugging information. The default is off.
--validate=[on|off] performs validation checks where possible. The default is off.
1 2 3 4 5 6 7 8 9 |
Test project: Fileio–file I/O test cpu–cpu performance test memory–memory functions Speed test threads–threads subsystem p Erformance Test Mutex–mutex Performance test (mutex performance testing) OLTP–OLTP Test (online transaction processing system) |