-   Slackware (
-   -   Bandwidth Throttling (

chasingmytail 06-29-2004 12:10 PM

Bandwidth Throttling
Others have been having troubles with my downloads at work. It seems that my computer (on the top level router, hehehe) will hog all the bandwith, with absolutely no competition. Now this is no problem for me, however, when I start downloading large items, everyone else's connection is dropped to a crawl.

After much searching I found this simple solution and was suprized is wasn't better documented.

Using wget set the option --limit-rate=##### (in b). I like using 10240 for a 10K download. My downloads are a little slower, but I can normally spare the extra time to take a walk for a cup of coffee.

Hope this is helpful to somebody ....


Cerbere 06-29-2004 07:04 PM

I was having a similar problem on my system, but I'm on dial-up (I hear you laughing out there) and wget's throttle doesn't work too well for lower BW (< 3kb/sec). But I found a great little utility called trickle that adds the ability to limit bandwidth to any application (wget, ftp, etc.). It's really simple and allows you to set different limits for upload and download, and it can run as non-root or can be set up by root to run as a daemon.

--- Cerbere

thegeekster 06-29-2004 09:08 PM

Cerbere - Thanx for the heads up on trickle......... :)

chasingmytail 06-29-2004 09:57 PM


I knew there had to be something like this out there; the purpose of my post was to elicit just such a response.

The link's much appreciated. Thanks!

carboncopy 06-30-2004 12:42 AM

I would think the kernel has support for this too right? QoS?

rotvogel 06-30-2004 02:07 AM

That's right, QoS. See (Linux Advanced Routing and Traffic Control) for a good HOWTO and more..
But if the solution provided here does work I think that would be easier to implement :)

ivanatora 06-30-2004 10:38 AM

QoS wont work, becouse CBQ and HTB can limit only upload speed. Try out with a bytelimit kernel patch for iptables. I think it can be found on patch-o-matic download page:

All times are GMT -5. The time now is 05:41 PM.