At 08:09 AM 11/22/2006, Jeremie Le Hen wrote:

It would be interesting to know the real performance of Linux as a mere
router if we want a true comparision with FreeBSD performances.

Re-tested, this time with a LINUX UP kernel and there is not that much difference in overall speeds. I added a few IPTABLES rules which loaded a few of the modules.


[EMAIL PROTECTED] ~]# iptables -A OUTPUT -p tcp  -s 10.90.2.1 --dport 135:139 
-j DROP
[EMAIL PROTECTED] ~]# iptables -A OUTPUT -p tcp  -s 11.90.3.1 --dport 445 -j 
DROP
[EMAIL PROTECTED] ~]# iptables -A OUTPUT -p tcp  -s 0.0.0.0/0 --dport 448 -j 
REJECT
[EMAIL PROTECTED] ~]#


[EMAIL PROTECTED] ~]# lsmod
Module                  Size  Used by
ipt_REJECT              5248  1
xt_tcpudp               3456  3
iptable_filter          3328  1
ip_tables              12872  1 iptable_filter
x_tables               14212  3 ipt_REJECT,xt_tcpudp,ip_tables
autofs4                21508  2
sunrpc                153660  1
acpi_cpufreq            8204  0
dm_mirror              21968  0
dm_multipath           18568  0
dm_mod                 57112  2 dm_mirror,dm_multipath
video                  17028  0
sbs                    16192  0
i2c_ec                  5376  1 sbs
button                  7184  0
battery                10500  0
asus_acpi              16792  0
ac                      5636  0
pcspkr                  3456  0
i2c_nforce2             7552  0
i2c_core               21504  2 i2c_ec,i2c_nforce2
serio_raw               7300  0
tg3                    99972  0
e1000                 114752  0
ide_cd                 38432  0
cdrom                  34848  1 ide_cd
forcedeth              39940  0
sata_nv                11652  0
libata                 98068  1 sata_nv
sd_mod                 20864  0
scsi_mod              133672  2 libata,sd_mod
ext3                  129416  1
jbd                    58152  1 ext3
ehci_hcd               30984  0
ohci_hcd               19844  0
uhci_hcd               23052  0
[EMAIL PROTECTED] ~]#

Stopping it does seem to unload the klds

[EMAIL PROTECTED] ~]# /etc/rc.d/init.d/iptables stop
Flushing firewall rules: [  OK  ]
Setting chains to policy ACCEPT: filter [  OK  ]
Unloading iptables modules: [  OK  ]
[EMAIL PROTECTED] ~]#

[EMAIL PROTECTED] ~]# lsmod
Module                  Size  Used by
ipt_REJECT              5248  0
xt_tcpudp               3456  0
x_tables               14212  2 ipt_REJECT,xt_tcpudp
autofs4                21508  2
sunrpc                153660  1
acpi_cpufreq            8204  0
dm_mirror              21968  0
dm_multipath           18568  0
dm_mod                 57112  2 dm_mirror,dm_multipath
video                  17028  0
sbs                    16192  0
i2c_ec                  5376  1 sbs
button                  7184  0
battery                10500  0
asus_acpi              16792  0
ac                      5636  0
pcspkr                  3456  0
i2c_nforce2             7552  0
i2c_core               21504  2 i2c_ec,i2c_nforce2
serio_raw               7300  0
tg3                    99972  0
e1000                 114752  0
ide_cd                 38432  0
cdrom                  34848  1 ide_cd
forcedeth              39940  0
sata_nv                11652  0
libata                 98068  1 sata_nv
sd_mod                 20864  0
scsi_mod              133672  2 libata,sd_mod
ext3                  129416  1
jbd                    58152  1 ext3
ehci_hcd               30984  0
ohci_hcd               19844  0
uhci_hcd               23052  0
[EMAIL PROTECTED] ~]#

RELENG_4 still seems to be king, speed wise for raw forwarding and firewalling performance. I tried Dragon Fly, but the em NICs lock up with a few packets blasted at it both in SMP and UP mode. Also tried booting one of their development kernels, but no difference.

I might give OpenBSD a quick try as a reference.

I also tried a few variations in the kernel from CURRENT. Removing things like KTRACE and PREMPTION seem to have very little impact, but some. Also tried changing the hardware timer to TSC, but that didnt have any impact.
_______________________________________________
freebsd-performance@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-performance
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to