Re: FBSD 1GBit router?



Zaphod Beeblebrox wrote:
On Feb 5, 2008 8:00 AM, Bc. Radek Krejca <radek@xxxxxxxxxxxxxx> wrote:


I have FreeBSD box as router
FreeBSD pvt-gw.starnet.cz 6.1-RELEASE-p12 FreeBSD 6.1-RELEASE-p12 #2: Wed
Jan 31 21:28:44 CET 2007 root@xxxxxxxxxxxxxxxxx:/usr/obj/usr/src/sys/DL360-G4
i386
But speed is only about 382 Mbit. I have following values in
sysctl.conf:

net.inet.ip.fastforwarding=1
net.inet.tcp.recvspace=262144
net.inet.tcp.sendspace=262144
kern.ipc.maxsockbuf=33554432


The ip.fastforwarding makes a tiny insignificant difference with the caveat
that your box won't show up on traceroutes. Fast forwarding is "fast" by
virtue of the fact that it doesn't decrement TTL.

The other sysctl values effect traffic originating or termating at your
router --- they probably have no effect on performance.


I need about 600-700 Mbit. Is any chance on freebsd? Hardware is HP
DL360-G4, interrupt takes about 55 % of CPU. I tested it over
netperf and result is about 382 Mbit.


If you need large packet performance of 600-700 mbit (large in this case
being packets (on average) of 1000 bytes or more), then this hardware is
likely doable. I'd do the following:

- upgrade at least to 6.3. upgrading to 7.0 might also be better, depending
on hardware choices
- ensure your ethernet cards are on fast enough busses. 'em' (Intel Ether
Express 1000) flavor ports are my personal favorite
- enable polling (this will make a _huge_ difference by itself)
Let me disagree with this - while polling reduce CPU utilization it doesn't perform better.
When the network is under pressure polling can lead to lost packets.
After all one should test how polling works for him, but with polling enabled my intel network cards
does not work better.
- your hardware is (likely) dual core. Make sure every piece of hardware in
use doesn't involve any giant locks. Under 6.x consider the mpsafenet
sysctl. This is also a point on which 7.0 will shine.
_______________________________________________
freebsd-performance@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-performance
To unsubscribe, send any mail to "freebsd-performance-unsubscribe@xxxxxxxxxxx"

_______________________________________________
freebsd-performance@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-performance
To unsubscribe, send any mail to "freebsd-performance-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: How to increase traffic
    ... I got from my line only about 130 Mbit, then my cpu is working on ... I tried set up polling but without success because after ... You said that the CPU is at 100% when you have 130 Mbit ... Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. ...
    (freebsd-performance)
  • How to increase traffic
    ... kernel based on Generic but I have big problem with perfomance. ... I got from my line only about 130 Mbit, then my cpu is working on ... I tried set up polling but without success because after ...
    (freebsd-performance)
  • Re: How to increase traffic
    ... kernel based on Generic but I have big problem with perfomance. ... I got from my line only about 130 Mbit, then my cpu is working on ... I tried set up polling but without success because after ...
    (freebsd-performance)
  • RE: Polling For 100 mbps Connections? (Was Re: Freebsd Theme Song)
    ... My machine is Celeron 433 with 256 MB RAM and it is used as router. ... With iperf between DMZ and LAN with polling enabled I reach speed of 90 Mbit and without polling I can get speed only about 58 Mbit. ...
    (freebsd-questions)
  • Re: Polling tuning and performance
    ... network traffic and that only by polling). ... I am unhappy to report that my fine-tuned interrupt handling ... sucking in packets as fast as possible with minimal loss. ... of power) unless the system can rarely be idle anyway, ...
    (freebsd-performance)