FedoraRHEL Based

How To Install Sysbench on Fedora 39

Install Sysbench on Fedora 39

In this tutorial, we will show you how to install Sysbench on Fedora 39. Sysbench is an open-source system performance benchmarking tool used to evaluate operating system parameters that are important for systems running databases under intensive load. With its scriptable and multi-threaded capabilities, Sysbench can quickly generate an impression of a system’s performance without needing to set up complex database benchmarks. It can test system components like the CPU, memory, file I/O, mutexes, and database performance.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you the step-by-step installation of the Sysbench benchmark tool on a Fedora 39.


Before diving into the installation process, let’s ensure that you have everything you need:

  • A server running one of the following operating systems: Fedora 39.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • You will need access to the terminal to execute commands. Fedora 39 provides the Terminal application for this purpose. It can be found in your Applications menu.
  • A network connection or internet access to download the Sysbench package.
  • A non-root sudo user or access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Install Sysbench on Fedora 39

Step 1. Before proceeding with the installation, ensure your system is up to date. Run the following command to update your Fedora 39 system:

sudo dnf clean all
sudo dnf update

Step 2. Installing Development Tools and Libraries.

Sysbench requires certain development tools and libraries to be installed on your system. Install them by executing:

sudo dnf groupinstall "Development Tools"
sudo dnf install libaio-devel

Step 3. Installing Sysbench on Fedora 39.

Fedora’s official repositories include Sysbench, making the installation straightforward. To install Sysbench, use the following command:

sudo dnf install sysbench

This command installs the latest version of Sysbench available in the Fedora 39 repositories, which is 1.0.20-12.fc39.

After installation, it’s important to verify that Sysbench is correctly installed. Check the installed version:

sysbench --version

This command should output the version of Sysbench installed, confirming the successful installation.

Step 4. Running Basic Sysbench Tests.

Sysbench allows you to benchmark various system parameters. Here are examples of how to run basic tests:

  • CPU Benchmark:

To test your system’s CPU performance, use the following command:

sysbench cpu --cpu-max-prime=20000 run

This command will perform a CPU-intensive test using a maximum prime number of 20,000.

  • Memory Benchmark:

To test your system’s memory performance, use the following command:

sysbench memory --memory-total-size=1G --memory-oper=read run

This command will perform a memory read test using a 1GB memory block.

  • File I/O Benchmark:

To test your system’s file I/O performance, use the following command:

sysbench fileio --file-total-size=10G --file-test-mode=rndrw --max-time=60 run

This command will create a 10GB test file and perform random read and write operations for 60 seconds.

  • MySQL Benchmarks

To test your MySQL server’s performance, use the following command:

sysbench oltp_read_write --mysql-user=root --mysql-password=your_password --mysql-db=sbtest --tables=10 --table-size=100000 --threads=8 run

Sysbench offers various options to customize tests according to your needs. For example, to run a CPU test with specific threads and maximum prime number, use:

sysbench cpu --cpu-max-prime=1000000 --threads=8 run

Some key options that can customize tests:

  • --threads – Number of concurrent threads
  • --time – Total execution time
  • --events – Limit the total number of events

Congratulations! You have successfully installed Sysbench. Thanks for using this tutorial for installing the Sysbench benchmark suite on your Fedora 39 system. For additional or useful information, we recommend you check the official Sysbench website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!


r00t is a seasoned Linux system administrator with a wealth of experience in the field. Known for his contributions to idroot.us, r00t has authored numerous tutorials and guides, helping users navigate the complexities of Linux systems. His expertise spans across various Linux distributions, including Ubuntu, CentOS, and Debian. r00t's work is characterized by his ability to simplify complex concepts, making Linux more accessible to users of all skill levels. His dedication to the Linux community and his commitment to sharing knowledge makes him a respected figure in the field.
Back to top button