Linux 7.2 Improves Anonymous/Unnamed Pipe Performance For Shell Pipelines & More
Summary
Linux 7.2 kernel merges a performance optimization for anonymous/unnamed pipes, improving throughput by 6-48% and reducing latency by 17-33% by pre-allocating pages outside of mutex lock to avoid contention.
View Cached Full Text
Cached at: 06/27/26, 03:54 PM
Linux 7.2 Improves Anonymous/Unnamed Pipe Performance For Shell Pipelines & More
Source: https://www.phoronix.com/news/Linux-72-Faster-Anon-Pipe-Write

Yet another performance optimization merged for the in-developmentLinux 7.2kernel is improving the speed of anon_pipe_write, the kernel function used for writing data into anonymous/unnamed pipes such as when using shell pipelines or standard streams from applications.
Breno Leitao of Meta was profiling some of their caching code and found pipe to mutex contention in a hot path, which is now resolved by the newly-merged code to pre-allocate outside the lock for avoiding contention.
In theVFS misc pull requestthat situation is described as:
“anon_pipe_write() called alloc_page() once per page while holding pipe->mutex. The allocation can sleep doing direct reclaim and runs memcg charging, which extends the critical section and stalls any concurrent reader on the same mutex. Now up to 8 pages are pre-allocated before the mutex is taken, leftovers are recycled into the per-pipe tmp_page[] cache before unlock, and any remainder is released after unlock, keeping the allocator out of the critical section on both sides. On a writers x readers sweep with 64KB writes against a 1 MB pipe throughput improves 6-28% and average write latency drops 5-22%; under memory pressure - when the cost of holding the mutex across reclaim is highest - throughput improves 21-48% and latency drops 17-33%. The microbenchmark is added to selftests.”
Very nice gains. More of the numbers in detail can be found viathis patch cover letterby Breno Leitao.
That work is now merged for Linux 7.2.
Similar Articles
Linux 7.1
The Linux kernel 7.1 has been announced on the kernel mailing list, marking a new major version release with expected feature updates and improvements.
Linux gaming is faster because Windows APIs are becoming Linux kernel features
Linux gaming performance improves as Windows-specific synchronization APIs are implemented directly in the Linux kernel via the NTSYNC driver, which is now loaded by default on Steam Decks, contributing to better game compatibility and speed.
Swap tables, flash-friendly swap, swap_ops, and more
This article covers recent improvements and future plans for the Linux kernel's swap subsystem, including reduced per-page overhead, folio-based helpers, and efforts to make swapping more friendly to solid-state storage, as discussed at the 2026 Linux Storage, Filesystem, Memory Management, and BPF Summit.
WSL 2 is getting faster Windows file system access
WSL 2 is receiving a performance improvement where each virtio device gets its own dedicated DMA (SWIOTLB) pool, eliminating contention on the virtiofs path for cross-OS file access between Windows and Linux. This change, merged in May 2026, is the latest in a series of incremental improvements to Windows/Linux file I/O performance in WSL 2.
Pipes, Forks, and Zombies
This article from Harvard's CS 61 course covers Unix concepts of pipes, forks, and zombies, explaining how pipes automatically kill programs on closure and how to use pipes to implement blocking waits on child processes.