Edmond Rodriguez on 20 Feb 2011 11:17:27 -0800

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

Re: [PLUG] Fw: Throttling network bandwidth usage ala nice or ionice...

Trickle and trickled does this to a point.  Trickle lets you limit
bandwidth for a process started with it.
Trickled lets you add priorities to bandwidth for different network types.


But regarding priorities, I have the following problem (I think).

Lets say I am running wget to pick up a file (not using ftp).
And I am running firefox browsing the web for a busy web page.

How do I differentiate between the two?  I guess the traffic for both
will be "www" traffic?

So a trickled config file like this one will not help give the browser
more priority than the wget:?:

I thought of adding a "[wget]" to the config file, but I guess that is
not a  service type.  Or can
it be somehow?

Priority = 1
Time-Smoothing = 0.1
Length-Smoothing = 1
Priority = 8
Time-Smoothing = 5
Length-Smoothing = 20
Priority = 2
Time-Smoothing = 0.1
Length-Smoothing = 2

> ----- Forwarded Message ----
> From: Fred Stluka <fred@bristle.com>
> To: "Rodriguez, Edmond" <ERodrig_97@yahoo.com>
> Cc: PLUG -- Philly Linux Users Group <plug@lists.phillylinux.org>
> Sent: Fri, December 4, 2009 2:32:38 PM
> Subject: Throttling network bandwidth usage ala nice or ionice...
> Edmond (and other PLUG folks),
> You were asking the other day for a way to throttle network IO
> during downloads, similar to the way the "nice" command does for
> CPU usage -- run full bore unless something else is competing
> for the bandwidth.  There's another command called "ionice" that
> may be close to what you want.  It throttles disk IO, not network
> IO, but:
> 1. Since the download is coming across the network and going
>    to the disk, that may have the effect you want.
> 2. Since there's already a nice and an ionice, maybe there's
>    one for network traffic also.
> Just a thought...
> --Fred
> ---------------------------------------------------------------------
> Fred Stluka -- mailto:fred@bristle.com -- http://bristle.com/~fred/
> Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
> ---------------------------------------------------------------------
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug