From owner-freebsd-questions Mon Dec 11 9:26:35 2000 From owner-freebsd-questions@FreeBSD.ORG Mon Dec 11 09:26:31 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by hub.freebsd.org (Postfix) with ESMTP id 9B57A37B400 for ; Mon, 11 Dec 2000 09:26:30 -0800 (PST) X-Envelope-Sender-Is: andre.albsmeier@mchp.siemens.de (at relayer david.siemens.de) Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by david.siemens.de (8.11.0/8.11.0) with ESMTP id eBBHQNu00472; Mon, 11 Dec 2000 18:26:24 +0100 (MET) Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7]) by mail2.siemens.de (8.11.0/8.11.0) with ESMTP id eBBHQN809775; Mon, 11 Dec 2000 18:26:23 +0100 (MET) Received: (from localhost) by curry.mchp.siemens.de (8.11.1/8.11.1) id eBBHQN274156; Date: Mon, 11 Dec 2000 18:26:22 +0100 From: Andre Albsmeier To: Guolin Cheng Cc: "'freebsd-questions@FreeBSD.ORG'" Subject: Re: How to improve FreeBSD nfs performance? and please explain the k ernel parameters. Message-ID: <20001211182622.A49121@curry.mchp.siemens.de> References: <2A2825AC1334D411A922005004E0CD203F2BEB@exchange.alexa.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <2A2825AC1334D411A922005004E0CD203F2BEB@exchange.alexa.com>; from Guolin@alexa.com on Thu, Dec 07, 2000 at 08:37:50PM -0800 X-Echelon: BND CIA NSA Mossad KGB MI6 IRA detonator nuclear assault strike Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 07-Dec-2000 at 20:37:50 -0800, Guolin Cheng wrote: > Hi, all, > > These days I encountered a nfs performance problem, Basically we use Intel > machines with 512M memory, Intel Pro100M Ethernet network interfaces and HP > switches, > But we find that the performance is too bad: > > This is the performance test,. write from nfs client to nfs server mounted > through amd ("nfsiod -n 4" and "nfsd -t -u -n 16" are running to improve > performance already): > > nfs server: nfs client: transfer speed (Mega bytes) > > FreeBSD 4.1 FreeBSD 4.1 2-4 M > FreeBSD 4.1 RedHat Linux 6.2 5-7 M > Linux 6.2 Linux 6.2 10+ M > > So it's really terrible, because I like FreeBSD and we install a lot of > FreeBSD boxes. So I tried to change nfs sync-write method, which is default > for FreeBSD, try to use async method, (sysctl -w vfs.nfs.async=1 ; sysctl > -w vfs.nfs.gatherdelay=0 ) and test the performance again, and the > performance is improved a lot > > nfs server: nfs client: transfer speed (Mega bytes) > > FreeBSD 4.1 FreeBSD 4.1 7-10 M Well, I can't explain the sysctl parameters but I get 11426035 bytes/sec when reading data from an NFS server 11708689 bytes/sec when writing data to an NFS server All machines use FreeBSD-4.2 I use Asus P2B boards with 500 - 800 MHz and Intel Etherexpress cards connected by an Allied Telesyn switch. The only sysctl I changed was vfs.nfs.async=1. I never had problems and lots of machines have used this setting for a long time now. Hth, -Andre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message