From: Alexander Kotelnikov <sacha@myxomop.com>
To: lartc@vger.kernel.org
Subject: [LARTC] HTB and iptables statistics
Date: Wed, 30 Jun 2004 17:13:27 +0000 [thread overview]
Message-ID: <87isd93r60.fsf@vinci.loc> (raw)
Hello.
The problems are:
1. Using HTB I get negative values for tokens and ctokens in tc -s
output, for example:
mich:~# tc -s -d class show dev eth0
class htb 1:11 parent 1:1 prio 1 quantum 1024 rate 8Kbit ceil 23Kbit burst 1609b/8 mpu 0b
cburst 1628b/8 mpu 0b level 0
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0
tokens: 1287999 ctokens: 453286
class htb 1:1 root rate 32Kbit ceil 32Kbit burst 1639b/8 mpu 0b cburst 1639b/8 mpu 0b level 7
Sent 2629492 bytes 29142 pkts (dropped 0, overlimits 0)
rate 1777bps 19pps
lended: 7716 borrowed: 0 giants: 0
tokens: 297600 ctokens: 297600
class htb 1:10 parent 1:1 prio 0 quantum 1024 rate 8Kbit ceil 23Kbit burst 1609b/8 mpu 0b cburst 1628b/8 mpu 0b level 0
Sent 160004 bytes 1252 pkts (dropped 0, overlimits 0)
rate 281bps 2pps
lended: 1252 borrowed: 0 giants: 0
tokens: 1236799 ctokens: 435478
class htb 1:13 parent 1:1 prio 7 quantum 1024 rate 8Kbit ceil 16Kbit burst 1609b/8 mpu 0b cburst 1619b/8 mpu 0b level 0
Sent 1266825 bytes 12307 pkts (dropped 20013, overlimits 0)
rate 1301bps 14pps
lended: 6340 borrowed: 5967 giants: 0
tokens: -492394 ctokens: 581313
class htb 1:12 parent 1:1 prio 2 quantum 1024 rate 8Kbit ceil 23Kbit burst 1609b/8 mpu 0b cburst 1628b/8 mpu 0b level 0
Sent 1202663 bytes 15583 pkts (dropped 0, overlimits 0)
rate 245bps 3pps
lended: 13834 borrowed: 1749 giants: 0
tokens: 1236799 ctokens: 435478
Actually, this values are not described at
http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm#stats but it looks
confusing.
2. When I measure traffic marking any packet in POSTROUTING with
'iptables -A POSTROUTING -t mangle -o eth0 -j MARK --set-mark 12'
and using "bytes" field of 'iptables -vL POSTROUTING -t mangle'
output (I run the latter command once in a minute and divide the
difference by 60) I get traffic speed up to 12kbs, even my
uplink is no more than 32Kbit. How can this be?
Thanks,
--
Alexander Kotelnikov
Saint-Petersburg, Russia
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2004-06-30 17:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-30 17:13 Alexander Kotelnikov [this message]
2004-06-30 17:40 ` [LARTC] HTB and iptables statistics Andreas Klauer
2004-07-01 20:52 ` Stef Coene
2004-07-02 2:17 ` Andreas Klauer
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=87isd93r60.fsf@vinci.loc \
--to=sacha@myxomop.com \
--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.