Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755599Ab1CBHIA (ORCPT ); Wed, 2 Mar 2011 02:08:00 -0500 Received: from mail.vyatta.com ([76.74.103.46]:51156 "EHLO mail.vyatta.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751853Ab1CBHH6 (ORCPT ); Wed, 2 Mar 2011 02:07:58 -0500 Date: Tue, 1 Mar 2011 23:07:54 -0800 From: Stephen Hemminger To: Mikael Abrahamsson Cc: John Heffner , Bill Sommerfeld , Hagen Paul Pfeifer , Albert Cahalan , Jussi Kivilinna , Eric Dumazet , linux-kernel , netdev@vger.kernel.org Subject: Re: txqueuelen has wrong units; should be time Message-ID: <20110301230754.5ef4ab35@nehalam> In-Reply-To: References: <1298793252.8726.45.camel@edumazet-laptop> <20110227125540.40754c5y78j9u2m8@hayate.sektori.org> <20110301222531.24832a93@nehalam> Organization: Vyatta X-Mailer: Claws Mail 3.7.6 (GTK+ 2.22.0; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2866 Lines: 71 On Wed, 2 Mar 2011 07:41:30 +0100 (CET) Mikael Abrahamsson wrote: > On Tue, 1 Mar 2011, Stephen Hemminger wrote: > > > It is possible to build an equivalent to WRED out existing GRED queuing > > discipline but it does require a lot of tc knowledge to get right. > > To me who has worked with cisco routers for 10+ years and who is used to > the different variants Cisco use, tc is just weird. It must come from a > completely different school of thinking compared to what router people are > used to, because I have tried and failed twice to do anything sensible > with it. Vyatta has scripting that handles all that: vyatta@napa:~$ configure [edit] yatta@napa# set traffic-policy random-detect MyWFQ bandwidth 1gbps [edit] vyatta@napa# set interfaces ethernet eth0 traffic-policy out MyWFQ [edit] vyatta@napa# commit [edit] vyatta@napa# exit vyatta@napa:~$ show queueing ethernet eth0 eth0 Queueing: Class Policy Sent Rate Dropped Overlimit Backlog root weighted-random 16550 0 0 0 vyatta@napa:~$ /sbin/tc qdisc show dev eth0 qdisc dsmark 1: root refcnt 2 indices 0x0008 set_tc_index qdisc gred 2: parent 1: DP:0 (prio 8) Average Queue 0b Measured Queue 0b Packet drops: 0 (forced 0 early 0) Packet totals: 82 (bytes 9540) ewma 3 Plog 17 Scell_log 3 DP:1 (prio 7) Average Queue 0b Measured Queue 0b Packet drops: 0 (forced 0 early 0) Packet totals: 0 (bytes 0) ewma 2 Plog 17 Scell_log 2 DP:2 (prio 6) Average Queue 0b Measured Queue 0b Packet drops: 0 (forced 0 early 0) Packet totals: 0 (bytes 0) ewma 2 Plog 17 Scell_log 2 DP:3 (prio 5) Average Queue 0b Measured Queue 0b Packet drops: 0 (forced 0 early 0) Packet totals: 0 (bytes 0) ewma 2 Plog 16 Scell_log 2 DP:4 (prio 4) Average Queue 0b Measured Queue 0b Packet drops: 0 (forced 0 early 0) Packet totals: 0 (bytes 0) ewma 2 Plog 16 Scell_log 2 DP:5 (prio 3) Average Queue 0b Measured Queue 0b Packet drops: 0 (forced 0 early 0) Packet totals: 0 (bytes 0) ewma 2 Plog 16 Scell_log 2 DP:6 (prio 2) Average Queue 0b Measured Queue 0b Packet drops: 0 (forced 0 early 0) Packet totals: 0 (bytes 0) ewma 2 Plog 15 Scell_log 2 DP:7 (prio 1) Average Queue 0b Measured Queue 0b Packet drops: 0 (forced 0 early 0) Packet totals: 0 (bytes 0) ewma 1 Plog 15 Scell_log 1 QoS on Cisco has different/other problems mostly because various groups tried to fix the QoS problem over time and never got it quite right. Also WRED is not default on faster links because it can't be done fast enough. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/