After kenrel upgrade HTB is not accurate 3.11.6.x

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have (from years on few servers) HTB+IMQ traffic shaping.

Last week i've upgraded my linux server to new release (opensuse 10.3 to 13.1)

Kernel  2.6.22.12 to Kernel 3.11.6.4
iptables 1.3.8 to iptables 1.4.19

After upgrade in general everythings works, but shaping is not accurate

Main link is 80Mb/s so limit on HTB script is 80mibit, on old kernel it reaches
over 10240 kbytes and it was fine.

Now on new kernel it reach about 7800kbytes in maximum and cannot go higher.
(workaround for me is set main limit in HTB scripts to 130mibit and it can reach output about 10240kbytes)

What I saw first:

tc -s class show dev imq0
[.....]
class htb 1:13 parent 1:1 prio 1 rate 200000bit ceil 200000bit burst
1492b cburst 1492b
Sent 5746052 bytes 25213 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
lended: 25213 borrowed: 0 giants: 0
tokens: 832500 ctokens: 832500
[...]

rate shows 0bit,
so as I found in maillist archive I set

echo 1 > /sys/module/sch_htb/parameters/htb_rate_est

and restart scripts. Now rate shows values, but shapeing is
still not accurate.

Part of script:

tc qdisc add dev imq0 root handle 1:0 htb default 10
tc qdisc add dev imq1 root handle 2:0 htb default 10

# Main queue
tc class add dev imq0 parent 1:0 classid 1:1 htb rate 500mibit ceil 500mibit
tc class add dev imq1 parent 2:0 classid 2:1 htb rate 500mibit ceil 500mibit

# Internet link
tc class add dev imq0 parent 1:1 classid 1:2 htb rate 80mibit ceil 80mibit
tc class add dev imq1 parent 2:1 classid 2:2 htb rate 80mibit ceil 80mibit

#  default class
tc class add dev imq0 parent 1:1 classid 1:10 htb rate 10kibit ceil 128kibit
tc qdisc add dev imq0 parent 1:10 handle 10:0 sfq perturb 10
tc class add dev imq1 parent 2:1 classid 2:10 htb rate 10kibit ceil 128kibit
tc qdisc add dev imq1 parent 2:10 handle 10:0 sfq perturb 10


# Per IP rules

tc class add dev imq0 parent 1:2 classid 1:1912 htb rate 10kibit ceil 2048kibit prio 2 tc filter add dev imq0 protocol ip parent 1:0 prio 100 u32 match ip dst 10.10.19.12 flowid 1:1912
tc qdisc add dev imq0 parent 1:1912 handle 1912:0 sfq perturb 10

tc class add dev imq1 parent 2:2 classid 2:1912 htb rate 10kibit ceil 1024kibit prio 2 tc filter add dev imq1 protocol ip parent 2:0 prio 100 u32 match ip src 10.10.19.12 flowid 2:1912
tc qdisc add dev imq1 parent 2:1912 handle 1912:0 sfq perturb 10


Pealse help ....

Regards

Radek



---
Ta wiadomość e-mail jest wolna od wirusów i złośliwego oprogramowania, ponieważ ochrona avast! Antivirus jest aktywna.
http://www.avast.com

--
To unsubscribe from this list: send the line "unsubscribe lartc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux