Re: firewall is very slow, something's wrong

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Florin Andrei
Date: Tuesday, October 9, 2007 - 9:27 am

Henning Brauer wrote:

Yes, I was looking at a paragraph in the 4.2 release notes and I thought 
all those things might be related exactly to the problem I'm seeing:

##############
Huge performance improvements in the network stack, including:
     * In pf, store routing table ID, queue ID etc directly in the 
packet header mbuf instead of using mbuf tags (which use malloc'd 
memory). This yields a 100% improvement in pf performance.
     * Skip TCP/UDP/ICMP/ICMP6 checksumming when not necessary. This 
yields a further 10% improvement in pf performance.
     * A change in the way the kernel random pool is stirred greatly 
increases performance with network interface cards that support 
interrupt mitigation, especially on architectures where reading the 
clock is expensive (such as amd64).
##############

I'll try 4.2.


That is surprising. What is the reason?

How much RAM can the i386 kernel use on an amd64 machine?


So, assuming the box is a pure firewall / static router (so just pf and 
static routes), even with multiple interfaces, all those tasks run in a 
single kernel thread?

Now here's the second thing: if this firewall needs to be integrated in 
an environment with dynamic routing, it will need to run some kind of 
dynamic routing daemon(s). For that, I'd like to have at least two cores 
on the system, and a kernel that can take advantage of them.
If the SMP kernel does not actually hurt performance, I might have to 
use it.

-- 
Florin Andrei

http://florin.myip.org/
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
firewall is very slow, something's wrong, Florin Andrei, (Thu Oct 4, 5:48 pm)
Re: firewall is very slow, something's wrong, Stuart Henderson, (Fri Oct 5, 1:31 am)
Re: firewall is very slow, something's wrong, Claudio Jeker, (Sun Oct 7, 12:15 pm)
Re: firewall is very slow, something's wrong, Florin Andrei, (Mon Oct 8, 10:41 am)
Re: firewall is very slow, something's wrong, Florin Andrei, (Mon Oct 8, 10:59 am)
Re: firewall is very slow, something's wrong, knitti, (Mon Oct 8, 1:49 pm)
Re: firewall is very slow, something's wrong, Florin Andrei, (Mon Oct 8, 5:28 pm)
Re: firewall is very slow, something's wrong, Karsten McMinn, (Mon Oct 8, 6:05 pm)
Re: firewall is very slow, something's wrong, Henning Brauer, (Tue Oct 9, 4:32 am)
Re: firewall is very slow, something's wrong, Florin Andrei, (Tue Oct 9, 9:07 am)
Re: firewall is very slow, something's wrong, Florin Andrei, (Tue Oct 9, 9:27 am)
Re: firewall is very slow, something's wrong, Henning Brauer, (Tue Oct 9, 11:03 am)
Re: firewall is very slow, something's wrong, Florin Andrei, (Tue Oct 9, 1:49 pm)
Re: firewall is very slow, something's wrong, Henning Brauer, (Wed Oct 10, 12:35 am)
Re: firewall is very slow, something's wrong, Siju George, (Wed Oct 10, 6:04 am)
Re: firewall is very slow, something's wrong, Henning Brauer, (Wed Oct 10, 6:15 am)
Re: firewall is very slow, something's wrong, Peter N. M. Hansteen, (Wed Oct 10, 6:35 am)
Re: firewall is very slow, something's wrong, Scott Wells, (Wed Oct 10, 7:01 am)
Re: firewall is very slow, something's wrong, Robert C Wittig, (Wed Oct 10, 7:24 am)
Re: firewall is very slow, something's wrong, Paul de Weerd, (Wed Oct 10, 7:41 am)
Re: firewall is very slow, something's wrong, Jon Radel, (Wed Oct 10, 7:47 am)
Re: firewall is very slow, something's wrong, Tony Abernethy, (Wed Oct 10, 7:59 am)
Re: firewall is very slow, something's wrong, Siju George, (Wed Oct 10, 8:23 am)
Re: firewall is very slow, something's wrong, Tony Abernethy, (Wed Oct 10, 9:20 am)
Re: firewall is very slow, something's wrong, Stuart Henderson, (Wed Oct 10, 10:04 am)
Re: firewall is very slow, something's wrong, Robert C Wittig, (Wed Oct 10, 10:34 am)
Re: firewall is very slow, something's wrong, Ted Unangst, (Wed Oct 10, 11:54 am)
Re: firewall is very slow, something's wrong, Paul de Weerd, (Wed Oct 10, 12:01 pm)
Re: firewall is very slow, something's wrong, Henning Brauer, (Wed Oct 10, 1:20 pm)
Re: [side thread] security implcations of multiple kernel ..., Douglas A. Tutty, (Wed Oct 10, 3:25 pm)
SOLVED [was: firewall is very slow, something's wrong], Florin Andrei, (Tue Oct 16, 2:57 pm)
Re: SOLVED [was: firewall is very slow, something's wrong], Stuart Henderson, (Tue Oct 16, 3:44 pm)
Re: SOLVED [was: firewall is very slow, something's wrong], Henning Brauer, (Wed Oct 17, 1:38 am)