From owner-freebsd-questions Sun Feb 9 15:39:29 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5B8337B401 for ; Sun, 9 Feb 2003 15:39:27 -0800 (PST) Received: from mail.seekingfire.com (coyote.seekingfire.com [24.72.10.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id E648843F3F for ; Sun, 9 Feb 2003 15:39:26 -0800 (PST) (envelope-from tillman@seekingfire.com) Received: from blues.seekingfire.prv (blues.seekingfire.prv [192.168.23.211]) by mail.seekingfire.com (Postfix) with ESMTP id CF548DC for ; Sun, 9 Feb 2003 17:39:25 -0600 (CST) Received: (from tillman@localhost) by blues.seekingfire.prv (8.11.6/8.11.6) id h19Nf9D12716 for freebsd-questions@FreeBSD.ORG; Sun, 9 Feb 2003 17:41:09 -0600 Date: Sun, 9 Feb 2003 17:41:09 -0600 From: Tillman To: freebsd-questions@FreeBSD.ORG Subject: Re: speeding up NFS Message-ID: <20030209174109.B32740@seekingfire.com> References: <200302091717.42138.ajacoutot@lphp.org> <20030209192839.GH5356@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030209192839.GH5356@dan.emsphone.com>; from dnelson@allantgroup.com on Sun, Feb 09, 2003 at 01:28:39PM -0600 X-Urban-Legend: There is lots of hidden information in headers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 09, 2003 at 01:28:39PM -0600, Dan Nelson wrote: > In the last episode (Feb 09), Antoine Jacoutot said: > > I wanted to know if someone could help me speed up NFS transfers with > > FreeBSD-4.7-STABLE. With Linux clients+server, the transfers are > > exactly twice faster than with freeBSD, so I am sure I must have > > screwed the configuration somewhere. > > Writes or reads? I bet Linux doesn't sync on NFS writes like it's > supposed to. If you set the sysctl vfs.nfsrv.async=1 on your FreeBSD > nfs server, does it match Linuxes speed? Which sysctl is this? The closest I can find is: # sysctl -a | grep nfs | grep sync vfs.nfs.async: 0 If that's the one, it may still not be necessary. I'm getting about 8.5-9 Megabytes/s on NFS reads from a Linux 2.4 client (on a 100Mbit switched LAN) with it set to 0, as measured by Bonnie++. This is fairly close to the 12MB/s fast ethernet theoretical maximum, so I'm happy with performance. -T -- Page 41: Two of the most important Unix traditions are to share and to help people. - Harley Hahn, _The Unix Companion_ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message