From owner-freebsd-stable@FreeBSD.ORG Fri Apr 22 02:30:43 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F39C816A4CE for ; Fri, 22 Apr 2005 02:30:42 +0000 (GMT) Received: from mail1.webmaster.com (mail1.webmaster.com [216.152.64.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7D4043D31 for ; Fri, 22 Apr 2005 02:30:42 +0000 (GMT) (envelope-from davids@webmaster.com) Received: from however by webmaster.com (MDaemon.PRO.v7.1.0.R) with ESMTP id md50000486178.msg for ; Thu, 21 Apr 2005 19:29:12 -0700 From: "David Schwartz" To: Date: Thu, 21 Apr 2005 19:30:11 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 In-Reply-To: <200504201407.j3KE7xNb000651@tuscan.xciv.org> X-Authenticated-Sender: joelkatz@webmaster.com X-Spam-Processed: mail1.webmaster.com, Thu, 21 Apr 2005 19:29:12 -0700 (not processed: message from trusted or authenticated source) X-MDRemoteIP: 206.171.168.138 X-Return-Path: davids@webmaster.com X-MDaemon-Deliver-To: freebsd-stable@freebsd.org X-MDAV-Processed: mail1.webmaster.com, Thu, 21 Apr 2005 19:29:13 -0700 Subject: RE: Tuning for router performance X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: davids@webmaster.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2005 02:30:43 -0000 > In article , > davids@webmaster.com ("David Schwartz") writes: > > >> options HZ=1000 #for polling > > That's too low. 2000 is the minimum you should consider. > > Having fixed my traffic generator, I'm now hitting ~220Kpps as limit > before errors. Excellent. > > kern.random.sys.harvest.ethernet=0 > > kern.random.sys.hervest.interrupt=0 > > Doesn't seem to make any real difference in my test. That's strange, maybe it's because in polling mode there aren't many interrupts. > > kern.ipc.nmbclusters="262144" > > vm.kmem_size="536870912" > > vm.kmem_size_max="536870912" > > These don't really make any difference, I'm guessing would only help > larger packet sizes? The 'nmbclusters' change really only affects things if you have a lot of local endpoints. And the kmem_size stuff only affects the case where you have a lot of dummynet pipes or dynamic firewall rules. They're just part of my typical router tuning because people often want these things as well. DS