All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] What is: "Consider r2q change"
@ 2005-05-26 22:41 Oliver Schulze L.
  2005-05-27  3:26 ` gypsy
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Oliver Schulze L. @ 2005-05-26 22:41 UTC (permalink / raw)
  To: lartc

Hi,
I'm getting this warning/error in /var/log/messages:

May 26 18:21:05 mail kernel: HTB: quantum of class 10010 is small. 
Consider r2q change.

Its a big deal? What should I do?

Many thanks
Oliver

-- 
Oliver Schulze L.
<oliver@samera.com.py>

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] What is: "Consider r2q change"
  2005-05-26 22:41 [LARTC] What is: "Consider r2q change" Oliver Schulze L.
@ 2005-05-27  3:26 ` gypsy
  2005-05-27  6:00 ` m.innocenti
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: gypsy @ 2005-05-27  3:26 UTC (permalink / raw)
  To: lartc

"Oliver Schulze L." wrote:
> 
> Hi,
> I'm getting this warning/error in /var/log/messages:
> 
> May 26 18:21:05 mail kernel: HTB: quantum of class 10010 is small.
> Consider r2q change.
> 
> Its a big deal? What should I do?
> 
> Many thanks
> Oliver
> 
> --
> Oliver Schulze L.
> <oliver@samera.com.py>

If you are sure you REALLY want the rate that tc is complaining about,
you should manually set quantum, probably to 1514 (look at quantum for a
rate that does not generate this message for size hints).  htb is
telling you that the rate is a lot less than the rate of the parent;
experience says 31% or less of the parent rate generates this message.

tc class add dev eth1 parent 1:1 classid 1:30 htb rate $RATE ceil $CEIL
burst 5k quantum 1514 prio 3

--
gypsy
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] What is: "Consider r2q change"
  2005-05-26 22:41 [LARTC] What is: "Consider r2q change" Oliver Schulze L.
  2005-05-27  3:26 ` gypsy
@ 2005-05-27  6:00 ` m.innocenti
  2005-05-30 16:47 ` Oliver Schulze L.
  2005-05-30 17:52 ` Oliver Schulze L.
  3 siblings, 0 replies; 5+ messages in thread
From: m.innocenti @ 2005-05-27  6:00 UTC (permalink / raw)
  To: lartc

Oliver Schulze L. ha scritto:
> I'm getting this warning/error in /var/log/messages:
> May 26 18:21:05 mail kernel: HTB: quantum of class 10010 is small. 
> Consider r2q change.
> Its a big deal? What should I do?

If I understand the source, that message occours when you have a leaf 
class whose calculated quantum (rate/r2q) is less than 1000 byte and the 
kernel set the quantum to 1000 byte.
I've read that the quantum should be bigger than the MTU so I don't 
understand why the kernel don't use a minimum quantum value bigger than 
1500. Someone has a clue?

 From kernel-source-2.6.10/net/sched/sch_htb.c
if (!hopt->quantum && cl->un.leaf.quantum < 1000) {
    printk(KERN_WARNING "HTB: quantum of class %X is small. Consider r2q 
change.\n", cl->classid);
    cl->un.leaf.quantum = 1000;



-- 
**********************************************************************
Marco Innocenti              Gruppo Infrastruttura e Sicurezza
CINECA                       phone:+39 0516171553 / fax:+39 0516132198
Via Magnanelli 6/3           e-mail: innocenti@cineca.it
40033 Casalecchio di Reno    Bologna (Italia)
**********************************************************************
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] What is: "Consider r2q change"
  2005-05-26 22:41 [LARTC] What is: "Consider r2q change" Oliver Schulze L.
  2005-05-27  3:26 ` gypsy
  2005-05-27  6:00 ` m.innocenti
@ 2005-05-30 16:47 ` Oliver Schulze L.
  2005-05-30 17:52 ` Oliver Schulze L.
  3 siblings, 0 replies; 5+ messages in thread
From: Oliver Schulze L. @ 2005-05-30 16:47 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/html, Size: 1593 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] What is: "Consider r2q change"
  2005-05-26 22:41 [LARTC] What is: "Consider r2q change" Oliver Schulze L.
                   ` (2 preceding siblings ...)
  2005-05-30 16:47 ` Oliver Schulze L.
@ 2005-05-30 17:52 ` Oliver Schulze L.
  3 siblings, 0 replies; 5+ messages in thread
From: Oliver Schulze L. @ 2005-05-30 17:52 UTC (permalink / raw)
  To: lartc

Hi, yes, thats right, the problem was only with leaf classes.
Thanks for clarifyind that

Oliver

m.innocenti@cineca.it wrote:

> Oliver Schulze L. ha scritto:
>
>> I'm getting this warning/error in /var/log/messages:
>> May 26 18:21:05 mail kernel: HTB: quantum of class 10010 is small. 
>> Consider r2q change.
>> Its a big deal? What should I do?
>
>
> If I understand the source, that message occours when you have a leaf 
> class whose calculated quantum (rate/r2q) is less than 1000 byte and 
> the kernel set the quantum to 1000 byte.
> I've read that the quantum should be bigger than the MTU so I don't 
> understand why the kernel don't use a minimum quantum value bigger 
> than 1500. Someone has a clue?
>
> From kernel-source-2.6.10/net/sched/sch_htb.c
> if (!hopt->quantum && cl->un.leaf.quantum < 1000) {
>    printk(KERN_WARNING "HTB: quantum of class %X is small. Consider 
> r2q change.\n", cl->classid);
>    cl->un.leaf.quantum = 1000;
>
>
>
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-05-30 17:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-26 22:41 [LARTC] What is: "Consider r2q change" Oliver Schulze L.
2005-05-27  3:26 ` gypsy
2005-05-27  6:00 ` m.innocenti
2005-05-30 16:47 ` Oliver Schulze L.
2005-05-30 17:52 ` Oliver Schulze L.

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.