From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stef Coene Date: Sun, 16 Nov 2003 11:09:27 +0000 Subject: Re: [LARTC] htb with negative number of tokens Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org On Sunday 16 November 2003 01:49, Jacek Bilski wrote: > Hello! > > I run my script, then check the results. Pieces of output: > > > > 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 > > > > 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 sen= d=20 pckets as long as they have tokens. Even if the parent has no tokens left,= =20 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=CEilPkbit 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 --=20 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/