Re: add speed limit to dd tool (original) (raw)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
From: | Davide Brini |
---|---|
Subject: | Re: add speed limit to dd tool |
Date: | Mon, 10 Sep 2012 18:57:16 +0200 |
On Mon, 10 Sep 2012 14:32:14 +1100, address@hidden wrote:
Hi
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 like this:
cat file | dd --limit-speed 1M | nc 10.0.0.1 10000
or spare drive's load copying file like this:
dd if=/mnt/sda1/file of=/mnt/sda2/file --limit-speed 10M
There is tool "cstream" that similar to "dd" one can use it to copy file locally:
cstream -i /mnt/sda1/file -o /mnt/sda2/file -t 10m
or remotely:
cstream -o /tmp/file host:port -t 100k
but its not under GPL license:
"The license is similar to the X consortium license"
The speed limit shouldve been added to dd at the very begining it will make it even more useful.
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.
-- D.
- add speed limit to dd tool, igrockk, 2012/09/10
- Re: add speed limit to dd tool,Davide Brini <=
* Re: add speed limit to dd tool, Bob Proulx, 2012/09/10
- Re: add speed limit to dd tool,Davide Brini <=
- Prev by Date:add speed limit to dd tool
- Next by Date:non-recursive make in lib/, too
- Previous by thread:add speed limit to dd tool
- Next by thread:Re: add speed limit to dd tool
- Index(es):