Given a bash command line of the form
commandA | commandB
I want to add a buffer of size ~1MB that sits between commandA and <
commandA
You can use
E.g.
process1 | mbuffer -m 1024M | process2
to use a 1G buffer