NFS server threads

Hi,

We have a NFS server with ~30 active clients. In Solaris and Linux it's useful to tune the amount of NFS servers threads so I also wanted to adjust it in FreeBSD.

I found two options:
  1. setting the nfs_server_flags with -n in rc.conf:
    Code:
    nfs_server_flags="-t -n 32"
  2. sysctl also has two options: vfs.nfsd.maxthreads and vfs.nfsd.minthreads

What's the difference between these two settings?

Thanks.
 
I look at it this way: sysctl's will let you adjust on the fly. nfs_server_flags will only be read at the start. I would suggest only doing sysctl. But this is my opinion.
 
nezumigeek said:
I look at it this way: sysctl's will let you adjust on the fly. nfs_server_flags will only be read at the start. I would suggest only doing sysctl. But this is my opinion.


I'd suggest using sysctl until you find the setting you want, and then sticking it in rc.conf along with the bulk of your other system configuration settings.

Sure, you could stick the setting in /etc/sysctl.conf, but I try to use that only for settings that I can't put in /etc/rc.conf - so that as much of my configuration as possible is together.
 
Back
Top