arXiv · 2612.03917
Lightning-Speed Futexes
Abstract
In the Linux kernel, the futex primitive lets one or several threads sleep until another thread wakes them up. Futexes can be used to implement barriers, in which a futex wake-all is used to release all waiting threads. A wake-all is performed serially: the waker first waits on the lock that protects the list of sleeping threads, behind the threads it is about to wake, then walks a list of threads to collect the threads, and finally wakes them one at a time. We propose an approach that improves the performance of all three steps. Our approach places an abort gate in front of the lock, an admission stage that allows the waker to abort, in constant time, the lock acquisitions queued ahead of it; the waker then detaches the full set of waiters in one step instead of collecting them one by one; and finally it parallelizes the wake-ups by recruiting each woken thread to wake further threads. We implement our approach in the futex subsystem of Linux 6.19. On six Intel, AMD, and ARM servers, our approach speeds up the barrier-intensive NAS kernels by 1.3$\times$ to 1.9$\times$ on geometric mean, depending on the input class, and 45 barrier-heavy applications by 2.1$\times$ on geometric mean, with peak speedups of 4.4$\times$ and 6.2$\times$.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Jean-Pierre Lozi, Julia Lawall. 2026-12-02. Lightning-Speed Futexes. https://searcharxiv.org/abs/2612.03917
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.