Add a big buffer to a pipe between two commands
There is another tool, pv
- pipe viewer:
process1 | pv -pterbTCB 1G | process2
B
specifies the buffer size, here 1 GigibyteC
disablessplice
, which is required forB
T
shows the buffer levelpterb
are the default display switches needed due to the presence ofT
pv
might be available on systems where mbuffer/buffer
is not in the official repositories (such as arch linux
).
BUFFER is called buffer. (man 1 buffer, maybe after apt-get install buffer)