How To Install sysbench on CentOS 7
Introduction
In this tutorial we learn how to install sysbench
on CentOS 7.
What is sysbench
SysBench is a modular, cross-platform and multi-threaded benchmark tool for evaluating OS parameters that are important for a system running a database under intensive load. The idea of this benchmark suite is to quickly get an impression about system performance without setting up complex database benchmarks or even without installing a database at all. Current features allow to test the following system parameters - file I/O performance - scheduler performance - memory allocation and transfer speed - POSIX threads implementation performance - database server performance (OLTP benchmark) Primarily written for MySQL server benchmarking, SysBench will be further extended to support multiple database backends, distributed benchmarks and third-party plug-in modules.
We can use yum
or dnf
to install sysbench
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install sysbench.
Install sysbench on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install sysbench
using yum
by running the following command:
Install sysbench on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install sysbench
using dnf
by running the following command:
How To Uninstall sysbench on CentOS 7
To uninstall only the sysbench
package we can use the following command:
References
Summary
In this tutorial we learn how to install sysbench
on CentOS 7 using yum
and dnf
.