From owner-freebsd-questions Sun Feb 9 15:48:27 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 88BAB37B401 for ; Sun, 9 Feb 2003 15:48:26 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB96B43F85 for ; Sun, 9 Feb 2003 15:48:25 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.6/8.12.6) id h19NmPh3024314; Sun, 9 Feb 2003 17:48:25 -0600 (CST) (envelope-from dan) Date: Sun, 9 Feb 2003 17:48:25 -0600 From: Dan Nelson To: Tillman Cc: freebsd-questions@FreeBSD.ORG Subject: Re: speeding up NFS Message-ID: <20030209234825.GJ5356@dan.emsphone.com> References: <200302091717.42138.ajacoutot@lphp.org> <20030209192839.GH5356@dan.emsphone.com> <20030209174109.B32740@seekingfire.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030209174109.B32740@seekingfire.com> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.3i 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 In the last episode (Feb 09), Tillman said: > Which sysctl is this? The closest I can find is: > > # sysctl -a | grep nfs | grep sync > vfs.nfs.async: 0 Same one. They split the server sysctls out into nfsrv in 5.*. > 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. It only applies to writes. With it set to 0 (the default), FreeBSD follows the NFS spec and does not return from NFSv2 write or NFSv3 commit calls without having synced the data to disk. This can slow you down if you are not on a battery-backed RAID or ramdisk. With NFSv3 it's not so bad since it supports async client writes (i.e. separate write and commit calls). -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message