From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Tue, 22 Mar 2005 21:41:03 +0000 Subject: Re: [LARTC] HTB statistics Message-Id: <424090EF.4060008@dsl.pipex.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org m.innocenti@cineca.it wrote: > Andy Furniss wrote: > >>> there is something I'm not able to understand about HTB statistics. >>> Why the qdisc show show how many packets are overlimits but in the >>> classes there are always 0 packets overlimits or dropped? >> >> Overlimits is more a kernel thing then usefull as a traffic control >> figure and tc qdisc -s .. shows the root 1: htb but tc -s class doesn't. >> You can see drops with tc -s class - but the default htb queue is too >> long in this test. Add a specific queue to the class 1:10 so you can >> specify length. eg. >> tc qdisc add dev eth0 parent 1:10 handle 10: bfifo limit 64k > > > Thank you for your reply. So there is not a way to know that a specific > class is actually shaping the traffic without attaching a qdisc to each > class? > > Well the fact you are backlogged shows queue length - just default length htb uses in this test is so long it doesn't drop. If you had more classes they would be shorter and drop. Adding a queue just lets you choose length - you won't really see any better stats though you see more with tc -s qdisc. You can also use tc -s class and look at the borrowed/lended counts and see what you can deduce from those. Andy. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc