Skip site navigation (1)Skip section navigation (2)
Date:      22 Jun 2004 01:34:51 +0200
From:      Staffan Ulfberg <staffan@ulfberg.se>
To:        freebsd-net@freebsd.org
Cc:        James <haesu@towardex.com>
Subject:   Re: IPFW questions
Message-ID:  <87oencjxic.fsf@multivac.fatburen.org>
In-Reply-To: <20040617185902.GA24198@scylla.towardex.com>
References:  <200406161646.49893.rneese@adelphia.net> <87zn73kmv9.fsf@multivac.fatburen.org> <20040617185902.GA24198@scylla.towardex.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I've played around a bit more with my 300 MHz firewall now.  Actually,
even if I completely disable natd, and use only a single pass-all
firewall rule, I can't get over about 30 MBps, at 2500 packets per
second, through the machine.  (I used netstat -i -b to measure
traffic.)

I tried the link0 option for both interfaces (fxp), which helped only
slightly.  (If anyone remembers the original post, I'm testing by
transferring files from fxp1 to fxp3.)

I also tried compiling a kernel with DEVICE_POLLING.  At 500 Hz,
routing performance is about the same as with normal interrupts, but
with slightly better overall system response.  Over that (tried 1000,
2000 Hz) and the system is very unresponsive and I believed it had
hanged several times (but it hadn't).

BTW, can anyone tell me why the system clock gets slowed down a factor
of two or more when using DEVICE_POLLING?  (And, of course, if there's
a fix...)

Is this machine simply too slow to use even as a simple router for 100
Mbps traffic?  I must say I'm a bit surprised.  Or any tuning
suggestions?

Staffan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87oencjxic.fsf>