From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: HTB accuracy for high speed Date: Thu, 21 May 2009 11:07:24 +0200 Message-ID: <4A1519CC.9030002@cosmosbay.com> References: <298f5c050905180736m303f0c79ha30d3f791222fa1b@mail.gmail.com> <1242688479.9558.60.camel@hazard2.francoudi.com> <1242689267.11814.1.camel@hazard2.francoudi.com> <20090519110311.GA5521@ff.dom.local> <20090519140416.GA21270@francoudi.com> <20090519201027.GA4751@ami.dom.local> <1242857245.13519.17.camel@hazard2.francoudi.com> <4A148838.8010809@cosmosbay.com> <20090521072050.GA2892@ami.dom.local> <20090521074400.GA19113@francoudi.com> <20090521082805.GB2892@ami.dom.local> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Vladimir Ivashchenko , netdev@vger.kernel.org, kaber@trash.net, davem@davemloft.net, devik@cdi.cz, Antonio Almeida , Corey Hickey To: Jarek Poplawski Return-path: Received: from gw1.cosmosbay.com ([212.99.114.194]:57005 "EHLO gw1.cosmosbay.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752959AbZEUJKq convert rfc822-to-8bit (ORCPT ); Thu, 21 May 2009 05:10:46 -0400 In-Reply-To: <20090521082805.GB2892@ami.dom.local> Sender: netdev-owner@vger.kernel.org List-ID: Jarek Poplawski a =E9crit : > On Thu, May 21, 2009 at 10:44:00AM +0300, Vladimir Ivashchenko wrote: >>> I don't know why more of esfq wasn't merged, anyway similar >>> functionality could be achieved in current kernels with sch_drr + >>> cls_flow, alas not enough documented. Here is some hint: >>> http://markmail.org/message/h24627xkrxyqxn4k >> Can I balance only by destination IP using this approach?=20 >> Normal IP flow-based balancing is not good for me, I need=20 >> to ensure equality between destination hosts. >=20 > Yes, you need to use flow "dst" key, I guess. (tc filter add flow hel= p) >=20 > Jarek P. >=20 >>> PS: I guess, you wasn't very consistent if your main problem was >>> exceeding or not reaching htb rate, and there is quite a difference= =2E >> Yes indeed :( >=20 > Generally, the most common reasons are: > - too short (or zero) tx queue length or/plus some disturbances in > maintaining the flow - for not reaching the rate > - gso/tso or other non standard packets sizes - for exceeding the > rate. Could we detect this at runtime and emit a warning (once) ? Or should we assume guys using this stuff should be smart enough ? I confess I made this error once and this was not so easy to spot... =09