From owner-freebsd-questions@FreeBSD.ORG Thu Oct 6 16:18:30 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 D2D9C16A41F for ; Thu, 6 Oct 2005 16:18:30 +0000 (GMT) (envelope-from djp@polands.org) Received: from moab.polands.org (CPE-24-208-53-189.new.res.rr.com [24.208.53.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2960143D45 for ; Thu, 6 Oct 2005 16:18:21 +0000 (GMT) (envelope-from djp@polands.org) Received: from jericho.polands.org ([172.16.1.35]) by moab.polands.org (8.13.1/8.13.1) with ESMTP id j96FAFSm035098; Thu, 6 Oct 2005 10:10:15 -0500 (CDT) (envelope-from djp@polands.org) Received: from jericho.polands.org (localhost [127.0.0.1]) by jericho.polands.org (8.13.3/8.13.1) with ESMTP id j96FAFOj043078; Thu, 6 Oct 2005 10:10:15 -0500 (CDT) (envelope-from djp@jericho.polands.org) Received: (from djp@localhost) by jericho.polands.org (8.13.3/8.13.1/Submit) id j96FAElS043077; Thu, 6 Oct 2005 10:10:14 -0500 (CDT) (envelope-from djp) Date: Thu, 6 Oct 2005 10:10:14 -0500 From: Doug Poland To: Brian Candler Message-ID: <20051006151014.GB32796@polands.org> References: <20051006144532.GA77214@uk.tiscali.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051006144532.GA77214@uk.tiscali.com> User-Agent: Mutt/1.5.9i Cc: freebsd-questions@freebsd.org Subject: Re: Setting mount_nfs options in /etc/fstab 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: Thu, 06 Oct 2005 16:18:31 -0000 On Thu, Oct 06, 2005 at 03:45:32PM +0100, Brian Candler wrote: > I am reading large log files via NFS, and I find that if I mount them > with mount_nfs -a 4 then performance is improved. > > My question is: is there any way to set the option '-a 4' in > /etc/fstab? Or am I forced to mount the filesystems the manual way in > /etc/rc.local? > > mount_nfs supports a number of options via -o, many of which it > describes as "historic" and "deprecated", but they don't include > something to set readahead as far as I can see. > Here's an fstab entry of mine for an nfs mount. fs:/data /data nfs -3,-R=3,-b,-i,-s,-r=32768,-w=32768,rw 0 0 Your options and milage may vary... -- Regards, Doug