<meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8"><title></title><meta name="GENERATOR" content="OpenOffice.org 2.0 (Linux)"><meta name="AUTHOR" content="eterziev"><meta name="CREATED" content="20060310;9553600">
<meta name="CHANGED" content="16010101;0">
        
        
        
        
        
        <style>
        <!--
                @page { size: 8.5in 11in; margin: 0.79in }
                P { margin-bottom: 0.08in }
        -->
        </style>
<p style="margin-bottom: 0in;">Hi All,<br>Please to advice me. I become crazy
because i cannot find where can be problem. Obviously i miss
something, but what ?<br>I have Linux router for traffic
control / ~400 users , 100 mbit bandwidth / . evereting was great
until i try to implement IMQ for ingress shaping. Problem that i
have is when i start follow iptables rule<br>
</p>
<p style="margin-bottom: 0in;"> iptables -t mangle -A PREROUTING -i
eth1 -j IMQ --todev 0<br></p>
<p style="margin-bottom: 0in;">without any TC started all traffic
slow down and Linux increase system load average.
</p>
<p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;"> internet
LAN<br>------------------| eth0 router eth1
|---------------</p><br>
<p style="margin-bottom: 0in;">CPU: AMD Athlon(tm) 64 X2 Dual Core
Processor 3800+<br>MemTotal: 1036332 k<br>Linux portal1 <a href="http://2.6.15.4">2.6.15.4</a> #1 SMP Sun Feb
12 13:02:52 EET 2006 i686 GNU/Linux<br>IMQ patch: linux-2.6.14-imq6.diff</p>
<p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;">/// traffic control rules for download
and upload single IP</p>
<p style="margin-bottom: 0in;">.............</p>
<p style="margin-bottom: 0in;">DEV=eth1<br>DEV_UP=imq0</p>
<p style="margin-bottom: 0in;">.................</p>
<p style="margin-bottom: 0in;">.................<br>
</p>
<p style="margin-bottom: 0in;">usleep 10<br>$TC class add dev $DEV parent 2:3
classid 2:b382 htb rate 2048kbit ceil 2048kbit prio 2 quantum 48000<br>$TC class add dev $DEV parent 3:1
classid 3:a382 htb rate 160kbit ceil 160kbit prio 1 quantum 16000<br>$TC class add dev $DEV parent 4:10
classid 4:d382 htb rate 2048kbit ceil 2048kbit prio 3 quantum 48000<br>usleep 10<br>$TC qdisc add dev $DEV parent 2:b382
handle b382: sfq perturb 10<br>$TC qdisc add dev $DEV parent 3:a382
handle a382: sfq perturb 10<br>$TC qdisc add dev $DEV parent 4:d382
handle d382: sfq perturb 10<br>usleep 10<br>$TC filter add dev $DEV parent 4:
protocol ip u32 match ip dst <a href="http://82.133.133.229/32">82.133.133.229/32</a> flowid 4:d382<br>usleep 10<br>$TC filter add dev $DEV parent 2:
protocol ip u32 match ip dst <a href="http://82.133.133.229/32">82.133.133.229/32</a> flowid 2:b382<br>usleep 10<br>$TC filter add dev $DEV parent 3:
protocol ip u32 match ip dst <a href="http://82.133.133.229/32">82.133.133.229/32</a> flowid 3:a382<br>echo -n " | upload speed 2048kbit
"<br>$TC class add dev $DEV_UP parent 1:1
classid 1:a382 htb rate 2048kbit ceil 2048kbit prio 3<br>$TC qdisc add dev $DEV_UP parent
1:a382 handle a382: sfq<br>usleep 10<br>$TC filter add dev $DEV_UP protocol ip
parent 1: u32 match ip src <a href="http://82.103.109.229/32">82.103.109.229/32</a> flowid 1:a382</p>