Re: firewall is very slow, something's wrong

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Florin Andrei
Date: Monday, October 8, 2007 - 10:41 am

Stuart Henderson wrote:

I raised maxlen to 300. I also enabled ACPI. It's still slow. The 
congestion counter is still not zero - currently at 386.5/s
One good thing is that there used to be a big pause when the kernel was 
booting up, probably waiting for some device or something - now with 
ACPI the pause is smaller. It's still waiting for something, just not as 
much.

I am watching the system with top, set to update every 1s, and I noticed 
there are a lot of interrupt load bursts on CPU0. The percentage of 
interrupt load is very uneven, sometimes as low as 15%, sometimes as 
high as 75%.
I unleashed the UDP flood and the firewall is totally frozen - can't do 
anything even on the local keyboard. Not even the display (running top) 
gets updated anymore. The machine is frozen solid. All network traffic 
stops immediately.
Kill the UDP flood and OpenBSD resumes normal operations.

I tried the uniprocessor kernel and it's exactly the same.

Comparison with Linux on the exact same hardware:
HTTP download speed through the firewall is 112 Mbyte / sec (saturating 
the GigE ports) and the interrupt load is relatively low and constant - 
about 30%.
Under UDP flood with Linux as a firewall, the current download finishes 
up, but a new one cannot get started. The system is not frozen at all, 
it's quite usable, in fact I can heavily overload it (running a bunch of 
CPU hogs) to the point where userspace becomes sluggish and load average 
is up to 250 or so, yet the firewall is not influenced at all.

So what's the deal here? The heavy interrupt load percentage seems to 
indicate an issue with the network driver if I'm not mistaken. But these 
are good and quite popular network cards - Intel Pro/1000 PCI Express 4x 
dual-port gigabit, seen by kernel as em0 and em1

-- 
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)