I'm setting up some htb packet queues like so:
tc qdisc add dev eth0 root handle 10: htb
tc qdisc add dev eth1 root handle 10: htb
tc class add dev eth0 parent 10: classid 10:1012 htb rate 750kbps ceil 750kbps
tc filter add dev eth0 parent 10: protocol ip prio 10 handle 1: cgroup
tc class add dev eth1 parent 10: classid 10:1012 htb rate 750kbps ceil 750kbps
tc filter add dev eth1 parent 10: protocol ip prio 10 handle 1: cgroup
And am testing it by downloading a 10MB file using wget. I have verified that the packets have the correct classid on them.
When I do the download without these tc rules, I get an average download speed of ~ 9MB/s
When I apply the limit, my speed drops, but it drops to the wrong number. It tops off consistently at 3.7MB/s.
I have no idea why my limit is going over by so much especially considering I have a ceil set. I did notice that the download appears to start limited at 750kbps, but then starts incrementily gaining speed.
Any one have any ideas what I'm doing wrong?
Cheers!