From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ed Wildgoose Date: Sun, 20 Jun 2004 13:16:05 +0000 Subject: Re: [LARTC] patch: HTB update for ADSL users Message-Id: <40D58E15.2040704@wildgooses.com> List-Id: References: <40D2D5CB.2000804@wildgooses.com> In-Reply-To: <40D2D5CB.2000804@wildgooses.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Jason Boxman wrote: >On Friday 18 June 2004 07:45, Ed Wildgoose wrote: > > >>OK, here it is. Near perfect bandwidth calculation for ADSL users. >>Patch iproute2 with the HTB stuff and then this: >> >> > >Did I miss this the first time around? There's a patch to sch_htb.c as well, >or not? If there is, I haven't applied it which would explain why the >original tc patch did not have any effect for me. > > Nope, it's just a case of patching the TC prog. Make sure it is all up to date with the latest HTB patches first though (not the HTB 2 stuff for example). It works by changing the "rate" calculations which are then later used in the HTB, policer and CBQ modules. I haven't tested the effect in anything other than HTB though, and it seems to be pretty reliable. I *think* it might be a hack because now "rates" are measured correctly, but bytes per bucket are measured in the original units. However, it seems to be very accurate, so I think it is "good enough" Basically, just lie slightly about the rates that the device can achieve for a given packet size... It's actually just a one line patch done in a slightly verbose way (you might need to patch manually if line endings got mangled in my email - easy though) Ed W _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/