From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] htb with negative number of tokens
Date: Sun, 16 Nov 2003 11:09:27 +0000 [thread overview]
Message-ID: <marc-lartc-106898220106917@msgid-missing> (raw)
In-Reply-To: <marc-lartc-106894396020261@msgid-missing>
On Sunday 16 November 2003 01:49, Jacek Bilski wrote:
> Hello!
>
> I run my script, then check the results. Pieces of output:
>
> <result>
>
> root@arthur:/etc/init.d# tc -s -d class show dev imq0
> class htb 1:1010 parent 1:1 rate 7Kbit ceil 50Kbit burst 999b/8 mpu 0b
> overhead 0b cburst 999b/8 mpu 0b overhead 0b level 6
> Sent 13646 bytes 42 pkts (dropped 0, overlimits 0)
> rate 106bps
> lended: 0 borrowed: 22 giants: 0
> tokens: -155926 ctokens: -95231
>
> class htb 1:1023 parent 1:1020 leaf 1023: prio 3 quantum 1000 rate 2Kbit
> ceil 50Kbit burst 999b/8 mpu 0b overhead 0b cburst 999b/8 mpu 0b
> overhead 0b level
> 0
> Sent 315580 bytes 964 pkts (dropped 0, overlimits 0)
> rate 5485bps 16pps backlog 44p
> lended: 60 borrowed: 860 giants: 0
> tokens: -3424256 ctokens: -62464
>
> class htb 1:1032 parent 1:1030 leaf 1032: prio 2 quantum 1000 rate 3Kbit
> ceil 50Kbit burst 999b/8 mpu 0b overhead 0b cburst 999b/8 mpu 0b
> overhead 0b level
> 0
> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
> lended: 0 borrowed: 0 giants: 0
> tokens: 2133332 ctokens: 128000
>
> class htb 1:1045 parent 1:1040 leaf 1045: prio 5 quantum 1000 rate 1Kbit
> ceil 50Kbit burst 999b/8 mpu 0b overhead 0b cburst 999b/8 mpu 0b
> overhead 0b level
> 0
> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
> lended: 0 borrowed: 0 giants: 0
> tokens: 6400000 ctokens: 128000
>
> class htb 1:1054 parent 1:1050 leaf 1054: prio 4 quantum 1000 rate 1Kbit
> ceil 50Kbit burst 999b/8 mpu 0b overhead 0b cburst 999b/8 mpu 0b
> overhead 0b level
> 0
> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
> lended: 0 borrowed: 0 giants: 0
> tokens: 6400000 ctokens: 128000
>
> class htb 1:1 root rate 50Kbit ceil 50Kbit burst 999b/8 mpu 0b overhead
> 0b cburst 999b/8 mpu 0b overhead 0b level 7
> Sent 322094 bytes 1014 pkts (dropped 0, overlimits 0)
> rate 5593bps 16pps
> lended: 803 borrowed: 0 giants: 0
> tokens: -186353 ctokens: -186353
>
> </result>
>
> 1. Why do I have negative number of tokens in some classes, especially
> 1:1 ? I don't think it should be possible.
Why not? Class 1:1 has child classes. These child classes are able to send
pckets as long as they have tokens. Even if the parent has no tokens left,
they still can send packets as long as they have tokens. So they can drag
the parent tokens negative.
But I don't understand why class 1:1023 has negative tokens? Is this is a
leaf class ?
> 2. Probably connected to question 1, having rateÎilPkbit why can I
> still download stuff at rate ~10Kbyte/s?
Normally you shouldn't.
> (If output isn't enough I can send my script which is quite big,
> ~14Kbytes)
Can you send us only the tc class/qdisc commands ?
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2003-11-16 11:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-16 0:49 [LARTC] htb with negative number of tokens Jacek Bilski
2003-11-16 11:09 ` Stef Coene [this message]
2003-11-16 11:33 ` Jacek Bilski
2003-11-16 17:27 ` Stef Coene
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-106898220106917@msgid-missing \
--to=stef.coene@docum.org \
--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.