From owner-freebsd-performance@FreeBSD.ORG Sat Feb 9 17:02:55 2008 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E73C816A418 for ; Sat, 9 Feb 2008 17:02:55 +0000 (UTC) (envelope-from freebsd@levsha.org.ua) Received: from expo.ukrweb.net (expo.ukrweb.net [193.125.78.116]) by mx1.freebsd.org (Postfix) with ESMTP id 9D7A013C45B for ; Sat, 9 Feb 2008 17:02:55 +0000 (UTC) (envelope-from freebsd@levsha.org.ua) Received: from levsha by expo.ukrweb.net with local (Exim 4.68 (FreeBSD)) (envelope-from ) id 1JNsSo-000HeH-Sc; Sat, 09 Feb 2008 18:22:02 +0200 Date: Sat, 9 Feb 2008 18:22:02 +0200 From: Mykola Dzham To: Zaphod Beeblebrox Message-ID: <20080209162202.GB71480@expo.ukrweb.net> References: <107794589.20080205140018@starnet.cz> <5f67a8c40802051205t74a38663xd692e2a754d3788b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5f67a8c40802051205t74a38663xd692e2a754d3788b@mail.gmail.com> X-Operating-System: FreeBSD/5.4-RELEASE-p6 (i386) User-Agent: Mutt/1.5.6i Cc: FreeBSD Mailing Lists , "Bc. Radek Krejca" Subject: Re: FBSD 1GBit router? X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Feb 2008 17:02:56 -0000 Zaphod Beeblebrox wrote: > On Feb 5, 2008 8:00 AM, Bc. Radek Krejca 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