title: Fastest way of writing a file to disk on Linux
body: <p>Suppose I have a very fast and infinite data source (say a socket, /dev/null or /dev/random) on Linux and I need to write such data to disk in C/C++. What's the fastest code to accomplish that on a given hardware? fwrite(), unbuffered write(), some boost ASIO function? </p>