Benchmarks for Linux servers: 5 open source tools

Today we will talk about open tools for evaluating the performance of processors, memory, file systems and storage systems.

The list includes utilities offered by GitHub residents and participants in thematic threads on Reddit - Sysbench, UnixBench, Phoronix Test Suite, Vdbench and IOzone.

Benchmarks for Linux servers: 5 open source tools
/Unsplash/ Veri Ivanova

sysbench

This is a load testing utility for MySQL servers based on the LuaJIT project, which is developing a virtual machine for the Lua language. The author of the tool is Alexey Kopytov, a programmer and MySQL expert. The project started as a hobby, but over time has gained recognition from the community. Today, sysbench is used by large universities and IT organizations in their work. like IEEE.

During the SECR-2017 conference (recording of speech is on YouTube) Alexey said that sysbench allows you to evaluate the performance of a database when migrating to new hardware, updating the DBMS version, or a sharp change in the number of queries. In general, the syntax of the test command looks like this:

sysbench [options]... [testname] [command]

This command determines the type (cpu, memory, fileio) and load test parameters (number of threads, number of requests, transaction processing speed). In general, the tool is capable of processing millions of events per second. Alexey Kopytov told more about the architecture and internal structure of sysbench in one of episodes of the Software Development Podcast.

UnixBench

A set of tools for evaluating the performance of Unix systems. It was introduced by engineers from Monash University in 1983. Since then, many people have supported the tool, for example, the authors of the microcomputer technology magazine Byte Magazine and LKML member David Niemi. Anthony Woelm is responsible for the release of the next version of the tool (Anthony Voellm) from Microsoft.

UnixBench is a set of individual benchmarks. They compare the speed of code execution on a Unix machine with the performance of a reference system, which is SPARCstation 20-61. Based on this comparison, a score is generated that determines performance.

Among the tests available are: Whetstone, which describes the efficiency of floating point operations, File Copy, which evaluates the speed of data copying, and several 2D and 3D benchmarks. A complete list of tests can be found at repositories on GitHub. Many of them are used to evaluate the performance of virtual machines in the cloud.

Phoronix Test Suite

This set of tests was developed by the authors of the Phoronix web resource, which publishes news about GNU/Linux distributions. The Test Suite was first introduced in 2008, when it included 23 different tests. Later, the developers launched a cloud service openbenchmarking.orgwhere users could publish their own test scripts. Today on it is presented about 60 benchmark suites, including those related to machine learning and ray-tracing technology.

Sets of specialized scripts allow you to test individual components of the system. With their help, you can estimate the time of compiling the kernel and encoding video files, the compression speed of archivers, etc. To run the tests, it is enough to write the appropriate command in the console. For example, this command initiates a CPU performance evaluation:

phoronix-test-suite benchmark smallpt

During testing, Test Suite independently monitors the state of the equipment (CPU temperature and cooler rotation speed), protecting the system from overheating.

Benchmarks for Linux servers: 5 open source tools
/Unsplash/ Jason Chen

Vdbench

Tool for generating I/O load on disk systems developed by Oracle. It helps to evaluate the performance and integrity of storage systems (we have prepared how to calculate the theoretical performance of a disk system). brief reference).

The solution works as follows: on a real system, the SWAT program (Sun StorageTek Workload Analysis Tool) is launched, which creates a dump with all disk accesses for a certain period. The timestamp, operation type, address, and data block size are recorded. Next, using the dump file, vdbench emulates the load on any other system.

The list of parameters for managing the utility is in the official Oracle document. The source code of the utility can be found the company's website.

IOzone

Console utility for evaluating the performance of file systems. It determines the speed of reading, writing and rewriting files. Dozens of programmers took part in the development of the tool, but the author of its first version counts engineer William Norcott. The development was supported by companies such as Apple, NetApp and iXsystems.

To manage flows and synchronize them during testing, the tool uses the standard POSIX Threads. Upon completion of the work, IOzone issues a report with the results either in text format or in the form of a spreadsheet (Excel). The tool also includes the gengnuplot.sh script, which builds a three-dimensional graph based on the table data. Examples of such charts can be found in the documentation for the tool (pp. 11–17).

IOzone is available as a test profile in the already mentioned Phoronix Test Suite.

Additional reading from our blogs and social media:

Benchmarks for Linux servers: 5 open source tools A bug in Linux 5.1 led to data loss - a corrective patch has already been released
Benchmarks for Linux servers: 5 open source tools There is an opinion: DANE technology for browsers has failed

Benchmarks for Linux servers: 5 open source tools Why is monitoring needed?
Benchmarks for Linux servers: 5 open source tools File backup: how to insure against data loss
Benchmarks for Linux servers: 5 open source tools How to transfer the system hard disk to a virtual machine?

Benchmarks for Linux servers: 5 open source tools Everyone is talking about PD leaks - how an IaaS provider can help
Benchmarks for Linux servers: 5 open source tools Short educational program: how the EDS works
Benchmarks for Linux servers: 5 open source tools Reference: how the law on personal data works

Source: habr.com

Add a comment