From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: IMQ bug: kernel reboot immediately Date: Fri, 24 Apr 2009 17:29:05 +0200 Message-ID: <49F1DAC1.5030809@trash.net> References: <20090423084323.GA5696@ff.dom.local> <49F1D16A.8050003@trash.net> <200904241755.09198.denys@visp.net.lb> <49F1D88F.500@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: Denys Fedoryschenko , Jan Engelhardt , Jarek Poplawski , "Y. D." , netdev , netfilter-devel To: Salatiel Filho Return-path: Received: from stinky.trash.net ([213.144.137.162]:47632 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750898AbZDXP3L (ORCPT ); Fri, 24 Apr 2009 11:29:11 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Salatiel Filho wrote: > On Fri, Apr 24, 2009 at 12:19, Patrick McHardy wrote: >> Salatiel Filho wrote: >>> I am just curious , is there a qdisc in mainline that behaves similar >>> to wrr [weight round robin] ? >>> http://www.zz9.dk/wrr >> DRR. But it can't do those strange load-balancing hacks. >> > > what would it be those strange ugly hacks ? :) Look at the code. At least they were there last time I had a look. > Any good place where i can find DRR documentation/examples ? No, but I can give you an example: tc qdisc add dev parent handle drr tc class add dev parent classid drr repeat class add as often as you need. The default quantum per class is the MTU, including link layer headers. You can manually change that by specifying the "quantum" parameter for classes. As for the flow classifier: tc filter add dev protocol all pref 1 parent \ flow hash keys key1,key2,... divisor The DRR classids need to be consequitive for this to work.