Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Nick <nick@fluffyspider.com.au>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Counters of CLASSes HTB
Date: Mon, 09 Sep 2002 05:22:10 +0000	[thread overview]
Message-ID: <marc-lartc-103154902000926@msgid-missing> (raw)
In-Reply-To: <marc-lartc-103154866100763@msgid-missing>

Hi,
	Isn't the usual way of collecting stats of this kind, you get the
value when you start monitoring and then the value when you want to stop
and take the difference.  This way if you want measurements of different
periods its only the programs doing the measureing that change not the
device producing the readings, and you can have multiple readers of
different periods.

Just my 2c

Nick

On Mon, 9 Sep 2002, Xor wrote:

> Hello, lartc.
>
> # tc -s -d class show dev imq0
>
> class htb 1:1 root leaf 10: prio 7 quantum 200000 rate 40Mbit ceil 90Mbit burst
> 256Kb/8 mpu 0b cburst 119545b/8 mpu 0b level 0
>  Sent 4599841 bytes 18384 pkts (dropped 0, overlimits 0)
>  rate 6bps
>  lended: 18386 borrowed: 0 giants: 0
>  tokens: 40950 ctokens: 8298
>
> class htb 1:2 root
>       "and so on...."
>
>
> Can I reset "Sent bytes and pkts" into zero(0) without recreate class
> ? I want to collect traffic statistic from classes (very comfortable...)
> by method "every night get this values for traffic logs and resets
> its".
> If not, may by somebody known better method without recreate class ?
> And this post is IDEA to do new feature in HTB ;)
> Example:
>         tc class reset dev imq0 classid 1:1
>
>

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      reply	other threads:[~2002-09-09  5:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-09  5:17 [LARTC] Counters of CLASSes HTB Xor
2002-09-09  5:22 ` Nick [this message]

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=marc-lartc-103154902000926@msgid-missing \
    --to=nick@fluffyspider.com.au \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox