3 ms·
This is also handy when using socat to pipe across a network. You can use pv on both ends, one looking at compressed and the other looking at uncompressed data
by cellularmitosis 3y ago
This is also handy when using socat to pipe across a network. You can use pv on both ends, one looking at compressed and the other looking at uncompressed data, in order to observe the real-time compression ratio.
tar c foo | pv | gzip | socat - tcp-listen:9999
socat tcp:bar:9999 - | pv > foo.tar.gz
If pv shows that you aren’t saturating your network and are cpu limited, replace gzip with lzop. If vice versa, replace gzip with something more aggressive.
- upon_drumhead 3y agopv has a multi line mode so you can do tar c foo | pv -cN raw | gzip | pv -cN compressed | whatever else It’s handy to see multiple progress bars at once.
- formerly_proven 3y agozstd --adapt, used to have a few rough edges though.