You can build and run Sysbench on the second Arm Linux system to benchmark the MySQL server.
This system is called the client.
You will need at least 30 GB of disk space on the client system.
Because MySQL libraries are needed by Sysbench, you will need to build and install the MySQL server on the client system as well.
You do not need to configure and run MySQL, just the build and install steps.
Refer to Setup, configure, and run MySQL server to build and install MySQL server and provide the required libraries to Sysbench on the client system.
Use the commands below to build and install Sysbench:
Configure, build, and install Sysbench using:
Make sure that port 3003 is open on the server system so that the Sysbench client can connect. If the machines are on the same local network, no action is needed. If you are using cloud instances, you will need to adjust the security group settings to open port 3003 for traffic originating from the client system.
To make it easier to run Sysbench, a script is provided below.
Using a text editor, copy the contents below into a file named run_sysbench.sh
:
Make the script executable:
You can now start Sysbench by running the script.
Provide the IP address of the server system as the first argument and the mode as the second argument:
The final output for the oltp_read_only
test will be similar to: