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. http://docs.google.com/viewer?a=v&q=cache:dtqS60yWkwUJ:www.linux-magazine.com/w3/issue/62/Traffic_Shaping_With_Trickle.pdf+trickled+wget+conf&hl=en&gl=us&pid=bl&srcid=ADGEESjNG5MTbFFEwdaYErOhTw31hOVXvEgmsTX0csyPt6_H9az6FEbDSIFydl3hj2uE_MYiFIxqeLuCEe2w_IKDkoalyALxx-bTscMW59CMzLlwOOQD3gcAbedKUlNCyIxnmjn2AMGn&sig=AHIEtbR55WVtESYrNxpPseVcrERETf8hOA&pli=1 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? [ssh] Priority = 1 Time-Smoothing = 0.1 Length-Smoothing = 1 [ftp] Priority = 8 Time-Smoothing = 5 Length-Smoothing = 20 [www] 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