From owner-freebsd-current@FreeBSD.ORG Fri Aug 5 12:03:28 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5259F106564A for ; Fri, 5 Aug 2011 12:03:28 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from brane.freislich.nom.za (ntp0.freislich.nom.za [41.154.0.9]) by mx1.freebsd.org (Postfix) with ESMTP id CD9438FC0C for ; Fri, 5 Aug 2011 12:03:27 +0000 (UTC) Received: from [41.154.88.20] (helo=clue.co.za) by brane.freislich.nom.za with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.71 (FreeBSD)) (envelope-from ) id 1QpJ7b-000KfK-TI; Fri, 05 Aug 2011 14:03:24 +0200 Received: from localhost ([127.0.0.1] helo=clue.co.za) by clue.co.za with esmtp (Exim 4.72 (FreeBSD)) (envelope-from ) id 1QpJ7R-0000uq-Fm; Fri, 05 Aug 2011 14:03:13 +0200 Message-Id: To: Victor Detoni From: Ian FREISLICH In-Reply-To: References: X-Attribution: BOFH Date: Fri, 05 Aug 2011 14:03:13 +0200 X-Mismatched-rDNS: 41.154.88.20 Cc: freebsd-current@freebsd.org Subject: Re: High Network Perfomance X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2011 12:03:28 -0000 Victor Detoni wrote: > Hi Guys, > > I'm trying tunning a FreeBSD 8.2 to high perfomance network with pf. My > server configuration is: > > Dell 1950 > CPU: Intel(R) Xeon(R) CPU 5130 @ 2.00GHz (1995.03-MHz K8-class > CPU) > 4 x CPU > 2 NIC ( 1 NIC (em0: ) > > I want to reach the high processing of packets per second and use pf as > synproxy and we still processor to handle others packets or flows. Benchmarking I did a few years ago showed a strong correlation between forwarding rate and CPU L1 cache size. As well as an inverse relationship to the number of CPUs in the system. At the time, some architectures were worse than others. Intel Pentium4/Xeons had a halving and AMD Opteron/Athlon had about a 7% reduction in forwarding rate with SMP compared to UP. I haven't had the chance to re-run these tests recently. Set net.inet.ip.fastforwarding=1 and run benchmarks to test your forwarding rates with different configurations. See for some results: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=77846+0+archive/2008/freebsd-net/20080120.freebsd-net Ian -- Ian Freislich