Explaining splice() and tee()
https://web.archive.org/web/20130521163124/http://kerneltrap.org/node/6505
Splice is a Linux system call that can send data from one file descriptor (ie, a socket) to another one with zero-copy. This is of vital importance for some applications like proxies, or for some general cases like receiving data that is going to be immediately saved to disk. It can save many copies and many CPU cycles…