HN Hall of Fame Weekly email

How fast are Linux pipes anyway?

Screenshot of mazzo.li captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 3 calendar years, with breakout response in 3 of them.

submissions
3
submitters
3
observed span
2022–2025
peak thread · 200 comments
698 pts
latest 20+ return · 2025-06-22
258 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

This is a well-written article with excellent explanations and I thoroughly enjoyed it. However, none of the variants using vmsplice (i.e., all but the slowest) are safe. When you gift [1] pages to the kernel there is no reliable general purpose way to know when the pages are safe to reuse again. This post (and the earlier FizzBuzz variant) try to get around this by assuming the pages are available again after "pipe size" bytes have been written after the…

So if I understand correctly, vmsplice is more of a mini shared memory mechanism between two processes, if used on both the reader and writer end simultaneously? Meaning both processes need to be exceptionally careful in when they read and write to the buffers and how it is returned after use. Hot, yet scary at the same time. Other main takeaway, it’s a bit sad that the naive implementation everybody will write, is 20x slower than what is possible. Exceptionally…

Too·515-point thread·

Seared into my soul is the experience porting a linux pipe-based application to Windows, thinking it's all posix and given it's all in memory the performance will be more or less the same. The performance was hideous, even after we found that having pipes waiting for a connection more or less ground windows to a halt. Some years later this got revisited due to needing to use the same thing under C# on Win10 and while it was better it…

zh3·258-point thread·

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
3

100+ points or 50+ comments

Total points
1471

reference only — not used in Hall rules or ranking

Total comments
348

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2022-06-02How fast are Linux pipes anyway?First breakout · Best threadrostayob698200
2023-10-05How fast are Linux pipes anyway?SEJeff515105
2025-06-22How fast are Linux pipes anyway? (2022)Latest 20+ point returnkeepamovin25843