2 ms·
Almost, but not quite. You really want buffer in there to smooth out IO time variances. <foo.img pv -cNsrc | buffer -p75 -s256k -b128 | pv -cNdst >/dev/wh
by quotemstr 10y ago
Almost, but not quite. You really want buffer in there to smooth out IO time variances.
<foo.img pv -cNsrc | buffer -p75 -s256k -b128 | pv -cNdst >/dev/whatever
buffer lets the rest of the pipeline proceed while pv is blocked writing to the output file. Yes, conventional filesystem readahead helps to some extent, but IME, not enough, especially when foo.img is a block device itself.
- wpietri 10y agoHoly moly. I have spent a lot of years typing Unix commands, but it never occurred to me to put the input redirection first. But that's much more pipeline-ish, so I like it a lot.