NFS small files

Peter Hessler phessler at coverity.com
Wed Mar 9 00:56:31 GMT 2005


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.

/etc/sysctl.conf:
 vfs.vmiodirenable=1
 kern.ipc.somaxconn=2048
 kern.maxfiles=65536
 net.isr.enable=1

/boot/loader.conf:
 kern.ipc.nmbclusters=32768

Kernel Conf:
 include GENERIC
 ident NFS
 options DEVICE_POLLING
 options HZ=1000


More information about the freebsd-performance mailing list