From: Tristan Miller on 1 Feb 2010 16:58 Greetings. In article <1265043997_77(a)vo.lu>, J G Miller wrote: > On Mon, 01 Feb 2010 15:03:56 +0000, Tristan Miller wrote: > >> How is iptables going to know which is which? > > How do you know which is which and how does your broswer know which > is which and YasT know which is which? Because of how I invoke them on the command line. When I invoke my browser, I will type the following: $ seamonkey And when I invoke YaST, and want to make sure that anything it downloads gets the lowest possible network priority, I will type the following (assuming the syntax of the hypothetical bandwidth-nicer is similar to that of ionice): $ bwnice -c3 yast2 > You would have to configure IPTABLES to use a combined rule limiting the > urgency of packets which are of both type HTTP and coming from the > address of the YaST repository. Well, that's hardly useful, since (1) I won't always know in advance what addresses are going to be accessed by the commands I want to bandwidth- nice, and (2) even if I did know them in advance, it's entirely conceivable that I might run two different processes which download from the same address, but assign different bandwidth priorities to them. > I want it to dynamically adjust itself, taking all the bandwidth >> when possible and cutting back when higher-priority processes >> are using it. > > So you are looking for a automagical-does-all-I-want wonder tool. No, I am looking for something that does exactly the same thing as nice or ionice, except with network bandwidth. You do realize how these commands work, do you not? A process which is ioniced, for example, will happily read and write from the disk as much as it can, unless it determines that another process with a higher priority wants to read or write, in which case it will wait until that process is done before resuming its I/O. No "magic" is necessary; it's a simple matter of launching processes through ionice which assigns them to an appropriate priority queue. > Have you done a web search using such terms as "bandwidth limiter", > "traffic shaper", etc? Of course, but all I found were programs that fixed a process's bandwidth usage to a specified rate. That's why I'm asking here. Regards, Tristan -- _ _V.-o Tristan Miller >< Space is limited / |`-' -=-=-=-=-=-=-=-=-=-=-=-=-=-=- <> In a haiku, so it's hard (7_\\ http://www.nothingisreal.com/ >< To finish what you
From: J G Miller on 1 Feb 2010 17:38
On Mon, 01 Feb 2010 21:58:34 +0000, Tristan Miller wrote: > Of course, but all I found were programs that fixed a process's > bandwidth usage to a specified rate. So you did not find MasterShapper <http://www.mastershaper.org/index.php/MasterShaper> which appears (from the screenshots) to allow the administrator to set priorities on transfers? Perhaps you could ask in their web forum if you need to check on specific functionality if it is not mentioned in the documentation (pdf). > That's why I'm asking here. That's fine, it is just nice to no if you have looked and to know what is available is not suitable because of your requirements. |