From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Neil Aggarwal" Date: Sun, 03 Feb 2013 16:53:07 +0000 Subject: RE: Tc does not seem to be limiting bandwidth Message-Id: <000b01ce022e$f13051f0$d390f5d0$@JAMMConsulting.com> List-Id: References: <000101ce00b1$2856c670$79045350$@JAMMConsulting.com> In-Reply-To: <000101ce00b1$2856c670$79045350$@JAMMConsulting.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: lartc@vger.kernel.org I added the call to ip link set and I am still seeing huge bandwidth consumption. Any other ideas? Thanks, Neil -- Neil Aggarwal, (972) 834-1565 We lend money to investors to buy or refinance single family rent houses. No origination fees, quick approval, no credit check. -----Original Message----- From: lartc-owner@vger.kernel.org [mailto:lartc-owner@vger.kernel.org] On Behalf Of Outofwall.com Sent: Friday, February 01, 2013 2:00 PM To: Neil Aggarwal Cc: lartc@vger.kernel.org Subject: Re: Tc does not seem to be limiting bandwidth your device, may not have a queue length, try ip link set $DEV txqueuelen 1000 and see whether it limits correctly. On Fri, Feb 1, 2013 at 11:58 AM, 叶雨飞 wrote: > your device, may not have a queue length, > > try > > ip link set $DEV txqueuelen 1000 > > and see whether it limits correctly. > > On Fri, Feb 1, 2013 at 11:20 AM, Neil Aggarwal wrote: >> Hello: >> >> I have these commands in my firewall startup script: >> >> DEV=v1252 >> IP=a.b.c.d >> /sbin/tc qdisc del dev $DEV root >> /sbin/tc qdisc add dev $DEV root handle 1: htb default 30 >> /sbin/tc class add dev $DEV parent 1: classid 1:1 htb rate 10mbit >> /sbin/tc class add dev $DEV parent 1: classid 1:2 htb rate 10mbit >> /sbin/tc filter add dev $DEV protocol ip parent 1:0 prio 1 u32 match ip dst >> $IP flowid 1:1 >> /sbin/tc filter add dev $DEV protocol ip parent 1:0 prio 1 u32 match ip src >> $IP flowid 1:2 >> >> And tc qdisc list shows it has something for that dev: >> >> qdisc htb 1: dev v1252 root refcnt 2 r2q 10 default 30 direct_packets_stat 3 >> >> But, I am still seeing huge consumption of bandwidth from that server. >> Take a look at the attached graph. >> >> Any ideas why tc is not limiting the bandwidth? >> >> Thanks, >> Neil >> >> -- >> Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos >> Virtual private server with CentOS 6 preinstalled >> Unmetered bandwidth = no overage charges -- To unsubscribe from this list: send the line "unsubscribe lartc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html