up vote 4 down vote favorite
share [g+] share [fb]

In Linux, a single download can use all available bandwidth, so that any other connection can't be started. (e.g. if I am downloading updates, I can't surf the web at the same time)

Is there a way to set some kind of fair queueing between different connection, to allow for sharing?

I checked tc with sfq qdisc, but it seems one has to tune it to the current available bandwidth, which could be difficult on xDSL, where maximum downstream bandwidth could not be fully available depending on the provider.

Thanks

link|improve this question

60% accept rate
Unless I've misunderstood the question, this belongs on superuser.com – Dominic Rodger Sep 17 '09 at 12:09
ok moved it to serverfault, thanks – Metiu Sep 17 '09 at 12:16
feedback

migrated from stackoverflow.com Sep 17 '09 at 12:36

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 2 down vote accepted

I've personally never tried any applications for bandwidth throttling, but if you'd like a good place to see some applications for Linux, check out the "external links" section of the Bandwidth throttling Wikipedia entry.

Amongst the mentioned solutions, I've heard about trickle and a Squid based implementation (like in the Bandwidth Limiting HOWTO).

link|improve this answer
I tried wondershaper, too. The issue with it is that you need to know the total up/down bandwidth beforehand to give it as an input, and that's more annoying when an interface is both on the internet and on a lan, so that you can eventually shape all your LAN related traffic on the same bandwidth of your DSL line. – Metiu Jul 25 '11 at 14:34
feedback

I have no idea how it's done, but the rtorrent client (a console bittorrent client) is able to throttle transfers, and therefore does not saturate bandwidth.

Perhaps the source of rtorrent would provide some clues.

Here's a link to the libtorrent / rtorrent wiki. It has a browse source button

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.