From owner-freebsd-stable@FreeBSD.ORG Tue Apr 19 20:56:03 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 69C0116A4CE for ; Tue, 19 Apr 2005 20:56:03 +0000 (GMT) Received: from xciv.org (82-44-19-101.cable.ubr03.newm.blueyonder.co.uk [82.44.19.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id A338E43D1D for ; Tue, 19 Apr 2005 20:56:02 +0000 (GMT) (envelope-from paul@xciv.org) Received: from tuscan.xciv.org (localhost.xciv.org [127.0.0.1]) by tuscan.xciv.org (8.12.9p2/8.12.9) with ESMTP id j3JHfF9N000884; Tue, 19 Apr 2005 18:41:16 +0100 (BST) (envelope-from paul@tuscan.xciv.org) Received: (from paul@localhost) by tuscan.xciv.org (8.12.9p2/8.12.9/Submit) id j3JHfErQ000883; Tue, 19 Apr 2005 18:41:14 +0100 (BST) (envelope-from paul) Date: Tue, 19 Apr 2005 18:41:14 +0100 (BST) Message-Id: <200504191741.j3JHfErQ000883@tuscan.xciv.org> Mime-Version: 1.0 X-Newsreader: knews 1.0b.1 Organization: iso.org.dod.internet References: <68248.1113779741@xciv.org> In-Reply-To: From: paul@xciv.org (Paul Civati) X-Original-Newsgroups: xciv.lists.freebsd.stable To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=us-ascii cc: paul@xciv.org Subject: Re: Tuning for router performance X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-stable@freebsd.org List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2005 20:56:03 -0000 In article , davids@webmaster.com ("David Schwartz") writes: >> I'm starting to hit errors at 150Kpps. > I'm not sure why you're hitting errors at that speed. But here are > a few suggestions: Sorry - I left out a key piece of information, as I'm testing PPS rather than throughput I'm using 64byte packets. >> options HZ=1000 #for polling > That's too low. 2000 is the minimum you should consider. Thanks, I will try that and do some more testing. > You probably want: > > kern.random.sys.harvest.ethernet=0 > kern.random.sys.hervest.interrupt=0 I tried these in my initial test, but they didn't seem to make any difference for me. I'll try them in combination with the above. > What are your current values for vm.kmem_size and vm.kmem_size_max? vm.kmem_size: 335544320 vm.kmem_size_max: 335544320 -Paul-