From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarek Poplawski Subject: Re: [PATCH iproute2] Re: HTB accuracy for high speed Date: Tue, 19 May 2009 11:09:54 +0000 Message-ID: <20090519110954.GB5521@ff.dom.local> References: <20090517201528.GA8552@ami.dom.local> <20090518065629.GA6006@ff.dom.local> <298f5c050905180954m791c14eaxe1f4b2c92f952a2f@mail.gmail.com> <20090518175352.GB2755@ami.dom.local> <298f5c050905181123o55c35e74n24cd4ee2c07d8fca@mail.gmail.com> <20090518183221.GC2755@ami.dom.local> <298f5c050905181156w2254fcb4p889d67e26fad6e6@mail.gmail.com> <20090518190541.GA3047@ami.dom.local> <298f5c050905190355r1594b51ex7a7f3d452cc9c059@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Stephen Hemminger , netdev@vger.kernel.org, kaber@trash.net, davem@davemloft.net, devik@cdi.cz, Eric Dumazet To: Antonio Almeida Return-path: Received: from rv-out-0506.google.com ([209.85.198.239]:59461 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752063AbZESLKD (ORCPT ); Tue, 19 May 2009 07:10:03 -0400 Received: by rv-out-0506.google.com with SMTP id f9so1818836rvb.1 for ; Tue, 19 May 2009 04:10:04 -0700 (PDT) Content-Disposition: inline In-Reply-To: <298f5c050905190355r1594b51ex7a7f3d452cc9c059@mail.gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, May 19, 2009 at 11:55:43AM +0100, Antonio Almeida wrote: > Doesn't seem to make any diference seting HTB_HYSTERESIS to 0. Here'r= e > the values using #define HTB_HYSTERESIS 0 OK, so it looks like some hidden bug yet. Many thanks for now, Jarek P. >=20 > 800 bytes: > class htb 1:108 parent 1:10 leaf 108: prio 7 quantum 1514 rate > 555000Kbit ceil 555000Kbit burst 70901b/8 mpu 0b overhead 0b cburst > 70901b/8 mpu 0b overhead 0b level 0 > Sent 9773257752 bytes 12277962 pkt (dropped 6292541, overlimits 0 re= queues 0) > rate 621796Kbit 97644pps backlog 0b 127p requeues 0 > lended: 12277835 borrowed: 0 giants: 0 > tokens: -7 ctokens: -7 >=20 > 850 bytes: > class htb 1:108 parent 1:10 leaf 108: prio 7 quantum 1514 rate > 555000Kbit ceil 555000Kbit burst 70901b/8 mpu 0b overhead 0b cburst > 70901b/8 mpu 0b overhead 0b level 0 > Sent 18225005732 bytes 22409017 pkt (dropped 11937269, overlimits 0 = requeues 0) > rate 600890Kbit 88796pps backlog 0b 43p requeues 0 > lended: 22408974 borrowed: 0 giants: 0 > tokens: -2 ctokens: -2 >=20 > 900 bytes: > class htb 1:108 parent 1:10 leaf 108: prio 7 quantum 1514 rate > 555000Kbit ceil 555000Kbit burst 70901b/8 mpu 0b overhead 0b cburst > 70901b/8 mpu 0b overhead 0b level 0 > Sent 29790867368 bytes 35400708 pkt (dropped 18399726, overlimits 0 = requeues 0) > rate 636361Kbit 88779pps backlog 0b 127p requeues 0 > lended: 35400581 borrowed: 0 giants: 0 > tokens: -2 ctokens: -2 >=20 >=20 > Antonio Almeida >=20 >=20 >=20 > On Mon, May 18, 2009 at 8:05 PM, Jarek Poplawski = wrote: > > On Mon, May 18, 2009 at 07:56:12PM +0100, Antonio Almeida wrote: > >> Precise measurements: > >> > >> 800 bytes: > >> class htb 1:108 parent 1:10 leaf 108: prio 7 quantum 1514 rate > >> 555000Kbit ceil 555000Kbit burst 70901b/8 mpu 0b overhead 0b cburs= t > >> 70901b/8 mpu 0b overhead 0b level 0 > >> =A0Sent 46793626324 bytes 57771194 pkt (dropped 29920019, overlimi= ts 0 requeues 0) > >> =A0rate 621714Kbit 97631pps backlog 0b 126p requeues 0 > >> =A0lended: 57771068 borrowed: 0 giants: 0 > >> =A0tokens: -8 ctokens: -8 > >> > >> > >> 850 bytes: > >> class htb 1:108 parent 1:10 leaf 108: prio 7 quantum 1514 rate > >> 555000Kbit ceil 555000Kbit burst 70901b/8 mpu 0b overhead 0b cburs= t > >> 70901b/8 mpu 0b overhead 0b level 0 > >> =A0Sent 63422144616 bytes 77714246 pkt (dropped 41012275, overlimi= ts 0 requeues 0) > >> =A0rate 600699Kbit 88756pps backlog 0b 127p requeues 0 > >> =A0lended: 77714119 borrowed: 0 giants: 0 > >> =A0tokens: -11 ctokens: -11 > >> > >> > >> 900 bytes: > >> class htb 1:108 parent 1:10 leaf 108: prio 7 quantum 1514 rate > >> 555000Kbit ceil 555000Kbit burst 70901b/8 mpu 0b overhead 0b cburs= t > >> 70901b/8 mpu 0b overhead 0b level 0 > >> =A0Sent 76868403562 bytes 92835297 pkt (dropped 48565133, overlimi= ts 0 requeues 0) > >> =A0rate 636195Kbit 88755pps backlog 0b 126p requeues 0 > >> =A0lended: 92835171 borrowed: 0 giants: 0 > >> =A0tokens: -7 ctokens: -7 > >> > >> > >> If you need more values you're free to ask. > > > > Since you're so kind... :-) There is a line in net/sched/sch_htb.c: > > > > #define HTB_HYSTERESIS 1 =A0 =A0 =A0 =A0/* whether to use mode hyst= eresis for speedup */ > > > > Could you change 1 to 0, and repeat these tests above after recompi= ling? > > > > More thanks, > > Jarek P. > >