Re: filter performance/optimization questions

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dnia środa, 8 lutego 2006 18:29, Imre Gergely napisał:
> 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 increases.
>
> 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 
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. 

And finally, are you using any libpcap based application ?

-- 
Jakub Wartak
-vnull
FreeBSD/OpenBSD/Linux/Solaris/Network Administrator
http://vnull.pcnet.com.pl/
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux