From owner-freebsd-questions Tue Jan 8 20:15:57 2002 Delivered-To: freebsd-questions@freebsd.org Received: from creme-brulee.marcuscom.com (rdu57-28-046.nc.rr.com [66.57.28.46]) by hub.freebsd.org (Postfix) with ESMTP id BF69537B404 for ; Tue, 8 Jan 2002 20:15:52 -0800 (PST) Received: from shumai.marcuscom.com (marcus@shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.11.6/8.11.6) with ESMTP id g094FPY26514; Tue, 8 Jan 2002 23:15:25 -0500 (EST) (envelope-from marcus@marcuscom.com) Subject: Re: Impoving NFS performance From: Joe Clarke To: Doug Poland Cc: Bill Moran , questions@FreeBSD.ORG In-Reply-To: <20020108210819.A5558@polands.org> References: <02010818414501.05084@proxy.the-i-pa.com> <20020108210819.A5558@polands.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 08 Jan 2002 23:15:55 -0500 Message-Id: <1010549756.69715.2.camel@shumai.marcuscom.com> Mime-Version: 1.0 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 Tue, 2002-01-08 at 22:08, Doug Poland wrote: > On Tue, Jan 08, 2002 at 06:41:45PM -0500, Bill Moran wrote: > > Ran some tests today to try to determine where some bottlenecks are occurring > > in a recently installed WAN and found something rather disturbing. > > In tests, NFS is anywhere from 4 to 20 times slower than SMB or FTP file transfer. > > FTP = ~80k/sec > > SMB = ~60k/sec > > NFS = ~25k/sec (although one test showed 2.5k/sec - ugh!) > > Fellow I work with claims that this is just the way NFS is and that we should abandon > > it for other file-sharing methods. > > Anyone have any light to shed on this? Is NFS inherently slower than SMB and other > > protocols? If no, what can be done to speed things up? > > > Here's some options I use after some research: > > -o nfsv3,intr,rdirplus,-r=32768,-w=32768 The intr option screwed me. After mounting my ports tree with it, I would get random build failures. I find that these options work fine in my small LAN: nfsv3,tcp,soft I also add the occasional nosuid or noexec where needed. > > I've never measured the performance against other protocols but this gave me > acceptable performance on a small LAN. YMMV. Never did figure out how to get > this to work via fstab. I've been mounting remote exports via shell script in > /usr/local/etc/rc.d. If you use these and can get the mounts to work via fstab, > I'd appreciate some guidance. Sure. You can do the above in /etc/fstab like: nms-server1:/images /images nfs rw,nfsv3,intr,rdirplus,-r=32768,-w=32768 0 0 It worked for me until I started trying to build ports. This was on 4.4-stable and now 4.5-PRE. Joe > > -- > Regards, > Doug > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message