From owner-freebsd-stable@FreeBSD.ORG Tue Apr 15 01:59:30 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9C4A106566B for ; Tue, 15 Apr 2008 01:59:30 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 994708FC20 for ; Tue, 15 Apr 2008 01:59:30 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.2/8.14.2) with ESMTP id m3F1xSKu032369 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 14 Apr 2008 20:59:29 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.2/8.14.2/Submit) id m3F1xSA8032366; Mon, 14 Apr 2008 20:59:28 -0500 (CDT) (envelope-from dan) Date: Mon, 14 Apr 2008 20:59:28 -0500 From: Dan Nelson To: Alfred Perlstein Message-ID: <20080415015928.GB59360@dan.emsphone.com> References: <1208170926.12349.20.camel@nawfal-desktop> <1886249E-54FF-4EFE-A7B9-C6AB2488EB4D@inoc.net> <20080414232851.GU95731@elvis.mu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080414232851.GU95731@elvis.mu.org> X-OS: FreeBSD 7.0-STABLE User-Agent: Mutt/1.5.17 (2007-11-01) Cc: nawfal@googlemail.com, freebsd-stable@freebsd.org, Robert Blayzor Subject: Re: NFS and /etc/exports X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2008 01:59:30 -0000 In the last episode (Apr 14), Alfred Perlstein said: > * Robert Blayzor [080414 06:07] wrote: > > On Apr 14, 2008, at 7:02 AM, Nawfal bin Mohmad Rouyan wrote: > > >I'm using TCP and the entry in /etc/fstab on all clients is as below: > > > > > >build:/usr/ports /usr/ports nfs tcp,intr,nfsv3,-w=32768,-r=32768,rw,noauto 0 0 > > >build:/usr/src /usr/src nfs tcp,intr,nfsv3,-w=32768,-r=32768,rw,noauto 0 0 > > >build:/usr/obj /usr/obj nfs tcp,intr,nfsv3,-w=32768,-r=32768,rw,noauto 0 0 > > > > Are -r and -w really needed/useful for TCP mounts? > > yes. This is interesting: according to mountnfs() in nfs_vfsops.c, those are already the kernel defaults: if ((argp->flags & NFSMNT_NFSV3) && argp->sotype == SOCK_STREAM) { nmp->nm_wsize = nmp->nm_rsize = NFS_MAXDATA; } else { nmp->nm_wsize = NFS_WSIZE; nmp->nm_rsize = NFS_RSIZE; } $ grep nfs_maxdata /sys/nfs/* /sys/nfs/nfsproto.h:#define NFS_MAXDATA 32768 But it looks like /sbin/mount_nfs always overrides them to NFS_WSIZE and NFS_RSIZE (both 8K) in its nfsdefargs struct. -- Dan Nelson dnelson@allantgroup.com