~/talk

Beware of the kernel RTNL mutex

Talkat DevConf.CZ 2025 · 2025-06-12..06-14· [linux-and-operating-systems]
links:none on file
slides:none on file

The global RTNL mutex serializes all kernel networking control-plane changes and can turn routine queries into multi-second stalls — reproducible case shows steady 100–200 ms latency spiking to ~3 s when deleting a pod triggers many syncs (one driver did ~3,000 ops). Use klockstat (libbpf-tools) with stack traces and netlink/ioctl decoding to see who holds/waits on the lock; mitigation is to move queries off the fast path (background thread or cache) or convert readers to RCU conversion and rely on upstream per-namespace / per-device locking work.

AI-written summary · about

  1. 0:00Kernel RTNL mutex intro
  2. 1:25Customer escalation reveals issue
  3. 3:29What is RTNL mutex
  4. 5:17Debug RTNL with klockstat
  5. 9:09Analyze lock holders
  6. 10:52Enhanced klockstat stack traces
  7. 12:37Mitigate RTNL blocking
  8. 14:23Key takeaways design
  9. 15:49Fix customer issue with RCU
  10. 16:31Reduce RTNL scope efforts
  11. 21:26Q&A: Documentation blocking
  12. 23:15Q&A: klockstat debugging
  13. 24:16Q&A: Read-write semaphore
  14. 25:20Q&A: Extreme driver blocking
  15. 26:35Q&A: High-rate queries
  16. 27:41Q&A: Statistics RCU efforts
  17. 28:46Q&A: RTNL upstream steps
  18. 31:14Q&A closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.