htb, class, prio
Hello!
Seems that whatever I set for prio for a htb class it is always set to 3. Example script:
ifconfig dummy1 up
ifconfig dummy1 200.200.200.200 netmask 255.255.255.248
tc qdisc del dev dummy1 root
tc qdisc add dev dummy1 root handle 2: htb
tc class add dev dummy1 parent 2: classid 2:1 \
htb prio 7 rate 1000bps ceil 2000bps
^^^^^
Dump:
# tc -s -d -r class show dev dummy1
class htb 2:1 root prio 3 rate 1000bps ceil 2000bps burst 1609b/8 mpu 0b
^^^^^
cburst 1619b/8 mpu 0b quantum 100 level 0 buffer [00142000] cbuffer [000a2000]
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0 injects: 0
tokens: 1318912 ctokens: 663552Thanks!
---
Catalin(ux) BOIE
[email protected]
openh323://dino.rdsbv.ro
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 3 lines · Catalin BOIE
Hello!
Seems that whatever I set for prio for a htb class it is always set to 3.
Prio is a number between 0 and 3. Prio's > 3 are set to 3.
Stef
Quoted 33 lines
Example script:
ifconfig dummy1 up
ifconfig dummy1 200.200.200.200 netmask 255.255.255.248tc qdisc del dev dummy1 root
tc qdisc add dev dummy1 root handle 2: htb
tc class add dev dummy1 parent 2: classid 2:1 \
htb prio 7 rate 1000bps ceil 2000bps
^^^^^Dump:
# tc -s -d -r class show dev dummy1 class htb 2:1 root prio 3 rate 1000bps ceil 2000bps burst 1609b/8 mpu 0b ^^^^^ cburst 1619b/8 mpu 0b quantum 100 level 0 buffer [00142000] cbuffer [000a2000] Sent 0 bytes 0 pkts (dropped 0, overlimits 0) lended: 0 borrowed: 0 giants: 0 injects: 0 tokens: 1318912 ctokens: 663552Thanks!
---
Catalin(ux) BOIE
[email protected]
openh323://dino.rdsbv.ro_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Signature · 7 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
In the latest HTB the prio number can be increased to 8 or more without sacrifying performance. Probably I will make both depth & prios 8 in default configuration ..
devik
Quoted 44 lines · Stef Coene
Quoted 3 lines · Catalin BOIE
Hello!
Seems that whatever I set for prio for a htb class it is always set to 3.
Prio is a number between 0 and 3. Prio's > 3 are set to 3.
Stef
Quoted 25 lines
Example script:
ifconfig dummy1 up
ifconfig dummy1 200.200.200.200 netmask 255.255.255.248tc qdisc del dev dummy1 root
tc qdisc add dev dummy1 root handle 2: htb
tc class add dev dummy1 parent 2: classid 2:1 \
htb prio 7 rate 1000bps ceil 2000bps
^^^^^Dump:
# tc -s -d -r class show dev dummy1 class htb 2:1 root prio 3 rate 1000bps ceil 2000bps burst 1609b/8 mpu 0b ^^^^^ cburst 1619b/8 mpu 0b quantum 100 level 0 buffer [00142000] cbuffer [000a2000] Sent 0 bytes 0 pkts (dropped 0, overlimits 0) lended: 0 borrowed: 0 giants: 0 injects: 0 tokens: 1318912 ctokens: 663552Thanks!
Quoted 8 lines
---
Catalin(ux) BOIE
[email protected]
openh323://dino.rdsbv.ro_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/--
Quoted 9 lines
[email protected]
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
You can use up to 32 prios (bitmask limitation). But delay and cpu load increases with prio
count as it is searched linerly often.
devik
Quoted 9 lines · Kurt Wagner
Hi Martin,
Quoted 2 lines · Martin Devera
In the latest HTB the prio number can be increased to 8 or more without sacrifying performance.
Hmm, any easy way to change this to more than 8 priorities? I have kind of a obscure setup here, and would need about 20 prios.
Quoted 10 lines
Performace problems should only occur if the 20 bands are active at the same time, right (I think you talk about latency issues, not implementation limitations?)? Would not be the case in my setup.
regards,
Kurt
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/