News for hackers. Stuff that matters.
Re:Dd is not a disk writing tool (2015) by quotemstr on Sunday January 08, 2017 @04:19PM (#13352078)
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.
Re:Dd is not a disk writing tool (2015) by wpietri on Sunday January 08, 2017 @04:27PM (#13352122)
Holy 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.