DevConf.CZ 2025

Toke Høiland-Jørgensen

I'm a kernel engineer at Red Hat working primarily on the networking and BPF subsystems. I hold a PhD on bufferbloat and related networking performance issues, and consider network latency to be the perennial underappreciated issue in our networks today. Apart from this, my interests include routing and transport protocols, WiFi and embedded systems. I believe strongly that the free software development model is the right way to build the systems that run our society. Contributing to this through the Linux kernel and other projects is not only technically interesting, but also a meaningful way to contribute to
improving our world one little bit at a time.


Company or affiliation

Red Hat

Job title

Senior Principal Kernel Engineer


Session

06-13
11:00
35min
Beware of the kernel RTNL mutex
Toke Høiland-Jørgensen

The Linux kernel RTNL mutex is the big lock protecting all of the internal kernel data structures related to networking. While there is work underway in the upstream community to reduce its scope, today this mutex is a major source of scalability problems in the kernel networking subsystem. It mostly affects control path operations (such as bringing network interfaces up and down), but unless care is taken to avoid it, RTNL lock issues can also spill over into the data path, causing intermittent stalls in networking applications that can be
hard to debug.

In this talk I will dive into techniques for debugging applications stalls caused by contention on the RTNL lock, using an example application that is derived from a real-world case. We will look at kernel tracing tools that can be used to identify and debug such issues, and talk about ways to mitigate them in the application. I will also briefly outline the upstream efforts to reduce the scope of the RTNL in the kernel, and how this will affect systems going forward.

Linux Distributions, Operating Systems, and Edge
E105 (capacity 70)