Linux Format

Using eBPF to trace disk transfer actions

EBPF

Credit: https://ebpf.io

OUR EXPERT

Mihalis Tsoukalos is the author of Go Systems Programming and Mastering Go, 3rd edition. You can reach him at www.mtsoukalos.eu and @mactsouk.

QUICK TIP

Seekwatcher is a tool that can generate graphs from blktrace data in order to help you reveal I/O patterns and visualise performance. You can find more information about Seekwatcher at https://github. com/tnm/ seekwatcher.

We are going to learn how to use the capabilities of eBPF to monitor disk I/O operations in order to discover and solve performance issues related to input and output operations. We’ll kick off by discussing the ways of approaching issues related to disk I/O, because there’s a wide range of tools that can help you and choosing the right tool for the job is often the most difficult task. As a result, not all issues should be resolved with the help of eBPF, especially when there are simpler tools that can do the job more quickly. Therefore, some logical steps that can be used for resolving disk I/O issues are as follows:

1. Begin with some traditional Unix tools such as iostat, vmstat, btrace or htop to get a more accurate idea of how serious the performance issue is.

2. If you cannot find a solution using a single or a combination of traditional Unix tools, begin examining the system using eBPF-related tools.

You might need to begin your analysis by examining the filesystem with the

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format1 min read
Make A Date!
Italo Vignoli is one of the founders of LibreOffice and the Document Foundation. “In February, you can meet a representative of the project at FOSDEM in Brussels, where LibreOffice will have a booth and a devroom where LibreOffice Technology will be
Linux Format2 min read
VeraCrypt
Version: 1.26.14 Web: https://veracrypt.fr/en/ There was a time when keeping your data under a username and password was considered good enough protection. These days, however, the only pragmatic approach to keeping your personal data to yourself is
Linux Format3 min read
BackBox 9
We’ve been keen to do an in-depth review of this awesome pentesting distro since 2022. Unfortunately, just as we were poised to do an exposé on BackBox 8, Nate had to move country, so with apologies to readers, we are now poised to delve into its suc

Related Books & Audiobooks