nfsv3 vs nfsv4 ? advantages of moving to v4?

Rick Macklem rmacklem at uoguelph.ca
Thu Apr 25 00:21:44 UTC 2013


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

The main new features that *might* be a reason for you to adopt NFSv4 at this time are (imho):
- better support for byte range locking
- NFSv4 ACLs
A couple of others, like referrals and security labels are still some ways
(maybe a long ways) down the road.

> You can also Google for "nfsv4 freebsd performance" and take in what
> you
> can, but remember, YMMV. You should always test in your own
> environments, as pretty much everyone's equipment and setups are
> different.
> 
> --
> | Jeremy Chadwick jdc at koitsu.org |
> | UNIX Systems Administrator http://jdc.koitsu.org/ |
> | Mountain View, CA, US |
> | Making life hard for others since 1977. PGP 4BD6C0CB |
> 
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"


More information about the freebsd-fs mailing list