--bwlimit option?

Nicholas Lee nj.lee@plumtree.co.nz
Thu, 6 Jun 2002 13:39:02 +1200


On Wed, Jun 05, 2002 at 06:28:42PM -0700, Ben Escoto wrote:
> The first entry on Freshmeat under "bandwidth limiting" is cstream.
> Homepage is at:
> 
> http://www.cons.org/cracauer/cstream.html

Missed that one.  Thanks!

>   NL> Maybe code can be borrowed from wget or rsync.
> 
> Maybe, or at least the general idea how to do it..

man wget:

       --limit-rate=amount
           Limit the download speed to amount bytes per second.  Amount may be expressed in bytes, kilobytes
           with the k suffix, or megabytes with the m suffix.  For example, --limit-rate=20k will limit the
           retrieval rate to 20KB/s.  This kind of thing is useful when, for whatever reason, you don't want
           Wget to consume the entire evailable bandwidth.

           Note that Wget implementeds the limiting by sleeping the appropriate amount of time after a net­
           work read that took less time than specified by the rate.  Eventually this strategy causes the
           TCP transfer to slow down to approximately the specified rate.  However, it takes some time for
           this balance to be achieved, so don't be surprised if limiting the rate doesn't work with very
           small files.  Also, the "sleeping" strategy will misfire when an extremely small bandwidth, say
           less than 1.5KB/s, is specified.




-- 
Nicholas Lee - nj.lee at plumtree.co dot nz, somewhere on the fish Maui caught.
gpg. 8072 4F86 EDCD 4FC1 18EF  5BDD 07B0 9597 6D58 D70C            icq. 1612865 

                         Quixotic Eccentricity