Re: Anyone seen this?

Linux Advanced Routing and Traffic Control

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

 



On Friday 01 November 2002 16:43, Tim Carr wrote:
> Oops, pardon me for partially answering my own questions, but let me
> clarify:
>
> 1. I read the bit of the FAQ on docum.org that explains the quantum stuff.
> Nice site Stef.  So it looks to me that in HTB3 if your quantum is less
> than the packet size, since it still sends the packet anyways, it's not
> really limiting the packets at the rate you want? (!) .. How do I actually
> limit something to a cold/hard 2kbytes/sec ?  If I manually set the
> quantum, it'll still be lower than most packet sizes, and according to what
> I read in the FAQ it won't actually limit it below the packet size.
You have to compare the highes and the lowest rate you have.  You have to 
choose r2q so the lowest-rate / r2q > 1500 and highest-rate / r2q < 60000.
You can specify the r2q parameter if you add the htb qdisc.

Shaping with a wrong quantum is not harmfull.  But you will not get the 
results you wanted.  I just did some small test with the quantum parameter.  
I have to make a link on the site, but you can find it for now on : 
http://home.docum.org/stef.coene/qos/tests/htb/quantum/

> 2. In HTB, which is MORE important (and therefore gets more attention): a
> lower or higher prio? The faq leads me to believe a LOWER prio is MORE
> important. (Stef you could add this in b/w to the FAQ, it's not clear).
Done :)
The lower the prio, the higher the priority

Stef

> Thanks again,
>
> tim
>
> > -----Original Message-----
> > From: Tim Carr
> > Sent: November 1, 2002 10:29 AM
> > To: Stef Coene; lartc@mailman.ds9a.nl
> > Subject: RE:  Anyone seen this?
> >
> > > try, I can't find
> > >
> > > > out what the new syntax should be. Here's the line that's failing:
> > > >
> > > > tc qdisc add dev eth0 root handle 1: htb default 13
> > > >
> > > > Any ideas how to make that work with the new version?
> > >
> > > You have to use the same htb version for tc and the kernel.
> > > Maybe that's the
> > > problem.
> >
> > Hmm. I'm using debian's stock version of iproute2's "tc"
> > command, and i'm using the HTB that comes with kernel
> > 2.4.20pre11. Does anyone know what version of HTB that is,
> > and whether it's the newest ?
> >
> > > Quantum must be greater then 1500.  You have a class with
> > > rate 2 so the
> > > quantum of that class is 2k / 10 (10 is default) = 200.  This
> > > is smaller then
> > > 1500.  Solution : ignore the warnings :) or overrule the r2q
> >
> > Ok, is it not "working" properly because my quantum is too
> > low? What kind of ill-effects will this have?
> >
> > Many thanks,
> >
> > tim
> > _______________________________________________
> > LARTC mailing list / LARTC@mailman.ds9a.nl
> > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux