From mboxrd@z Thu Jan 1 00:00:00 1970 From: lartc@e-apollo.lv Date: Mon, 09 Dec 2002 18:19:14 +0000 Subject: [LARTC] HTB Problem Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Hello, I am shaping traffic for ~250 users and i have noticed something is wrong: Each user is being shaped from 32kbit/s to 2mbit/s. =20 When i run the script which creates the classes the following error is pri= nted to syslog: Dec 9 19:53:34 p1 kernel: HTB: quantum of class 10009 is small. Consider r= 2q=20 change.<4>HTB: quantum of class 10055 is small. Consider r2q change.<4>HTB:= quantum of=20 class 10082 is small. Consider r2q change.<4>HTB: quantum of class 10103 is= small. Consider=20 r2q change.<4>HTB: quantum of class 10106 is small. Consider r2q change.<4>= HTB: quantum=20 of class 10109 is small. Consider r2q change. ... etc etc. I searched google and found some posts on this error, they said to change t= he r1q quantum=20 value, tho it wasnt clearly said how big the value should be. Could anyone tell me what r2q value to set if thaffic is shaped to 32kbit, = 64 kbit and 128kbit/s? I read the manual of HTB and it says: 'Normaly you don't need to specify quantums manualy as HTB chooses precompu= ted values. It=20 computes classe's quantum (when you add or change it) as its rate divided b= y r2q global=20 parameter. Its default value is 10 and because typical MTU is 1500 the defa= ult is good for rates=20 from 15 kBps (120 kbit). For smaller minimal rates specify r2q 1 when creat= ing qdisc - it is good=20 from 12 kbit which should be enough' So, is=20 'r2q 3' enough for 32kbit/s 'r2q 6' enough for 64kbit/s and 'r2q 10' (default) enough for 128kbit/s+? Soon after the 'HTB: quantum of class is small' messages in syslog = i get the following=20 errors from HTB: (around 10 minutes after the warnings of 'quantum of class is small= ': Dec 9 20:04:43 p1 kernel: HTB: bad diff in events, cl=10345 diffFCE0000 no= w=1187872768=20 thenB94934528 j=10106476 Dec 9 20:04:48 p1 kernel: NET: 189 messages suppressed. Dec 9 20:04:48 p1 kernel: HTB: bad diff in events, cl=10054 diffG0D0000 no= w=1191976960=20 thenB94909952 j=10106977 Dec 9 20:04:53 p1 kernel: NET: 190 messages suppressed. Dec 9 20:04:53 p1 kernel: HTB: bad diff in events, cl=10054 diffG4C0000 no= w=1196105728=20 thenB94909952 j=10107481 And it seems the classes start dying one after other, cause the clients sta= rt calling me and=20 screaming 'internet doesnt work'. as soon as i flush qdisc, everything works perfect again. So for now i have put the traffic script in crontab flushing and adding cla= sses every 15 minutes. Any suggestions? I am using HTB 3.6 and Linux 2.4.19 I tried Linux 2.4.20 with HTB included, tho the results were much more poor= - if i shaped traffic=20 to 256kbit/s on 2.4.19 the ping was around 200ms (constant), tho on 2.4.20 = it was increasing=20 and decreasing dramatically - from 6000ms to 80ms. P.Krumins ____________________________________________________________ =20 Re=ECistr=E7 un lieto savu Apollo e-pastu www.e-apollo.lv =20 www.apollo.lv _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/