В We talked about open-source tools for evaluating processor and memory performance. Today, we're talking about benchmarks for file systems and storage systems. Linux - Interbench, Fio, Hdparm, S and Bonnie.
A photo - — unsplash
Fio (stands for Flexible I/O Tester) creates streams of disk I/O data to evaluate file system performance. LinuxThe utility can also be run on Windows - you need to install the command line interface . The setup guide is in .
Author fio - Jens Aksbo (), for the IO subsystem in Linux and the developer of the utility for tracing I/O operations. He created fio, write programs to test a specific load manually.
The utility will calculate the IOPS and throughput of the system, and will also allow you to estimate the depth of the queue of I / O operations. The utility works with special files (.fio extension), which contain the settings and conditions of the test. There are several test options, for example, there is an arbitrary write, read and overwrite. Here file contents for the first case:
[global]
name=fio-rand-read
filename=fio-rand-read
rw=randread
bs=4K
direct=0
numjobs=1
time_based=1
runtime=900
Today fio is used by large companies - they work with the utility in , и .
The utility was written by Canadian developer Mark Lord back in 2005. She is still and is part of many popular distributions. The main purpose of hdparm is to configure drive settings. But the instrument use for simple benchmarks, such as reading speed. To do this, write the command in the console:
$ sudo hdparm -t /dev/sdbThe system will generate a similar response:
Timing buffered disk reads: 242 MB in 3.01 seconds = 80.30 MB/secIn terms of storage settings, hdparm allows you to change the amount of cache memory, modify sleep and power options, and securely erase data on the SSD. But how specialists from ArchLinuxCareless changes to system parameters can make data on the drive inaccessible and even damage the drive. Before using hdparm, it's best to consult the manual—just enter man hdparm in the console.
This is a set of benchmarks for evaluating the performance of I / O systems. The authors of the utility were from the AlgoDev group, which includes employees of the Italian .
All benchmarks are bash scripts, storage system performance - throughput, latency, schedulers. For example, the throughput-sync.sh benchmark “bombards” the storage system with read or write requests (in this case, the already mentioned fio utility is used). Here .
Another script - comm_startup_lat.sh - measures the latency of reading data from disk during a "cold cache" (when there is no necessary data in it). Code also .

A photo - — unsplash
File system performance evaluation utility developed in 1989. It was created by engineer Tim Bray. With the help of Bonnie he planned operation of computing systems involved in the project at the University of Waterloo.
Bonnie Random reading and writing data to disk. After the utility shows parameters such as the number of bytes processed per , as well as the level of processor utilization in percent. The benchmark source code can be .
Based on Bonnie, another set of tools for testing a hard drive is built - (written in C++ instead of C). It provides additional benchmark tools. For example, zcav to evaluate the performance of different HDD zones. Also Bonnie++ for testing mail servers and database servers.
The utility was developed (Con Kolivas), an Australian anesthesiologist who is known for his contributions to the development of the core Linux and work on "". Interbench helps you configure I/O scheduler and file system settings.
Interbench emulates the behavior of the CPU scheduler when executing interactive tasks. These interactive tasks can be working with sound and video, running computer games, or simply dragging and dropping a dialog box in the operating system.
Source code, examples, and guidelines for customizing the tool can be found at .
What we write about in our blogs:
![]()
![]()
![]()
![]()
![]()
![]()
Source: habr.com
