RSSAmplifier

./xai.sh · Feb 7, 2019

Rate-limit pipes with pv

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

How to rate-limit pipes with pv

Here’s a short one: pv can be used to rate-limit pipes.
pv is often used to show the progress of operations, but it offers a lot more.

In my case, I had to limit the network usage of a zfs send/recv that was running over ssh, because the traffic was disturbing other processes who needed the bandwidth as well.

Turns out it’s easy with pv:
zfs send ... | pv -L 5M | ssh remote zfs recv ...
limits the pipe to 5M/s.

Read on xai.sh

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.