From owner-freebsd-questions@FreeBSD.ORG Tue Feb 6 01:07:04 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6EACB16A401 for ; Tue, 6 Feb 2007 01:07:03 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.freebsd.org (Postfix) with ESMTP id 40D2113C461 for ; Tue, 6 Feb 2007 01:07:03 +0000 (UTC) (envelope-from mike@sentex.net) Received: from BLUELAPIS.sentex.ca (cage.simianscience.com [64.7.134.1]) by smarthost2.sentex.ca (8.13.8/8.13.8) with SMTP id l161728S072603; Mon, 5 Feb 2007 20:07:02 -0500 (EST) (envelope-from mike@sentex.net) From: Mike Tancsa To: Justin Robertson Date: Mon, 05 Feb 2007 20:07:07 -0500 Message-ID: <5pkfs2pfv5sjhiiaegg3bae6casglevhpt@4ax.com> References: <45C7A9BD.30403@sk1llz.net> In-Reply-To: <45C7A9BD.30403@sk1llz.net> X-Mailer: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: 6.x, 4.x ipfw/dummynet pf/altq - network performance issues X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Feb 2007 01:07:04 -0000 On Mon, 05 Feb 2007 14:03:41 -0800, in sentex.lists.freebsd.questions you wrote: > > I suppose my concerns are two-fold. Why is 6.x collapsing under traffic= =20 >that 4.11 could easily block and run merrily along with, and is there a=20 >queueing mechanism in place that doesn't tie up the box so much on=20 >inbound flows that it ignores all other relevant traffic? > >(as a note, all tests were done with device polling enabled. Without it=20 >systems fall over pretty quickly. I also tried tests using 3com cards=20 >and had the same results) On the 6.x box, try enabling adding to /etc/sysctl.conf kern.polling.enable=3D1 net.inet.ip.fastforwarding=3D1 kern.polling.idle_poll=3D1 kern.random.sys.harvest.ethernet=3D0 and in /boot/loader.conf, add kern.hz=3D"2000"=20 Also removing=20 options ADAPTIVE_GIANT # Giant mutex is adaptive. from the kernel helps a bit as well. with=20 kern.polling.idle_poll=3D1 your load avg will be messed up but it should help performance a bit. As for firewall rules, things really seem to fall down performance wise, as compared to RELENG_4. I havent found a way to improve that performance.... However, on the plus side, an extra core does seem to help a bit with the box remaining responsive. For NICs, stay with em or bge nics for now in RELENG_6 I have some misc test results at http://www.tancsa.com/blast.html ---Mike -------------------------------------------------------- Mike Tancsa, Sentex communications http://www.sentex.net Providing Internet Access since 1994 mike@sentex.net, (http://www.tancsa.com)