From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jakub Wartak Date: Sun, 12 Feb 2006 11:30:42 +0000 Subject: Re: [LARTC] filter performance/optimization questions Message-Id: <200602121230.42902.vnulllists@pcnet.com.pl> List-Id: References: <43EA2A95.1000307@astral.ro> In-Reply-To: <43EA2A95.1000307@astral.ro> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Dnia =B6roda, 8 lutego 2006 18:29, Imre Gergely napisa=B3: > hi > > i'm using htb + u32 filters, and i was wondering if there is something one > can optimize at this stage. i have a lot of filters (~ 50.000 / interface, > and there are two interfaces), and around 4500 classes / interface. the > traffic going through this machine is something around 210-230mbit/s at > 50kpps. as you can imagine, the load is pretty high. in fact (as it's a > dual xeon at 2.4ghz), one CPU is always at 100% when the traffic increase= s. > > i did some tests with esfq (that brought down the classes to around 150), > but the filters remained, and the load was still 100%. and i get some > packet loss because of that. not much, around 1-2%, but it's enough :) > > is there something i could do to bring the load down? short of replacing > the whole system? i didn't find anything performance-related on the net, = or > in any documentation. > > thanks. Show your dmesg, cat /proc/interrupts ( or use itop to determine which=20 card/interface is hogging ), lsmod and .config from kernel compilation Also show us ip -s link What ethcards do you have, is NAPI enabled on them ? You could also disable connection tracking if that's not done already.=20 And finally, are you using any libpcap based application ? --=20 Jakub Wartak -vnull FreeBSD/OpenBSD/Linux/Solaris/Network Administrator http://vnull.pcnet.com.pl/ _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc