[$] Improving C-library scalability with restartable sequences

Post Syndicated from corbet original https://lwn.net/Articles/946870/

The Linux kernel has supported restartable
sequences
(sometimes referred to as “RSEQ”) since 2018, but it remains
a bit of a niche feature, mostly useful to performance-oriented developers
who do not mind writing assembly code. According to Mathieu Desnoyers, the
behind the kernel’s implementation of restartable sequences, this feature
can be applicable to a much wider range of performance-sensitive code with
proper library support. He came to the 2023 GNU Tools Cauldron to
present the case for use of restartable sequences within the GNU C Library
(glibc).