NFS small files

Jon Noack noackjr at alumni.rice.edu
Wed Mar 9 23:31:49 GMT 2005


Peter Hessler wrote:
> On Tue, 08 Mar 2005 20:24:56 -0600
> Eric Anderson <anderson at centtech.com> wrote:
> :Peter Hessler wrote:
> :> I'm setting up an NFS server to be used for compiling, and it seems that
> :> while speeds are acceptable for large files, small files take much
> :> longer than expected.
> :> 
> :> Copying 10000 16K files (in a directory) takes 54seconds, while copying
> :> a 170M single file takes 5s.
> :> 
> :> Are there any tricks for speeding up small file performance?  I'm
> :> willing to give up large file performance.
> :
> :What mount options are you using on the client?
> 
> nfsvers=3,tcp,noac,intr,lock,rsize=65536,wsize=65536 on linux and freebsd
> clients.  No speed difference between udp and tcp.

I don't see some of those in mount_nfs(8):
nfsvers=3   -> nfsv3
noac        -> ? (does this option exist on FreeBSD?)
lock        -> lockd (which is the default)
rsize=65536 -> -r=65536
wsize=65536 -> -w=65536

It is possible the documentation is not complete and those options are 
perfectly valid.  If so, I apologize.

Jon


More information about the freebsd-performance mailing list