Skip to contentSkip to conversation

Quantum of class nnnnn is big

LARTC Luciano Lima 4 participants 6 messages Jan 20, 2004 – Jan 22, 2004

lore
Share & tools
lore
#1 lore raw
Quoted 13 lines · Luciano Lima

My gateway is showing these messages:

htb*g jI29
htb*r7 m=0
htb*r6 m=0
htb*r5 m=0
htb*r4 m=0
htb*r3 m=0
htb*r2 m=0
htb*r1 m=0
htb*r0 m=0
HTB: quantum of class 10001 is big. Consider r2q change.

Quoted 1 line

What does it means ?

Lower the quantum:)
You can ignore these messages or change the quantum of your classes or r2q of your htb qdisc. For an explanation, see
http://docum.org/stef.coene/qos/faq/cache/31.html

Make sure 1500 < quantum < 60000
quantum = rate / r2q

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Luciano Lima

I ran into this problem as well. Here's something quoted from our bug database that came from the research I did:

---

This message comes from the root qdisc when we attach a class to it. It examines the data rate of the subordinate class and computes the "quantum" for that class.

A "quantum" is the unit of sharing for bandwidth allocation. It is the number of bytes the the root qdisc will collect at one time from a given class before moving on to the next one. It's important that the quantum be at least 1500, since that's the maximum size of an Ethernet packet.

The root qdisc computes the quantum size for a class by dividing its data rate, expressed in bits per second, by a configurable constant called "r2q" (short for rate to quantum). The default value for this constant is 10, but you can set it to anything you want.

---

So, it looks like the quantum being computed for you is very large, and the message is suggesting that you reduce the value of r2q so the quantum isn't so big.

According to Stef's FAQ at
http://qos.dyndns.org:3389/cgi-bin/fom?_highlightWords=r2q&file1, the buit-in limit for the quantum is 60000 bytes.

Quoted 15 lines · Luciano Lima

My gateway is showing these messages:

htb*g jI29
htb*r7 m=0
htb*r6 m=0
htb*r5 m=0
htb*r4 m=0
htb*r3 m=0
htb*r2 m=0
htb*r1 m=0
htb*r0 m=0
HTB: quantum of class 10001 is big. Consider r2q change.

What does it means ?

Quoted 9 lines

Thanks,

Luciano Lima

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#4 lore raw
In reply to Luciano Lima
Quoted 6 lines · On Wednesday 21 January 2004 17:18, [email protected] wrote:
Quoted 2 lines

Make sure 1500 < quantum < 60000
quantum = rate / r2q

Stef,

Would it be 1500 < quantum, or 1500 <= quantum ?

No, 1500 < quantim < 60.000. So quantum must be at least 1500, that's the maximum packet size. And < 60000 and this is hard decoded in htb to prevent cass starvation.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#5 lore raw
In reply to Luciano Lima
Quoted 6 lines · On Wednesday 21 January 2004 17:18, [email protected] wrote:
Quoted 2 lines

Make sure 1500 < quantum < 60000
quantum = rate / r2q

Stef,

Would it be 1500 < quantum, or 1500 <= quantum ?

I checked the htb code in kernel 2.6.1:
if quantum < 1000 or quantum > 200000, an eror is logged.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/