All of lore.kernel.org
 help / color / mirror / Atom feed
From: "m.innocenti@cineca.it" <m.innocenti@cineca.it>
To: lartc@vger.kernel.org
Subject: [LARTC] HTB statistics
Date: Fri, 11 Mar 2005 08:18:11 +0000	[thread overview]
Message-ID: <42315444.4020504@cineca.it> (raw)
In-Reply-To: <marc-lartc-105029768911081@msgid-missing>

Hi,
     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?

I try to expain with a simple example. I create a qdisc htb with only a 
class and then i do a lot of traffic.
pc-innocenti:~# tc qdisc add dev eth0 parent root handle 1: htb default 10
pc-innocenti:~# tc class add dev eth0 parent 1:1 classid 1:10 htb rate
1kbit cei l 1kbit quantum 2000

The qdisc show that there are packets overlimits:
pc-innocenti:~# tc -s -d qdisc show
qdisc htb 1: dev eth0 r2q 10 default 10 direct_packets_stat 1145 ver 3.17
  Sent 339419 bytes 1533 pkts (dropped 0, overlimits 402)
  backlog 370p

The class instead always show 0 packet overlimits or dropped.
pc-innocenti:~# tc -s -d class show dev eth0
class htb 1:10 root prio 0 quantum 2000 rate 1000bit ceil 1000bit burst
1600b/8 mpu 0b overhead 0b cburst 1600b/8 mpu 0b overhead 0b level 0
  Sent 66307 bytes 480 pkts (dropped 0, overlimits 0)
  rate 912bit backlog 448p
  lended: 32 borrowed: 0 giants: 0
  tokens: -13238252 ctokens: -13238252


-- 
**********************************************************************
Marco Innocenti              Gruppo Infrastruttura e Sicurezza
CINECA                       phone:+39 0516171553 / fax:+39 0516132198
Via Magnanelli 6/3           e-mail: innocenti@cineca.it
40033 Casalecchio di Reno    Bologna (Italia)
**********************************************************************


-- 
**********************************************************************
Marco Innocenti              Gruppo Infrastruttura e Sicurezza
CINECA                       phone:+39 0516171553 / fax:+39 0516132198
Via Magnanelli 6/3           e-mail: innocenti@cineca.it
40033 Casalecchio di Reno    Bologna (Italia)
**********************************************************************
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

  parent reply	other threads:[~2005-03-11  8:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-14  5:31 [LARTC] HTB statistics maitri
2003-04-14  8:48 ` Stef Coene
2005-03-11  8:18 ` m.innocenti [this message]
2005-03-19 11:47 ` Andy Furniss
2005-03-21  8:24 ` m.innocenti
2005-03-22  1:34 ` rsenykoff
2005-03-22 21:41 ` Andy Furniss
2007-10-01 14:30 ` [LARTC] htb statistics Gerrit Brehmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42315444.4020504@cineca.it \
    --to=m.innocenti@cineca.it \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.