Mazzoli: How fast are Linux pipes anyway?
Mazzoli: How fast are Linux pipes anyway?
Posted Jun 3, 2022 13:55 UTC (Fri) by martin.langhoff (subscriber, #61417)Parent article: Mazzoli: How fast are Linux pipes anyway?
I'm a bit disappointed it takes so much kernel API abuse to get fast throughput.
A lot of the 'magic' of Linux is that it makes common operations very fast without the userland developer using esoteric APIs. open() and stat() are famously fast.
Why isn't write() fast?
Or – why is the throughput of a naive write() so radically slower than the optimized version, and why are the steps to optimize it so obscure and arcane?
