Adaptive userspace spinlocks with rseq
Channel: Igalia
Date: 2024-03-11

Implementing efficient spinlocks in userspace is not possible yet in Linux,
even after years of different approaches and proposed solutions.The main gap to
achieve it is the lack of ABI providing an easy and low-overhead way to check
if the current lock holder is running or not.

In this session, we are going to present the problem, and to propose a solution
for it using the restartable sequences infrastructure as means to expose the
thread state to userspace in a cheap way, without requiring system calls.

RFC:
https://lore.kernel.org/lkml/20230529191416.53955-1-mathieu.desnoyers@efficios.com/

Slides available at: https://www.slideshare.net/igalia/userspace-adaptive-spinlocks-with-rseq


(c) Linux Plumbers Conference 2023
15-15 Nov
Omni Richmond Hotel, Richmond, VA (US)
https://lpc.events/event/17/page/198-lpc-2023-overview