From owner-freebsd-net@FreeBSD.ORG Mon Mar 20 17:53:38 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDFE516A41F; Mon, 20 Mar 2006 17:53:38 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F0C043D7C; Mon, 20 Mar 2006 17:53:28 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id A63801A4D8F; Mon, 20 Mar 2006 09:53:27 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 11C0951AA8; Mon, 20 Mar 2006 12:53:27 -0500 (EST) Date: Mon, 20 Mar 2006 12:53:26 -0500 From: Kris Kennaway To: OxY Message-ID: <20060320175326.GA73262@xor.obsecurity.org> References: <20060320131020.GI20138@in.nextra.sk> <002101c64c2b$443eaa20$0201a8c0@oxy> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline In-Reply-To: <002101c64c2b$443eaa20$0201a8c0@oxy> User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org, bohuslav.plucinsky@in.nextra.sk, freebsd-questions@freebsd.org Subject: Re: Low network performance after upgrade from FreeBSD 4.8 to 6.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Mar 2006 17:53:39 -0000 --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 20, 2006 at 03:33:33PM +0100, OxY wrote: >=20 > ----- Original Message -----=20 > From: "Bohuslav Plucinsky" > To: > Cc: > Sent: Monday, March 20, 2006 2:10 PM > Subject: Low network performance after upgrade from FreeBSD 4.8 to 6.0 >=20 >=20 > >Hello, > > > >I use the FreeBSD box as the firewall with NAT (ipfw + natd). > >When I've upgraded the box from 4.8-20030810-STABLE to 6.0-RELEASE > >I've noticed a performance degradation. > > > >I've only one workstation behind the firewall and throughput > >of downloading an ISO image through the firewall with 6.0-RELEASE > >booted, is only 24Mbps. (When I reboot the machine with=20 > >4.8-20030810-STABLE > >installation, the throughput is 80Mbps). The firewall_type was "open" > >during the download: > > > > > > PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND > > 229 root 1 105 0 1428K 904K RUN 0:35 40.82% natd > > > >options HZ=3D100 > >Can somebody advise me, if this is some configuration problem > >or the requirement of FreeBSD 6.0 kernel has been increased and HW > >of my firewall is not enough? >=20 > HZ=3D100 is not a good idea.. > i set it to 1000 before and i had no idle CPU > try to set it to 2000 > echo 'kern.hz=3D"2000"' >> /boot/loader.conf I don't think that's a sensible idea on a 400MHz CPU. Kris --X1bOJ3K7DJ5YkBrT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFEHuwWWry0BWjoQKURAtwzAJ0fPFZIWonDT0AlfeniPeeus4QtyQCfWYCB 2piJ6JJpS9FDKYCCX987ZGs= =DKr8 -----END PGP SIGNATURE----- --X1bOJ3K7DJ5YkBrT--