From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Martin_Schi=F8tz?= Date: Wed, 19 Jan 2005 16:54:02 +0000 Subject: Re: [LARTC] tc limit Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Thanks, with "prio #" on all filters - all rules can be added.=20 :-) Just curious - Is there a reason for the ~2K limit on filters with "prio 0"? Martin On Wed, 19 Jan 2005 07:12:56 -0800, gypsy wrote: > Martin Schi=F8tz wrote: > > > > Hi >=20 > Hello. >=20 > > I have been playing with tc. I'm using htb and sfq. I tried to setup > > shaping of every ip address within a /20. > > I found that there must be an upper limit of about 2096 on the number > > of rules (classes, qdiscs or filters). I was testing a /20 which gives > > 4096 classes, qdiscs and filters. I'm using hashkey to optimize > > processing of frames. >=20 > Filters. >=20 > > Is there a limit with tc or I'm I doing something wrong ? >=20 > Yes, sort of. Yes. >=20 > > This is the script: > > #!/bin/sh > > >=20 > > /sbin/tc filter add dev eth1 parent 1:3 protocol ip u32 >=20 > 'prio #' must be included in all 'filter' lines where "#" is not zero > and is always the same; the "zero prio" has a limit and there is a limit > on '#' - but no limit on how many times '#' can be (e.g.) 5 >=20 > So, e.g.: > tc filter add dev eth1 parent 1: protocol ip prio 5 \ > u32 match ip src $IP flowid 1:40 >=20 > will run at least 64K times without complaint, but this will fail after > ~2K: > tc filter add dev eth1 parent 1: protocol ip prio 0 \ > u32 match ip src $IP flowid 1:40 >=20 > > /sbin/tc filter add dev eth1 parent 1:3 handle 3: protocol ip u32 divis= or 256 > > /sbin/tc filter add dev eth1 protocol ip parent 1: u32 match ip dst > > 10.0.0.0/20 hashkey mask 0x000000ff at 16 link 3: >=20 > google LARTC please document >=20 > gypsy > _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/