From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761706AbYEOV2B (ORCPT ); Thu, 15 May 2008 17:28:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751380AbYEOV1v (ORCPT ); Thu, 15 May 2008 17:27:51 -0400 Received: from ipmail05.adl2.internode.on.net ([203.16.214.145]:53363 "EHLO ipmail05.adl2.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752667AbYEOV1u (ORCPT ); Thu, 15 May 2008 17:27:50 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As0IAFdGLEiWZR7iWmdsb2JhbACSGQEdnTA X-IronPort-AV: E=Sophos;i="4.27,493,1204464600"; d="scan'208";a="115535856" Message-ID: <1A70765F4B30462EB21A3B3A8A442633@uglypunk> From: "Kingsley Foreman" To: "Jarek Poplawski" , "Patrick McHardy" Cc: "Eric Dumazet" , "Andrew Morton" , , References: <20080515091216.GA6550@ff.dom.local> <8ECDBB4EB5394859BFFACAAEE3A6EDB0@uglypunk> <482C6040.9030808@trash.net> <20080515182504.GB2936@ami.dom.local> <482C81CC.7000305@trash.net> <20080515184646.GC2936@ami.dom.local> Subject: Re: NET_SCHED cbq dropping too many packets on a bonding interface Date: Fri, 16 May 2008 06:57:23 +0930 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 12.0.1606 X-MimeOLE: Produced By Microsoft MimeOLE V12.0.1606 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org -------------------------------------------------- From: "Jarek Poplawski" Sent: Friday, May 16, 2008 4:16 AM To: "Patrick McHardy" Cc: "Kingsley Foreman" ; "Eric Dumazet" ; "Andrew Morton" ; ; Subject: Re: NET_SCHED cbq dropping too many packets on a bonding interface > On Thu, May 15, 2008 at 08:32:44PM +0200, Patrick McHardy wrote: >> Jarek Poplawski wrote: >>> On Thu, May 15, 2008 at 06:09:36PM +0200, Patrick McHardy wrote: >>> ... >>>> Do things improve if you set txqueuelen to a larger value >>>> *before* configuring the qdiscs? >>> >>> BTW, I hope it was *before*, but since pfifo_fast_enqueue() uses >>> "qdisc->dev->tx_queue_len" does it really matter? (Until it's >>> before the test of course...) >> >> >> Yes, CBQ uses pfifo, not pfifo_fast. pfifo uses txqueuelen >> to inialize q->limit, but thats whats used during ->enqueue(). > > ...My bad! I missed this and this (only!?) seems to explain this > puzzle. So, I hope it was really because *not before* (and not only > size matters...) > > Thanks, > Jarek P. > running tc qdisc add dev bond0 root pfifo limit 1000 or tc qdisc add dev bond0 root handle 1: cbq bandwidth 2000Mbit avpkt 1000 cell 0 tc qdisc add dev bond0 parent 1: pfifo limit 1000 doesn't appear to be dropping packets.