Hi... I''m working with HTB, and have a question... what happen if I create a class of "8kbit" ?? I get a log : "HTB: quantum of class .... is small. Consider r2q change" but, my r2q=1 I can''t reduce that variable... how must I procced ? Thank you! mac _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Simply set quantum manualy, now quantum = rate / r2q set quantum to one mtu ( 1500 bytes) Remember that quantum affects priority bigger quantum means higer priority. ----- Original Message ----- From: "ThE LinuX_KiD" <gregoriandres@yahoo.com.ar> To: "lartc" <lartc@mailman.ds9a.nl> Sent: Friday, March 19, 2004 11:20 PM Subject: [LARTC] r2q> Hi... > > I''m working with HTB, and have a question... > > what happen if I create a class of ''"''8kbit''"'' ?? > > I get a log : > > ''"''HTB: quantum of class .... is small. Consider r2q change''"'' > > but, my r2q=1 I can''t reduce that variable... > > how must I procced ? > > Thank you! > mac > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
quantum = rate (bytes) / r2q Rate=8 Kbits/s = 1 Kbyte/s = 1024 Bytes r2q=1 quantum = 1024/1. Then Quantum = 1024 But MTU=1500 => MTU > Quantum Must I set MTU to 1024 ???? Thank you! Andres. -> Simply set quantum manualy, -> now quantum = rate / r2q -> set quantum to one mtu ( 1500 bytes) -> -> Remember that quantum affects priority -> bigger quantum means higer priority. -> -> -> ----- Original Message ----- -> From: "ThE LinuX_KiD" <gregoriandres@yahoo.com.ar> -> To: "lartc" <lartc@mailman.ds9a.nl> -> Sent: Friday, March 19, 2004 11:20 PM -> Subject: [LARTC] r2q -> -> -> > Hi... -> > -> > I''m working with HTB, and have a question... -> > -> > what happen if I create a class of ''"''8kbit''"'' ?? -> > -> > I get a log : -> > -> > ''"''HTB: quantum of class .... is small. Consider r2q change''"'' -> > -> > but, my r2q=1 I can''t reduce that variable... -> > -> > how must I procced ? -> > -> > Thank you! -> > mac -> > _______________________________________________ -> > LARTC mailing list / LARTC@mailman.ds9a.nl -> > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ -> > -> _______________________________________________ -> LARTC mailing list / LARTC@mailman.ds9a.nl -> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ -> _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Specify a quantum value(MTU suggested) on the class with 8 kbit. Rubens On Fri, 19 Mar 2004, ThE LinuX_KiD wrote:> Hi... > > I''m working with HTB, and have a question... > > what happen if I create a class of "8kbit" ?? > > I get a log : > > "HTB: quantum of class .... is small. Consider r2q change" > > but, my r2q=1 I can''t reduce that variable... > > how must I procced ? > > Thank you! > mac > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
I''m still confused about choosing r2q and quantum values. I''ve got different classes. Some have rate as low as 16Kbit and some have 2048Kbit. I''m using default r2q value ie 10 I guess. Also I''m using same quantum value for all the classes (ie quantum 1500) whatever their rate is. Is this a good practice? I don''t know. For r2q=10 I think the value that i''m using for quantuim (1500) is very high! In this case Should I lower the quantum value or the r2q value. I think I have two options: 1. r2q=1 and qunatum=1500 2. r2q=10 and quantum=150 which one is better? with regards, Bikrant On Saturday 20 March 2004 03:38, Roy wrote:> Simply set quantum manualy, > now quantum = rate / r2q > set quantum to one mtu ( 1500 bytes) > > Remember that quantum affects priority > bigger quantum means higer priority. > > > ----- Original Message ----- > From: "ThE LinuX_KiD" <gregoriandres@yahoo.com.ar> > To: "lartc" <lartc@mailman.ds9a.nl> > Sent: Friday, March 19, 2004 11:20 PM > Subject: [LARTC] r2q > > > Hi... > > > > I''m working with HTB, and have a question... > > > > what happen if I create a class of ''"''8kbit''"'' ?? > > > > I get a log : > > > > ''"''HTB: quantum of class .... is small. Consider r2q change''"'' > > > > but, my r2q=1 I can''t reduce that variable... > > > > how must I procced ? > > > > Thank you! > > mac > > _______________________________________________ > > LARTC mailing list / LARTC@mailman.ds9a.nl > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Thank you, Roy ! I''ve setted quantum to 1500 when: quantum = rate / r2q < 1500 and error logs are stopped. In other hand, I get a new warning message: "HTB: quantum of class .... is BIG. Consider r2q change" because, some rates are about 1500kbits, then with above formula quantum is about 192000 > 60000 But, I can''t change r2q, then I put "quantum 55000" on this rules, and error has been fixed. Is correct the value "quantum 55000" ? Or I must put mtu (1500) value for quantum ? Thank you! Andres. -> -> -> No, -> leave mtu unchanged, or you risk to have problems with some dumb servers. -> just set qantum to 1500, for each rule when it is lower than mtu -> bu default -> -> (quantum = rate (bytes) / r2q) this formula is used by tc to calculate -> default quantum -> you do not need to use it. -> -> -> ----- Original Message ----- -> From: "ThE LinuX_KiD" <gregoriandres@yahoo.com.ar> -> To: "lartc" <lartc@mailman.ds9a.nl> -> Sent: Saturday, March 20, 2004 10:17 PM -> Subject: RE: [LARTC] r2q -> -> -> > -> > -> > -> > -> > Rate=8 Kbits/s = 1 Kbyte/s = 1024 Bytes -> > r2q=1 -> > -> > quantum = 1024/1. -> > -> > Then Quantum = 1024 -> > -> > But MTU=1500 => MTU > Quantum -> > -> > Must I set MTU to 1024 ???? -> > -> > Thank you! -> > -> > Andres. -> > -> > -> > -> > -> Simply set quantum manualy, -> > -> now quantum = rate / r2q -> > -> set quantum to one mtu ( 1500 bytes) -> > -> -> > -> Remember that quantum affects priority -> > -> bigger quantum means higer priority. -> > -> -> > -> -> > -> ----- Original Message ----- -> > -> From: ''"''ThE LinuX_KiD''"'' <gregoriandres@yahoo.com.ar> -> > -> To: ''"''lartc''"'' <lartc@mailman.ds9a.nl> -> > -> Sent: Friday, March 19, 2004 11:20 PM -> > -> Subject: [LARTC] r2q -> > -> -> > -> -> > -> > Hi... -> > -> > -> > -> > I''m working with HTB, and have a question... -> > -> > -> > -> > what happen if I create a class of ''''"''''8kbit''''"'''' ?? -> > -> > -> > -> > I get a log : -> > -> > -> > -> > ''''"''''HTB: quantum of class .... is small. Consider r2q change''''"'''' -> > -> > -> > -> > but, my r2q=1 I can''t reduce that variable... -> > -> > -> > -> > how must I procced ? -> > -> > -> > -> > Thank you! -> > -> > mac -> > -> > _______________________________________________ -> > -> > LARTC mailing list / LARTC@mailman.ds9a.nl -> > -> > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: -> http://lartc.org/ -> > -> > -> > -> _______________________________________________ -> > -> LARTC mailing list / LARTC@mailman.ds9a.nl -> > -> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/> -> > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
I newer saw warning mesage about quantum too big. but probably it is ok to have ANY quantum which is greater than mtu. probabaly you shpuld not set quantum to 1500 if it is 50000 by defaul, unless you want to lower that class priority very much. but so high quantums can make trafic very bursty. so you may set that quantum to 15000 for better result. this will make these classes priority proportion as 1 to 10 ( 1 packet of spare trafic for slow class to 10 packets for fast class) ----- Original Message ----- From: "ThE LinuX_KiD" <gregoriandres@yahoo.com.ar> To: "lartc" <lartc@mailman.ds9a.nl> Cc: "Roy" <roy@xxx.lt> Sent: Monday, March 22, 2004 8:50 PM Subject: RE: [LARTC] r2q> > Thank you, Roy ! > > I''ve setted quantum to 1500 when: > > quantum = rate / r2q < 1500 > > and error logs are stopped. > > In other hand, I get a new warning message: > > ''"''HTB: quantum of class .... is BIG. Consider r2q change''"'' > > because, some rates are about 1500kbits, then with > above formula quantum is about 192000 > 60000 > > But, I can''t change r2q, then I put ''"''quantum 55000''"'' > on this rules, and error has been fixed. > > Is correct the value ''"''quantum 55000''"'' ? > Or I must put mtu (1500) value for quantum ? > > Thank you! > > Andres. > > > > > > > > > -> > -> > -> No, > -> leave mtu unchanged, or you risk to have problems with some dumbservers.> -> just set qantum to 1500, for each rule when it is lower than mtu > -> bu default > -> > -> (quantum = rate (bytes) / r2q) this formula is used by tc to calculate > -> default quantum > -> you do not need to use it. > -> > -> > -> ----- Original Message ----- > -> From: ''"''ThE LinuX_KiD''"'' <gregoriandres@yahoo.com.ar> > -> To: ''"''lartc''"'' <lartc@mailman.ds9a.nl> > -> Sent: Saturday, March 20, 2004 10:17 PM > -> Subject: RE: [LARTC] r2q > -> > -> > -> > > -> > > -> > > -> > > -> > Rate=8 Kbits/s = 1 Kbyte/s = 1024 Bytes > -> > r2q=1 > -> > > -> > quantum = 1024/1. > -> > > -> > Then Quantum = 1024 > -> > > -> > But MTU=1500 => MTU > Quantum > -> > > -> > Must I set MTU to 1024 ???? > -> > > -> > Thank you! > -> > > -> > Andres. > -> > > -> > > -> > > -> > -> Simply set quantum manualy, > -> > -> now quantum = rate / r2q > -> > -> set quantum to one mtu ( 1500 bytes) > -> > -> > -> > -> Remember that quantum affects priority > -> > -> bigger quantum means higer priority. > -> > -> > -> > -> > -> > -> ----- Original Message ----- > -> > -> From: ''''"''''ThE LinuX_KiD''''"'''' <gregoriandres@yahoo.com.ar> > -> > -> To: ''''"''''lartc''''"'''' <lartc@mailman.ds9a.nl> > -> > -> Sent: Friday, March 19, 2004 11:20 PM > -> > -> Subject: [LARTC] r2q > -> > -> > -> > -> > -> > -> > Hi... > -> > -> > > -> > -> > I''m working with HTB, and have a question... > -> > -> > > -> > -> > what happen if I create a class of ''''''"''''''8kbit''''''"'''''' ?? > -> > -> > > -> > -> > I get a log : > -> > -> > > -> > -> > ''''''"''''''HTB: quantum of class .... is small. Consider r2q > change''''''"'''''' > -> > -> > > -> > -> > but, my r2q=1 I can''t reduce that variable... > -> > -> > > -> > -> > how must I procced ? > -> > -> > > -> > -> > Thank you! > -> > -> > mac > -> > -> > _______________________________________________ > -> > -> > LARTC mailing list / LARTC@mailman.ds9a.nl > -> > -> > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: > -> http://lartc.org/ > -> > -> > > -> > -> _______________________________________________ > -> > -> LARTC mailing list / LARTC@mailman.ds9a.nl > -> > -> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: > http://lartc.org/ > > -> > > _______________________________________________ > > LARTC mailing list / LARTC@mailman.ds9a.nl > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Ok, in order to conclude: is OK next table ? QUANTUM values for HTB: RATE --- QUANTUM ---------------------------------------------- 8k --> set QUANTUM = 1500 16k --> Quantum is automatic by HTB algorithm 32k --> Quantum is automatic by HTB algorithm 64k --> Quantum is automatic by HTB algorithm 256k --> Quantum is automatic by HTB algorithm 512k --> set QUANTUM = 15000 ---------------------------------------------- each with r2q=1 Also, I set r2q=1 on root class, in order to support diferentes rates. Thank you! andres. -> -----Mensaje original----- -> De: lartc-admin@mailman.ds9a.nl [mailto:lartc-admin@mailman.ds9a.nl]En -> nombre de Roy -> Enviado el: Martes, 23 de Marzo de 2004 12:13 p.m. -> Para: lartc -> Asunto: Re: [LARTC] r2q -> -> -> I newer saw warning mesage about quantum too big. -> but probably it is ok to have ANY quantum which is greater than mtu. -> -> probabaly you shpuld not set quantum to 1500 if it is 50000 by defaul, -> unless you want to lower that class priority very much. -> -> but so high quantums can make trafic very bursty. -> so you may set that quantum to 15000 for better result. -> -> this will make these classes priority proportion as 1 to 10 ( 1 packet of -> spare trafic for slow class to 10 packets for fast class) -> -> ----- Original Message ----- -> From: "ThE LinuX_KiD" <gregoriandres@yahoo.com.ar> -> To: "lartc" <lartc@mailman.ds9a.nl> -> Cc: "Roy" <roy@xxx.lt> -> Sent: Monday, March 22, 2004 8:50 PM -> Subject: RE: [LARTC] r2q -> -> -> > -> > Thank you, Roy ! -> > -> > I''ve setted quantum to 1500 when: -> > -> > quantum = rate / r2q < 1500 -> > -> > and error logs are stopped. -> > -> > In other hand, I get a new warning message: -> > -> > ''"''HTB: quantum of class .... is BIG. Consider r2q change''"'' -> > -> > because, some rates are about 1500kbits, then with -> > above formula quantum is about 192000 > 60000 -> > -> > But, I can''t change r2q, then I put ''"''quantum 55000''"'' -> > on this rules, and error has been fixed. -> > -> > Is correct the value ''"''quantum 55000''"'' ? -> > Or I must put mtu (1500) value for quantum ? -> > -> > Thank you! -> > -> > Andres. -> > -> > -> > -> > -> > -> > -> > -> > -> > -> -> > -> -> > -> No, -> > -> leave mtu unchanged, or you risk to have problems with some dumb -> servers. -> > -> just set qantum to 1500, for each rule when it is lower than mtu -> > -> bu default -> > -> -> > -> (quantum = rate (bytes) / r2q) this formula is used by tc -> to calculate -> > -> default quantum -> > -> you do not need to use it. -> > -> -> > -> -> > -> ----- Original Message ----- -> > -> From: ''"''ThE LinuX_KiD''"'' <gregoriandres@yahoo.com.ar> -> > -> To: ''"''lartc''"'' <lartc@mailman.ds9a.nl> -> > -> Sent: Saturday, March 20, 2004 10:17 PM -> > -> Subject: RE: [LARTC] r2q -> > -> -> > -> -> > -> > -> > -> > -> > -> > -> > -> > -> > -> > Rate=8 Kbits/s = 1 Kbyte/s = 1024 Bytes -> > -> > r2q=1 -> > -> > -> > -> > quantum = 1024/1. -> > -> > -> > -> > Then Quantum = 1024 -> > -> > -> > -> > But MTU=1500 => MTU > Quantum -> > -> > -> > -> > Must I set MTU to 1024 ???? -> > -> > -> > -> > Thank you! -> > -> > -> > -> > Andres. -> > -> > -> > -> > -> > -> > -> > -> > -> Simply set quantum manualy, -> > -> > -> now quantum = rate / r2q -> > -> > -> set quantum to one mtu ( 1500 bytes) -> > -> > -> -> > -> > -> Remember that quantum affects priority -> > -> > -> bigger quantum means higer priority. -> > -> > -> -> > -> > -> -> > -> > -> ----- Original Message ----- -> > -> > -> From: ''''"''''ThE LinuX_KiD''''"'''' <gregoriandres@yahoo.com.ar> -> > -> > -> To: ''''"''''lartc''''"'''' <lartc@mailman.ds9a.nl> -> > -> > -> Sent: Friday, March 19, 2004 11:20 PM -> > -> > -> Subject: [LARTC] r2q -> > -> > -> -> > -> > -> -> > -> > -> > Hi... -> > -> > -> > -> > -> > -> > I''m working with HTB, and have a question... -> > -> > -> > -> > -> > -> > what happen if I create a class of ''''''"''''''8kbit''''''"'''''' ?? -> > -> > -> > -> > -> > -> > I get a log : -> > -> > -> > -> > -> > -> > ''''''"''''''HTB: quantum of class .... is small. Consider r2q -> > change''''''"'''''' -> > -> > -> > -> > -> > -> > but, my r2q=1 I can''t reduce that variable... -> > -> > -> > -> > -> > -> > how must I procced ? -> > -> > -> > -> > -> > -> > Thank you! -> > -> > -> > mac -> > -> > -> > _______________________________________________ -> > -> > -> > LARTC mailing list / LARTC@mailman.ds9a.nl -> > -> > -> > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: -> > -> http://lartc.org/ -> > -> > -> > -> > -> > -> _______________________________________________ -> > -> > -> LARTC mailing list / LARTC@mailman.ds9a.nl -> > -> > -> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: -> > http://lartc.org/ -> > > -> -> > > _______________________________________________ -> > > LARTC mailing list / LARTC@mailman.ds9a.nl -> > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/> > > >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Tuesday 23 March 2004 16:13, Roy wrote:> I newer saw warning mesage about quantum too big. > but probably it is ok to have ANY quantum which is greater than mtu.There is a maximum of 60000 for quantum to prevent class starvation. 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/