* [LARTC] how to read the stats
@ 2004-10-21 9:59 Alexander Samad
2004-10-21 19:18 ` Stef Coene
2004-10-21 20:10 ` Alexander Samad
0 siblings, 2 replies; 3+ messages in thread
From: Alexander Samad @ 2004-10-21 9:59 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 2505 bytes --]
Hi
I have setup iproute2 and need a bit of help reading the stats from it
===== output
qdisc htb 1: r2q 10 default 20 direct_packets_stat 0 ver 3.17
Sent 547326809 bytes 1342627 pkts (dropped 9303, overlimits 2817572
requeues 0)
backlog 46p
qdisc sfq 10: limit 128p quantum 1514b flows 128/1024 perturb 10sec
Sent 41874343 bytes 730889 pkts (dropped 0, overlimits 0 requeues 0)
qdisc sfq 20: limit 128p quantum 1514b flows 128/1024 perturb 10sec
Sent 10136008 bytes 69886 pkts (dropped 0, overlimits 0 requeues 0)
qdisc sfq 30: limit 128p quantum 1514b flows 128/1024 perturb 10sec
Sent 495316458 bytes 541852 pkts (dropped 9303, overlimits 0 requeues
0)
backlog 46p
>>>> This I belive is my parent class is has access to the whole 64Kbit
class htb 1:1 root rate 64Kbit ceil 64Kbit burst 80b/8 mpu 0b overhead
0b cburst 1507b/8 mpu 0b overhead 0b level 7
Sent 542500093 bytes 1342581 pkts (dropped 0, overlimits 0 requeues 0)
rate 7201bit 20pps
lended: 322826 borrowed: 0 giants: 0
tokens: -228224 ctokens: -45568
class htb 1:10 parent 1:1 leaf 10: prio 1 quantum 8 rate 57Kbit ceil
64Kbit burst 80b/8 mpu 0b overhead 0b cburst 1507b/8 mpu 0b overhead 0b
level 0
Sent 41874343 bytes 730889 pkts (dropped 0, overlimits 0 requeues 0)
rate 681bit 12pps
lended: 730878 borrowed: 11 giants: 0
tokens: 2966 ctokens: 185856
class htb 1:20 parent 1:1 leaf 20: prio 2 quantum 8 rate 32Kbit ceil
57Kbit burst 80b/8 mpu 0b overhead 0b cburst 71b/8 mpu 0b overhead 0b
level 0
Sent 10136008 bytes 69886 pkts (dropped 0, overlimits 0 requeues 0)
rate 302bit 1pps
lended: 68718 borrowed: 1168 giants: 0
tokens: -149248 ctokens: -73584
>>>> this is the low bandwidth class (bittorrent etc)
class htb 1:30 parent 1:1 leaf 30: prio 3 quantum 8 rate 25Kbit ceil
51Kbit burst 63b/8 mpu 0b overhead 0b cburst 47b/8 mpu 0b overhead 0b
level 0
Sent 495316458 bytes 541852 pkts (dropped 9303, overlimits 0 requeues
0)
>>> THIS is the line I have problems understanding
>>> I read it as 6190bit/sec which seems to be way lower than the 25Kbit
>>> set for the rate and much lower than the ceil
>>> so why do I have a backlog
rate 6190bit 7pps backlog 46p
lended: 220159 borrowed: 321647 giants: 0
tokens: -493609 ctokens: -242500
Having said all that it does seem to be limiting to 25Kbit, with burst
upto 51 !
This is on a patched debian 2.6.8 kernel (pom-ng patch'ed) and iproute2-ss040831
Thanks
Alex
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] how to read the stats
2004-10-21 9:59 [LARTC] how to read the stats Alexander Samad
@ 2004-10-21 19:18 ` Stef Coene
2004-10-21 20:10 ` Alexander Samad
1 sibling, 0 replies; 3+ messages in thread
From: Stef Coene @ 2004-10-21 19:18 UTC (permalink / raw)
To: lartc
On Thursday 21 October 2004 11:59, Alexander Samad wrote:
> class htb 1:30 parent 1:1 leaf 30: prio 3 quantum 8 rate 25Kbit ceil
> 51Kbit burst 63b/8 mpu 0b overhead 0b cburst 47b/8 mpu 0b overhead 0b
> level 0
> Sent 495316458 bytes 541852 pkts (dropped 9303, overlimits 0 requeues
> 0)
>
> >>> THIS is the line I have problems understanding
> >>> I read it as 6190bit/sec which seems to be way lower than the 25Kbit
> >>> set for the rate and much lower than the ceil
> >>> so why do I have a backlog
>
> rate 6190bit 7pps backlog 46p
> lended: 220159 borrowed: 321647 giants: 0
> tokens: -493609 ctokens: -242500
>
>
> Having said all that it does seem to be limiting to 25Kbit, with burst
> upto 51 !
Can you post the executed tc commands? Much easier for us to see what you
did.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] how to read the stats
2004-10-21 9:59 [LARTC] how to read the stats Alexander Samad
2004-10-21 19:18 ` Stef Coene
@ 2004-10-21 20:10 ` Alexander Samad
1 sibling, 0 replies; 3+ messages in thread
From: Alexander Samad @ 2004-10-21 20:10 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 4370 bytes --]
Hi
okay
#!/bin/bash
#
# Script to test TC
IF=${IF:-'eth0'}
SPEED=64
#
# 327b for 256 kbits (1K)
# 131K burst for 100Mb/s
# 12K burst for 10Mb/s
# pipe size /100 /8
BURST=163
BURST=$[$SPEED*1024/100/8]
MTU=1600
MTU=1500
TC='/sbin/tc'
TC='/usr/local/bin/tc'
tc_start2(){
# install root HTB, point default traffic to 1:20
tc qdisc add dev $IF root handle 1: htb default 20
# shape everything at $SPEED speed - this prevents huge queues in your
# DSL modem which destroy latency:
tc class add dev $IF parent 1: classid 1:1 htb rate ${SPEED}kbit ceil ${SPEED}kbit burst ${BURST}b mtu $MTU
# high prio class 1:10:
tc class add dev $IF parent 1:1 classid 1:10 htb rate $[9*${SPEED}/10]kbit ceil ${SPEED}kbit burst ${BURST}b prio 1 mtu $MTU quantum 8
# bulk & default class 1:20 - gets slightly less traffic,
# and a lower priority:
tc class add dev $IF parent 1:1 classid 1:20 htb rate $[5*${SPEED}/10]kbit ceil $[9*${SPEED}/10]kbit burst $[10*${BURST}/10]b cburst $[9*${BURST}/10]b prio 2 mtu $MTU quantum 8
# for BTTorrent
tc class add dev $IF parent 1:1 classid 1:30 htb rate $[4*${SPEED}/10]kbit ceil $[8*${SPEED}/10]kbit burst $[8*${BURST}/10]b cburst $[6*${BURST}/10]b prio 3 mtu $MTU quantum 8
# Filters
# both get Stochastic Fairness:
tc qdisc add dev $IF parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev $IF parent 1:20 handle 20: sfq perturb 10
tc qdisc add dev $IF parent 1:30 handle 30: sfq perturb 10
# TOS Minimum Delay (ssh, NOT scp) in 1:10:
tc filter add dev $IF parent 1: protocol ip prio 10 u32 \
match ip tos 0x10 0xff \
flowid 1:10
# ICMP (ip protocol 1) in the interactive class 1:10 so we
# can do measurements & impress our friends:
tc filter add dev $IF parent 1: protocol ip prio 10 u32 \
match ip protocol 1 0xff \
flowid 1:10
# To speed up downloads while an upload is going on, put ACK packets in
# the interactive class:
tc filter add dev $IF parent 1: protocol ip pref 1 u32 \
match ip protocol 6 0xff \
match u8 0x05 0x0f at 0 \
match u16 0x0000 0xffc0 at 2 \
match u8 0x10 0xff at 33 \
flowid 1:10
# limit BTTorent to flow :30
# want to match all packets that have a source of 6880-6888
# as I can only match/rate limit out going
tc filter add dev $IF parent 1: protocol ip prio 10 u32 \
match ip protocol 6 0xff \
match ip sport 6880 0xfff0 \
flowid 1:30
# match u16 0x1ae0 0xfff0 at 20 \
# Match firewall marks
tc filter add dev $IF parent 1: protocol ip pref 5 handle 4 fw flowid 1:30
# # For pings !
# tc filter add dev eth0 parent 1: protocol ip prio 100 u32 match ip protocol 1 0xFF flowid 1:10
# rest is 'non-interactive' ie 'bulk' and ends up in 1:20
}
tc_start(){
tc_start2
}
tc_stop(){
$TC qdisc del dev $IF root
}
tc_show(){
$TC -s -d qdisc show dev $IF
$TC -s -d class show dev $IF
$TC -s -d filter show dev $IF
}
case "$1" in
start)
tc_start
;;
stop)
tc_stop
;;
restart)
tc_stop
tc_start
;;
show)
tc_show
;;
*)
tc_show
#exit 1
;;
esac
exit 0
Thanks
On Thu, Oct 21, 2004 at 09:18:29PM +0200, Stef Coene wrote:
> On Thursday 21 October 2004 11:59, Alexander Samad wrote:
> > class htb 1:30 parent 1:1 leaf 30: prio 3 quantum 8 rate 25Kbit ceil
> > 51Kbit burst 63b/8 mpu 0b overhead 0b cburst 47b/8 mpu 0b overhead 0b
> > level 0
> > Sent 495316458 bytes 541852 pkts (dropped 9303, overlimits 0 requeues
> > 0)
> >
> > >>> THIS is the line I have problems understanding
> > >>> I read it as 6190bit/sec which seems to be way lower than the 25Kbit
> > >>> set for the rate and much lower than the ceil
> > >>> so why do I have a backlog
> >
> > rate 6190bit 7pps backlog 46p
> > lended: 220159 borrowed: 321647 giants: 0
> > tokens: -493609 ctokens: -242500
> >
> >
> > Having said all that it does seem to be limiting to 25Kbit, with burst
> > upto 51 !
> Can you post the executed tc commands? Much easier for us to see what you
> did.
>
> Stef
>
> --
> stef.coene@docum.org
> ?"Using Linux as bandwidth manager"
> ? ? ?http://www.docum.org/
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-21 20:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-21 9:59 [LARTC] how to read the stats Alexander Samad
2004-10-21 19:18 ` Stef Coene
2004-10-21 20:10 ` Alexander Samad
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.