Use Sysbench for benchmark tests such as cpu/io/memory/OLTP

Source: Internet
Author: User
Tags benchmark mutex
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)

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.