From: Andy Furniss Date: Fri, 01 Apr 2005 20:35:08 +0000 Subject: Re: [LARTC] These tc commands used to work... what's broken them? Message-Id: <424DB07C.1080901@dsl.pipex.com> List-Id: References: <20050325220314.73F5D32AB1D@www.davidwhite.org> In-Reply-To: <20050325220314.73F5D32AB1D@www.davidwhite.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org George Adams wrote: > I have a Gentoo Linux (kernel 2.6.11) server. Several months ago, I > made a traffic shaping setup for my box (running a 2.4 kernel then) > that worked beautifully. It gave high priority to SSH and RealAudio > traffic, and put HTTP downloading traffic on a lower prio so they could > only use what bandwidth was left. > > However, I've only just realized that tc is no longer accepting the > commands I setup in a script to start it. I don't know when it stopped > working. > > I can post the tcng script if anyone wants to see how I generated my tc > commands, but I suspect it may not be relevant since tc is bombing out > so early in the process. Here's what I get: > > ------------------------------------------------------------ > >>tc -s qdisc show dev eth0 > > > qdisc pfifo_fast 0: bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 > Sent 455120063 bytes 553706 pkt (dropped 0, overlimits 0 requeues 25) > rate 0bit 0pps backlog 0b 0p requeues 25 > > >>tc -s class show dev eth0 > > >>tc qdisc add dev eth0 handle 1:0 root dsmark indices 8 default_index 0 That works for me using the latest iproute2 and 2.6.12-rc1 I think you just hit unlucky with your version/kernel and it's been fixed now. http://developer.osdl.org/dev/iproute2/download/iproute2-2.6.11-050330.tar.gz Andy. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc