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
AI-enriched Linux 7.2 delivers cache-aware scheduling
Linux kernel 7.2 has been released with AI-enriched security fixes and new cache-aware scheduling to improve processing performance.
Linux 7.2
Linux 7.2 has been released with significant improvements including cache-aware scheduling, power management for Raspberry Pi GPUs, and various performance enhancements.
Linux 7.3 improves performance when running out of vRAM
Linux 7.3 merges kernel patches that improve VRAM management, enhancing performance stability in games when physical VRAM is exceeded through optimized memory eviction and caching.
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.
AMD boosting AI/LLM performance for Radeon iGPUs as much as 18~23% with Linux 7.4
AMD is boosting AI and large language model performance on Radeon integrated GPUs by 18-23% with optimizations in Linux 7.4.