From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Schulz Date: Fri, 10 Feb 2006 13:45:27 +0000 Subject: [LARTC] htb root don't reach ceil rate? Message-Id: <200602101445.27714.msc@antzsystem.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Hello, i have a htb setup where the root and (nearly) all child classes has a=20 ceil rate with max up from my adsl line. But the root class don't reach=20 the ceil value but some childs are get a huge backlog. My setup: (tc -d class show dev ppp0) [cleaned a bit] ******************************************************** class htb 1:1 root rate 576000bit ceil 576000bit burst 30Kb/8 cburst=20 1739b/8 overhead 14b level 7 class htb 1:10 parent 1:1 leaf 100: prio 0 quantum 7500 rate 58000bit=20 ceil 115000bit burst 1480b/8 cburst 1508b/8 overhead 14b level 0 class htb 1:20 parent 1:1 leaf 200: prio 1 quantum 256 rate 282000bit=20 ceil 576000bit burst 396b/2 cburst 543b/2 overhead 14b level 0 class htb 1:30 parent 1:1 leaf 300: prio 2 quantum 9000 rate 117000bit=20 ceil 576000bit burst 1509b/8 cburst 1739b/8 overhead 14b level 0 class htb 1:40 parent 1:1 leaf 400: prio 3 quantum 9000 rate 58000bit=20 ceil 576000bit burst 1480b/8 cburst 1739b/8 overhead 14b level 0 class htb 1:50 parent 1:1 leaf 500: prio 7 quantum 2000 rate 20000bit=20 ceil 576000bit burst 1461b/8 cburst 1739b/8 overhead 14b level 0 class htb 1:60 parent 1:1 leaf 600: prio 7 quantum 3000 rate 23000bit=20 ceil 576000bit burst 1462b/8 cburst 1739b/8 overhead 14b level 0 class htb 1:70 parent 1:1 leaf 700: prio 7 quantum 1000 rate 14000bit=20 ceil 576000bit burst 1458b/8 cburst 1739b/8 overhead 14b level 0 ******************************************************** Now the classes 1:50 - 1:70 are often get much backlog, but the=20 root-class 1:1 don't reach the ceil rate.=20 statistic looks like: ******************************************************** tc -s -d class show dev ppp0 class htb 1:1 root rate 576000bit ceil 576000bit burst 30Kb/8 mpu 0b=20 overhead 0b cburst 1739b/8 mpu 0b overhead 14b level 7 =A0Sent 1485575598 bytes 3140554 pkts (dropped 0, overlimits 0) =A0rate 480008bit 115pps =A0lended: 1904616 borrowed: 0 giants: 0 =A0tokens: 385702 ctokens: -26458 class htb 1:10 parent 1:1 leaf 100: prio 0 quantum 7500 rate 58000bit=20 ceil 115000bit burst 1480b/8 mpu 0b overhead 0b cburst 1508b/8 mpu 0b=20 overhead 14b level 0 =A0Sent 1186471 bytes 15097 pkts (dropped 0, overlimits 0) =A0rate 152bit =A0lended: 15097 borrowed: 0 giants: 0 =A0tokens: 194207 ctokens: 99943 class htb 1:20 parent 1:1 leaf 200: prio 1 quantum 256 rate 282000bit=20 ceil 576000bit burst 396b/2 mpu 0b overhead 0b cburst 543b/2 mpu 0b=20 overhead 14b level 0 =A0Sent 39131574 bytes 884694 pkts (dropped 0, overlimits 0) =A0rate 13296bit 39pps =A0lended: 884643 borrowed: 51 giants: 0 =A0tokens: 8453 ctokens: 6229 class htb 1:30 parent 1:1 leaf 300: prio 2 quantum 9000 rate 117000bit=20 ceil 576000bit burst 1509b/8 mpu 0b overhead 0b cburst 1739b/8 mpu 0b=20 overhead 14b level 0 =A0Sent 1027775 bytes 5392 pkts (dropped 0, overlimits 0) =A0rate 112bit =A0lended: 5332 borrowed: 60 giants: 0 =A0tokens: 61194 ctokens: 15701 class htb 1:40 parent 1:1 leaf 400: prio 3 quantum 9000 rate 58000bit=20 ceil 576000bit burst 1480b/8 mpu 0b overhead 0b cburst 1739b/8 mpu 0b=20 overhead 14b level 0 =A0Sent 370952 bytes 750 pkts (dropped 0, overlimits 0) =A0lended: 617 borrowed: 133 giants: 0 =A0tokens: 172179 ctokens: 21731 class htb 1:50 parent 1:1 leaf 500: prio 7 quantum 2000 rate 20000bit=20 ceil 576000bit burst 1461b/8 mpu 0b overhead 0b cburst 1739b/8 mpu 0b=20 overhead 14b level 0 =A0Sent 249243996 bytes 608136 pkts (dropped 0, overlimits 0) =A0rate 88512bit 22pps =A0lended: 133117 borrowed: 475019 giants: 0 =A0tokens: -439382 ctokens: 5148 class htb 1:60 parent 1:1 leaf 600: prio 7 quantum 3000 rate 23000bit=20 ceil 576000bit burst 1462b/8 mpu 0b overhead 0b cburst 1739b/8 mpu 0b=20 overhead 14b level 0 =A0Sent 831028684 bytes 1288890 pkts (dropped 62, overlimits 0) =A0rate 278224bit 42pps backlog 38p =A0lended: 154838 borrowed: 1134014 giants: 0 =A0tokens: -65884 ctokens: -21987 class htb 1:70 parent 1:1 leaf 700: prio 7 quantum 1000 rate 14000bit=20 ceil 576000bit burst 1458b/8 mpu 0b overhead 0b cburst 1739b/8 mpu 0b=20 overhead 14b level 0 =A0Sent 363652940 bytes 337633 pkts (dropped 0, overlimits 0) =A0rate 100144bit 11pps =A0lended: 42294 borrowed: 295339 giants: 0 =A0tokens: -421519 ctokens: 2886 ******************************************************** Why the ceil rate can't be reached?=20 rate 480008bit from 576000bit a little bit to huge difference. And=20 besides this i'm using the overhead patch from Jesper Dangaard Brouer=20 (iproute+htb) which takes the ATM+AAL5+SSCS Overhead into account. Can a slightly inaccurate clock has something todo with this? Another question: why "tc show class" prints the overhead and mpu value=20 twice? And why is the first overhead value =3D 0?=20 --=20 Markus Schulz _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc