From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Fri, 03 Jun 2005 15:10:45 +0000 Subject: Re: [LARTC] How many (htb) tc classes and qdiscs are too many? Message-Id: <42A072F5.1030805@dsl.pipex.com> List-Id: References: <000501c567bf$792fd700$650fa8c0@hotsitespencer> In-Reply-To: <000501c567bf$792fd700$650fa8c0@hotsitespencer> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Konrad wrote: > We have an error talking to the kernel > loops: 684 filters: 4788 classes: 2052 > > What's wrong? > I need more filters :/ > > I have 2.6.11.11 kernel with new iproute2, u32 match mark support and > IMQ (AB)... > > Everyone can make theoretically 0xffff (65535) classes and qdiscs on one > device. And I think this is true, but I can't add more filters then > 4775! :( > > --- > v=1; cnt=0; > tc qdisc add dev imq0 root handle 1:0 htb > > while : [ $v -le 11000 ]; do Loops for ever with the colon after while for me. > qu0=`printf "%x\n" $v` > > qu1=`printf "%x\n" $v` So qu0 = qu1 which makes > > tc filter add dev imq0 protocol ip parent 1:$qu0 pref 5 u32 match ip dst > 192.168.0.5 flowid 1:$qu1 illogical. Andy. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc