Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Feb 2009 10:08:29 -0800
From:      Julian Elischer <julian@elischer.org>
To:        Oliver Fromme <olli@lurza.secnetix.de>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: Packet filter performance on SMP
Message-ID:  <499AFD1D.4020907@elischer.org>
In-Reply-To: <200902171747.n1HHlwQR080012@lurza.secnetix.de>
References:  <200902171747.n1HHlwQR080012@lurza.secnetix.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Oliver Fromme wrote:
> Hi,
> 
> I've asked this a week ago on the -ipfw list, but got no
> reply ...  The -net list might be more appropriate.
> 
> I'll have to implement a packet filter on machines with
> several cores (4 to 8).  Which one of the available filters
> (IPFW, IPF, PF) will provide the best performance on such
> SMP machines?  I heard that PF doesn't support SMP hardware
> very well -- is that true?  Will IPFW be better?

Not a lot of testing has been done on this topic yet.
I know that this is not what you want to hear but it
is possible that you might be the person to try it out
(using the tunables to disable different number of CPUs)
and see how it works out.

let us know if you get any interesting results.

Ipfw has a single rw lock guarding the entire rule set but it
only does a reader lock on packet processing so multiple CPUs
can be in there at the same time. It does not however protect
the statistics on each rule so if two cpus try update the stats
at the same time, one of them will miss out. (this has been
considered an acceptable loss of accuracy in order to
maintain throughput I guess).


> Thanks for any insights.
> 
> Best regards
>    Oliver
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?499AFD1D.4020907>