[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Does nice-ness exist for bandwidth? [sic]



On Wed, 12 May 2004 17:56:17 +0200
Nicos Gollan <gtdev@spearhead.de> wrote:

> On Wed, 12 May 2004 02:52:33 +1000
> Lex Hider <alexeijh@pacific.net.au> wrote:
> 
> > Now if I'm web-browsing and reading a page already loaded
> > all the bandwidth goes to wget/apt-get.
> > But when I am loading a web-site or checking my mail then
> > the priority for the bandwidth goes to the browser like
> > in the cpu-nice example.
> > 
> > =======
> > Does an application that achieves the above exist currently?
> > If not; is it possible or even a good idea?
> 
> The way packet handling works in Linux makes it hard if not impossible
> to determine what specific application created a packet. You can

Netfilter comes with a module that allows packets to be matched on
uid, command, pid. Check out the 'match extensions' section in 'man
iptables'. 
This could be used in combination with the mark extension
and some traffic shape rules to limit the bandwidth for a specific
process.

I'm using this myself to limit the bandwidth for p2p applications that
don't allow you to set a limit.



Reply to: