nfsv3 vs nfsv4 ? advantages of moving to v4?

Hiroki Sato hrs at FreeBSD.org
Sun Apr 28 15:12:45 UTC 2013


Rick Macklem <rmacklem at uoguelph.ca> wrote
  in <1999055521.1124890.1366849234763.JavaMail.root at erie.cs.uoguelph.ca>:

rm> Jeremy Chadwick wrote:
rm> > On Wed, Apr 24, 2013 at 04:55:20PM -0700, Marc G. Fournier wrote:
rm> > >
rm> > > I found this from '11 on Linux:
rm> > > http://archive09.linux.com/feature/138453
rm> > >
rm> > > their summary is that there isn't any major advantage in moving to
rm> > > v4, but that was 2 years ago � thoughts / opinions ?
rm> > 
rm> > Start by reading nfsv4(4).
rm> > 
rm> > There are also threads about people seeing immensely decreased
rm> > performance with NFSv4. Not sure if Rick has had the time to fully
rm> > rectify this (don't let the Subject line fool you):
rm> > 
rm> > http://lists.freebsd.org/pipermail/freebsd-fs/2011-September/012381.html
rm> > 
rm> At this point, you can generally assume switching to NFSv4 will be a performance
rm> hit (or performance neutral at best). If you happen to have a high end server
rm> (such as a Netapp one that is a cluster that knows how to do pNFS),
rm> the NFSv4.1 client in head *might* improve performance
rm> beyond what NFSv3 gets from the same server, but as Jeremy noted, ymmv.
rm> Delegations (and the experimental work in projects/nfsv4-packrats) may eventually
rm> change that for some environments, as well. (I haven't yet fixed the "more Lookups
rm> than NFSv3" problem recently identified.)
rm> 
rm> The main new features that *might* be a reason for you to adopt NFSv4 at this time are (imho):
rm> - better support for byte range locking
rm> - NFSv4 ACLs
rm> A couple of others, like referrals and security labels are still some ways
rm> (maybe a long ways) down the road.

 I need more investigation, but I was trying to use NFSv4 for a while
 and noticed that my NFS server's CPU load became much higher and the
 performance was worse than NFSv3 though simple microbenchmark showed
 no much difference in performance.  The degradation seems to depend
 on the workload.

-- Hiroki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20130429/006064e4/attachment.sig>


More information about the freebsd-fs mailing list