From: Stef Coene Date: Thu, 04 Jul 2002 17:28:07 +0000 Subject: Re: [LARTC] quake3 issues Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org > # install root HTB, point default traffic to 1:20: > tc qdisc add dev $DEV root handle 1: htb default 20 > tc class add dev $DEV parent 1: classid 1:1 htb rate ${UPLINK}kbit \ > burst 6k > tc class add dev $DEV parent 1:1 classid 1:10 htb rate ${UPLINK}kbit \ > burst 6k prio 1 > tc class add dev $DEV parent 1:1 classid 1:20 htb \ > rate $[9*$UPLINK/10]kbit burst 6k prio 2 > So far, so good. > > The only problem I have is that, if I dont play quake, all the normal > traffic gets only 90% of my line speed ($[9*$UPLINK/10] kbit). But I want > that traffic to get 100%, but only if I dont play). > > Ok, then i modified the 1:20 class to have a ceil statement: > > ----------------------------------------------------------- > tc class add dev $DEV parent 1:1 classid 1:20 htb \ > rate $[9*$UPLINK/10]kbit ceil ${UPLINK}kbit \ > burst 6k prio 2 > ----------------------------------------------------------- > > In theorie everything should be fine now, 1:20 gets the whole line as long > as 1:10 doesn't need any bandwidth. > > Problem: I have lag in quake! If you read the htb pages, you can find some more info about delays. You can try to give the quake class a lower prio. > So what do you guys think? > > Is there any way to limit 1:20 to exactly 90% uplink, as soon as 1:10 has > activity < 10% uplink? Then quake should have enough spare bandwidth. I > tried lower burst settings without luck. I don't think it's possible without external scripting. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/