From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarek Poplawski Subject: Re: NET_SCHED cbq dropping too many packets on a bonding interface Date: Thu, 15 May 2008 20:46:46 +0200 Message-ID: <20080515184646.GC2936@ami.dom.local> References: <20080515091216.GA6550@ff.dom.local> <8ECDBB4EB5394859BFFACAAEE3A6EDB0@uglypunk> <482C6040.9030808@trash.net> <20080515182504.GB2936@ami.dom.local> <482C81CC.7000305@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Kingsley Foreman , Eric Dumazet , Andrew Morton , linux-kernel@vger.kernel.org, netdev@vger.kernel.org To: Patrick McHardy Return-path: Received: from nf-out-0910.google.com ([64.233.182.191]:65048 "EHLO nf-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752547AbYEOSr5 (ORCPT ); Thu, 15 May 2008 14:47:57 -0400 Received: by nf-out-0910.google.com with SMTP id d3so231468nfc.21 for ; Thu, 15 May 2008 11:47:56 -0700 (PDT) Content-Disposition: inline In-Reply-To: <482C81CC.7000305@trash.net> Sender: netdev-owner@vger.kernel.org List-ID: 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.