[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: add speed limit to dd tool
From: |
Bob Proulx |
Subject: |
Re: add speed limit to dd tool |
Date: |
Mon, 10 Sep 2012 14:44:14 -0600 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Davide Brini wrote:
> address@hidden wrote:
> > Just a suggestion that it woild be good
> > idea to have speed limit in dd tool
> > so one can use it to for example
> > spare network bandwidth when copying file
> > ...
>
> You can use a tool named "pv" (available in all the distros I've worked
> with) to put a bandwidth limit on any operation that involves streams or
> pipes, just insert it where you want the throttling to happen, eg
>
> dd if=file | pv --rate-limit 1m | nc etc.
And for more network centric things there is 'trickle' too which can
also throttle bandwidth across several different parallel connections.
dd if=file | trickle -s -u 20 nc ...
Bob