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 Format2 min read
OBS Studio
Version: 30.0.2 Web: https://obsproject.com There are lots of good options for recording screencasts, but if you want to live-stream T your desktop, one of the best options is OBS Studio. The app works with all the major online streaming providers, s
Linux Format1 min read
Wine For Wayland
2023 was a great year for the Wayland driver for Wine. The goal was to move forward from the experimental phase and make the driver a proper upstream component. A year later, after several merge requests, many people are now already able to use the l
Linux Format2 min read
Back Issues Missed One?
ISSUE 313 April 2024 Product code: LXFDB0313 In the magazine Discover how to use the ultimate hacker’s toolkit, staying out of trouble while doing so. And join us as we take the Puppy Linux developer’s new distro for a run and explore its container

Related Books & Audiobooks