[LARTC] Squid-qos Patch Trouble

Gerardo Arceri elfarto@elfarto.com.ar
Fri, 05 Mar 2004 19:33:30 -0300


Hiya, i have a squid-2.5.4 transparent proxy working in http accelerator  
mode (i.e. web servers are behind the squid, and all www records point to  
the squid IP) and i want to implement some sort of bandwidth management  
so, for example, any given hosted website/server won't eat more than let's  
say 1Mbit of upstream bandwidth, i have recompiled squid using Patrick  
Mchardy squid-qos patch, and modified my squid.conf as this:

acl testsrc src 10.0.0.0/255.255.255.0
tcp_outgoing_priority 10:2 testsrc

and my tc script looks like this:

tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 10: htb default 10
tc class add dev eth0 parent 10: classid 10:2 htb rate 1Mbit ceil 1Mbit

Problem is, less than 5% of the traffic seems to pass thru this class,
doing a
tc -s -d class dev eth0
never shows more that 5 KB/s of traffic, i'm sure squid is marking the  
traffic since if i remove the squid.conf lines the traffic counter on tc  
stops growing, also i checked that tc is working OK by using iptables mark  
target to classify outgoing http traffic and under this config the  
download speed never gets past the 1Mb limit.
Anyone has experience with this kind of setup?

Any help will be appreciated!




-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/