All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Exploring Unix Pipe Performance Optimization in Linux

By

keepamovin

11mo ago· 17 min readenInsight

Summary

The article explores the implementation of Unix pipes in Linux by optimizing a test program for writing and reading data through a pipe. It starts with a throughput of 3.5GiB/s and aims to improve it twentyfold, guided by profiling with Linux's perf tooling. The goal is to match the speed of a highly optimized FizzBuzz program that achieves ~35GiB/s output on the author's laptop.

Key quotes

· 3 pulled
We will begin with a simple program with a throughput of around 3.5GiB/s, and improve its performance twentyfold.
The post was inspired by reading a highly optimized FizzBuzz program, which pushes output to a pipe at a rate of ~35GiB/s on my laptop.
Our first goal will be to match that speed, explaining every
Snippet from the RSS feed
Pipes are ubiquitous in Unix --- but how fast can they go on Linux? In this post we'll iteratively improve a simple pipe-writing benchmark from 3.5GiB/s to 65GiB/s, guided by Linux `perf`.

You might also wanna read

Researchers Work to Decode the "Black Box" of Reservoir Computing and Brain-Inspired AI

This article explores Reservoir Computing (RC), a specialized form of recurrent neural networks (RNNs) that mimics biological brain processe

akmaier.substack.com·38m ago

Experimental demonstration of quantum communication advantage for Euclidean distance calculation using coherent state fingerprints

This paper presents an experimental demonstration of quantum advantage in communication complexity for the Euclidean distance problem. The r

arxiv.org·1h ago

Quantum research reveals when entanglement hinders rather than helps channel discrimination

This research paper investigates the role of entanglement in quantum channel discrimination, challenging the common assumption that more ent

arxiv.org·1h ago

Florida community Angeline installs AI-powered robotic beehive to protect pollinators

A Pasco County, Florida community called Angeline has installed a robotic beehive system equipped with AI technology, becoming the first mas

baynews9.com·2h ago

Study Finds Most AI Chatbots Prioritize Ad Revenue Over User Welfare in Conflict-of-Interest Scenarios

This research paper analyzes how large language models (LLMs) handle conflicts of interest when company revenue incentives (advertisements)

arxiv.org·2h ago

German study finds POLO back-junction solar cells more cost-effective than PERC technology in Europe

A German research team from the German Aerospace Center (DLR) conducted a techno-economic analysis of POLO back-junction (BJ) solar cells in

pv-magazine.com·2h ago