Date: Sat, 9 Feb 2008 18:22:02 +0200 From: Mykola Dzham <freebsd@levsha.org.ua> To: Zaphod Beeblebrox <zbeeble@gmail.com> Cc: FreeBSD Mailing Lists <freebsd-performance@freebsd.org>, "Bc. Radek Krejca" <radek@ceskedomeny.cz> Subject: Re: FBSD 1GBit router? Message-ID: <20080209162202.GB71480@expo.ukrweb.net> In-Reply-To: <5f67a8c40802051205t74a38663xd692e2a754d3788b@mail.gmail.com> References: <107794589.20080205140018@starnet.cz> <5f67a8c40802051205t74a38663xd692e2a754d3788b@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Zaphod Beeblebrox wrote: > On Feb 5, 2008 8:00 AM, Bc. Radek Krejca <radek@ceskedomeny.cz> 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@pvt-gw.starnet.cz:/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. This effect make other sysctl variable: net.inet.ip.stealth net.inet.ip.fastforwarding described in inet(4). I have appreciable increase in productivity at the Core2Duo processor with several em network cards after enabling net.inet.ip.fastforwarding. Before enabling fastforwarding "swi1: net" use 100% of one cpu, the second core stood idle. After enabling fastforwarding "emX taskq" processes use both cores. -- Mykola Dzham, LEFT-(UANIC|RIPE) JID: levsha@jabber.net.ua
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080209162202.GB71480>