Re: [LARTC] HTB: messages in my log

2002-08-29 Thread Stef Coene

On Thursday 29 August 2002 16:00, Robert Penz wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> > All you have to do is chaning r2q so quantum is smaller :)
>
> ok, I've done that, set r2q to 60, but still the same message, my problem
> is also that I don't know a class 10010
That's an internal number.

> now my qdisc line looks that way
>
> tc qdisc add dev eth0 root handle 1: htb default 10 r2q 60
The biggest quantum allowed is 6 (I think).  So if you calculate all 
quantums, make sure none of them is bigger then 6. or smaller then 1500

Stef

-- 

[EMAIL PROTECTED]
 "Using Linux as bandwidth manager"
 http://www.docum.org/
 #lartc @ irc.oftc.net

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



Re: [LARTC] HTB: messages in my log

2002-08-29 Thread Robert Penz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> All you have to do is chaning r2q so quantum is smaller :)
ok, I've done that, set r2q to 60, but still the same message, my problem is
also that I don't know a class 10010

now my qdisc line looks that way

tc qdisc add dev eth0 root handle 1: htb default 10 r2q 60

- --
Regards,
Robert
- 
Robert Penz
[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9bijy8tTsQqJDUBMRAq7OAKCCmYs9GrDntAXBFIq8ncdAJMjSFQCdEX1V
tUq54Ojsmd4K+fdIe61nEBY=
=EOE7
-END PGP SIGNATURE-

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



Re: [LARTC] HTB: messages in my log

2002-08-29 Thread Stef Coene

On Thursday 29 August 2002 15:37, Robert Penz wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi!
>
> I'm getting following messages in my log, don't know what I'm doing wrong.
> I have that messages on 2.419 and 20pre1
>
> first call of my TC script, after the boot
>
> Aug 29 14:30:06 whitestar kernel: HTB init, kernel part version 3.6
> Aug 29 14:30:06 whitestar kernel: HTB: quantum of class 10001 is big.
> Consider r2q change.<4>HTB: quantum of class 10010 is big. Consider r2q
> change.<6>HTB init, kernel part version 3.6
>
> second call
>
> Aug 29 15:35:25 whitestar kernel: HTB: quantum of class 10001 is big.
> Consider r2q change.<4>HTB: quantum of class 10010 is big. Consider r2q
> change.<7>htb*g j=1476817
> Aug 29 15:35:25 whitestar kernel: HTB init, kernel part version 3.6
> Aug 29 15:35:25 whitestar kernel: HTB: quantum of class 10001 is big.
> Consider r2q change.<4>HTB: quantum of class 10010 is big. Consider r2q
> change.<6>HTB init, kernel part version 3.6
All you have to do is chaning r2q so quantum is smaller :)

Quantum is the amount of bytes a class may send when 2 classes are fighting 
for excess bandwidth.  When quantum is too big, it can create extra bursts.  
When quantum is too small (smaller then 1 packet) it can will disturb the htb 
calculations.
quantum = rate / r2q
 with r2q = 10 (can be overruled when you add a qdisc)

Solution : 
 r2q = smallest_rate_you_have / 1500

Stef

-- 

[EMAIL PROTECTED]
 "Using Linux as bandwidth manager"
 http://www.docum.org/
 #lartc @ irc.oftc.net

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/