Restartable Sequences

Linux’s secret speed trick sparked awe, eye-rolls, and a $20K PC backlash

TLDR: A hidden Linux feature can make some software tasks much faster on big multicore computers, and the author thinks it’s the future. Commenters were impressed by the speed gains but roasted the article’s luxury-hardware flex, while others pointed out easier tools already exist.

A little-known Linux feature called restartable sequences just got the full hype treatment: the author says it can make some core computer chores dramatically faster, especially on giant many-core machines. In plain English, it’s a clever way to let programs update shared data quickly without the usual traffic jam of locks and wait times. The benchmarks were wild — up to 34x and 43x faster on monster workstations — and that alone had readers doing a double take.

But the real fireworks came from the comments, where the community split into two camps: “this is a huge deal” versus “why are we being yelled at to buy a luxury workstation?” One of the hottest reactions called out the article’s chest-thumping line about anyone without a nearly $20,000 machine being “left behind like a dinosaur,” saying that was such a turnoff it made them want to stop reading immediately. Ouch. Others played the role of calm explainer, translating the article’s big idea into normal-person language: Linux now has a smarter way to handle tiny critical operations without forcing everything through a slow bottleneck.

Then came the classic comment-section flex: actually, there’s already a library for that. Readers pointed to librseq, saying most people shouldn’t need to hand-write assembly code at all. Another commenter dusted off a decades-old Sun paper to remind everyone that, naturally, this “new frontier” has ancestors. And because no internet debate is complete without sticker shock, one person gleefully noted that 512 GB of RAM from one setup had apparently gone from pricey to utterly absurd. The verdict? The speed trick impressed people — but the comments were far more entertained by the vibes, bragging, and budget drama.

Key Points

  • The article describes Linux restartable sequences (rseq), introduced in Linux 4.18+, as a mechanism for creating thread-safe data structures without locks or atomics.
  • It states that rseq currently requires handwritten assembly on Linux, though the author expects broader support in operating systems, programming languages, and libraries over time.
  • The article identifies tcmalloc, jemalloc, glibc, and Cosmopolitan as software already using rseq.
  • Reported benchmark results in the article show malloc speedups of 3x on a Raspberry Pi 5, 34x on a 128-core Ampere Altra system, and 43x on a 96-core AMD Threadripper Pro 7995WX system.
  • The article explains that rseq uses per-thread TLS updated by the kernel with the current CPU number and can redirect execution to an abort handler if a registered critical section is preempted during CPU migration.

Hottest takes

"left behind like a dinosaur" — khuey
"you shouldn’t need to write assembly at all" — senderista
"now sells for $18,299" — dan_sbl
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.