4237 shaares
2 results
tagged
throughput
In this post, we will explore how Unix pipes are implemented in Linux by iteratively optimizing a test program that writes and reads data through a pipe.1
We will begin with a simple program with a throughput of around 3.5GiB/s, and improve its performance twentyfold.
Do you know the pv
command ? It's really nifty.
There are a few use cases:
echo "You can simulate on-screen typing just like in the movies" | pv -qL 10
# Show the incoming TCP packets rate:
tcpdump tcp -w - | pv -btr >/dev/null
# Show the maximum throughput between two machines:
# (provided …