borrowing only from parent
Hello,
for example I have a parent class 1:1 defined as:
tc qdisc add dev eth0 root handle 1: htb default 12
# shape at 15 kbit almost no borrowing and no bursts tc class add dev eth0 parent 1: classid 1:1 htb rate 15kbit ceil 1kbit burst 1b cburst 1b
# and sibling classes # shape at 5kbit and borrow up to 5 kbit no burst tc class add dev eth0 parent 1:1 classid 1:10 htb rate 5kbit ceil 5kbit burst 1b cburst 1b # shape at 10kbit and borrow up to 10 kbit no burst tc class add dev eth0 parent 1:1 classid 1:11 htb rate 10kbit ceil 10kbps burst 1b cburst 1b
I want 1:10 and 1:11 to be able to borrow only from 1:1 so that any one of them ( 1:10 or 1:10) go as high as 15kbit ( up to the max that 1:1 allows). But from testing that is not the situation. 1:11 goes at ~ 20kbit and 1:10 at ~ 10kbit when going at full speed at the same time. it looks like that they borrow not from 1:1. stats show from "tc -s -d class show" that they are not borrowing only lending. Are they cross lending or smthn?
Bottom line is I want to have a parent class with siblings that can borrow from each other but not more then the rate of the parent.
Am I doing somthing wrong?
Thanks,
Anton
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 10 lines · Anton Yurchenko
Hello,
for example I have a parent class 1:1 defined as:
tc qdisc add dev eth0 root handle 1: htb default 12
# shape at 15 kbit almost no borrowing and no bursts tc class add dev eth0 parent 1: classid 1:1 htb rate 15kbit ceil 1kbit burst 1b cburst 1b
Quoted 6 lines
# and sibling classes # shape at 5kbit and borrow up to 5 kbit no burst tc class add dev eth0 parent 1:1 classid 1:10 htb rate 5kbit ceil 5kbit burst 1b cburst 1b # shape at 10kbit and borrow up to 10 kbit no burst tc class add dev eth0 parent 1:1 classid 1:11 htb rate 10kbit ceil 10kbps burst 1b cburst 1b
Try ceil 15kbit for the class 1:10 and 1:11.
And 15kbit is a very low speed to shape at. Why are you doing so ? And you also typed kbps, but kbps = kilobyte/s = 8 kilobit/s = 8 kbit.
Stef
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/
If you read the manual, the algorithm will not work correctly with {,c}burst < MTU ...
devik
Quoted 9 lines · Anton Yurchenko
Hello,
for example I have a parent class 1:1 defined as:
tc qdisc add dev eth0 root handle 1: htb default 12
# shape at 15 kbit almost no borrowing and no bursts tc class add dev eth0 parent 1: classid 1:1 htb rate 15kbit ceil 1kbit burst 1b cburst 1b
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/