Changes

Jump to navigation Jump to search
m
no edit summary
Line 1: Line 1: −
"Restartable sequences" (<code>rseq</code>) are small segments of user-space code designed to access per-CPU data structures without the need for heavyweight locking.
+
Restartable sequences (<code>rseq</code>) are short, carefully defined sections of user-space code that enable efficient access to per-CPU data structures without relying on heavyweight synchronization primitives such as mutexes or atomic operations.
rseq is supported since Linux kernel 4.18 [1]
     −
I strongly suggest reading the article [https://www.efficios.com/blog/2019/02/08/linux-restartable-sequences/ Linux restartable sequences] before this one.
+
Support for <code>rseq</code> was introduced in the Linux kernel in version 4.18, allowing user-space programs to register critical code paths that the kernel can safely restart when a CPU migration or preemption occurs. This mechanism enables high-performance, scalable data access patterns while preserving correctness. [https://www.efficios.com/blog/2019/02/08/linux-restartable-sequences/ The 5-year journey to bring restartable sequences to Linux] article provides more information about how restartable sequences work, their design, use cases, and kernel integration.
    
== Linux kernel interface ==
 
== Linux kernel interface ==
554

edits

Navigation menu