Table 4 SysBench Options
SysBench option | Value | Description |
oltp | OLTP emulates operations that a read database would perform. Other | |
|
| options are CPU, threads, mutex, memory, and fileio. |
1000000 | Sets the number of rows in the test table. | |
yes | Sets the value for whether the storage engine used is transactional. | |
complex | Determines how transactions are performed. Options are simple (very | |
|
| simple SELECTs), complex (transactional), and nontrx |
on/off | Sets whether the UPDATE/DELETE/INSERT queries are used. Both cases | |
|
| were run for these tests. |
special | Allows for the ditribution of random numbers | |
0 | Sets the total number of requests allowed. The value “0” indicates | |
|
| unlimited requests are allowed. |
varied from 1 to 128 | Sets the number of worker threads. | |
on | Initializes the random number generator. | |
180 | Sets the limit for total execution time in seconds. |
MySQL Installation
The MySQL Certified Software, downloaded from the MySQL Network, provides the
Table 5 MySQL Installation Packages
RPM Package | Description |
MySQL database server (mysqld, etc) | |
MySQL client programs (mysql, | |
| mysqladmin, etc) |
MySQL header files and libraries | |
| (needed to build SysBench ) |
MySQL Configuration
The example configuration file
Table 6 MySQL Test Configuration
mysqld Option | Value | Description |
max_connections | 1600 | Maximum number of connections. The default is 100. |
max_connect_errors | 10 | Number of interrupted connections from a host after which |
|
| connections are blocked. |
table_cache | 2048 | Number of open tables for all threads. The default is 512. |
sort_buffer_size | 512K | Buffer size for each thread that needs to sort results. Increase |
|
| for faster ORDER BY and GROUP BY operations. |
binlog_cache_size | 1M | Size of cache to hold SQL statements for the binary log |
|
| during a transaction. Increase for large, |
|
| transactions. |
14