From owner-freebsd-stable@FreeBSD.ORG Sat Sep 4 02:31:15 2010 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 DD38B10656D0 for ; Sat, 4 Sep 2010 02:31:15 +0000 (UTC) (envelope-from rick@rix.kiwi-computer.com) Received: from rix.kiwi-computer.com (66-191-70-202.static.stcd.mn.charter.com [66.191.70.202]) by mx1.freebsd.org (Postfix) with SMTP id 726D18FC14 for ; Sat, 4 Sep 2010 02:31:15 +0000 (UTC) Received: (qmail 47884 invoked by uid 2000); 4 Sep 2010 02:31:14 -0000 Date: Fri, 3 Sep 2010 21:31:14 -0500 From: "Rick C. Petty" To: Rick Macklem Message-ID: <20100904023114.GA47730@rix.kiwi-computer.com> References: <20100830172259.GA20421@rix.kiwi-computer.com> <378785023.301734.1283219978549.JavaMail.root@erie.cs.uoguelph.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <378785023.301734.1283219978549.JavaMail.root@erie.cs.uoguelph.ca> User-Agent: Mutt/1.4.2.3i Cc: freebsd-stable@freebsd.org Subject: Re: Why is NFSv4 so slow? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd2009@kiwi-computer.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2010 02:31:15 -0000 On Mon, Aug 30, 2010 at 09:59:38PM -0400, Rick Macklem wrote: > > I don't tune anything with sysctl, I just use what I get from an > install from CD onto i386 hardware. (I don't even bother to increase > kern.ipc.maxsockbuf although I suggest that in the mount message.) Sure. But maybe you don't have server mount points with 34k+ files in them? I notice when I increase maxsockbuf, the problem of "disappearing files" goes away, mostly. Often a "find /mnt" fixes the problem temporarily, until I unmount and mount again. > The only thing I can suggest is trying: > # mount -t newnfs -o nfsv3 :/path /mnt > and seeing if that performs like the regukar NFSv3 or has > the perf. issue you see for NFSv4? Yes, that has the same exact problem. However, if I use: mount -t nfs :/path /mnt The problem does indeed go away! But it means I have to mount all the subdirectories independently, which I'm trying to avoid and is the reason I went to NFSv4. > If this does have the perf. issue, then the exp. client > is most likely the cause and may get better in a few months > when I bring it up-to-date. Then that settles it-- the newnfs client seems to be the problem. Just to recap... These two are *terribly* slow (e.g. a VBR mp3 avg 192kbps cannot be played without skips): mount -t newnfs -o nfsv4 server:/path /mnt mount -t newnfs -o nfsv3 server:/path /mnt But this one works just fine (H.264 1080p video does not skip): mount -t nfs server:/path /mnt I guess I will have to wait for you to bring the v4 client up to date. Thanks again for all of your contributions and for porting NFSv4 to FreeBSD! -- Rick C. Petty