Date: Mon, 6 Jul 2015 16:46:15 -0400 (EDT) From: Rick Macklem <rmacklem@uoguelph.ca> To: Graham Allan <allan@physics.umn.edu> Cc: freebsd-fs@freebsd.org Subject: Re: increasing MAXNFSDCNT Message-ID: <1318238880.4985990.1436215575189.JavaMail.zimbra@uoguelph.ca> In-Reply-To: <20150706191956.GL12772@physics.umn.edu> References: <20150706191956.GL12772@physics.umn.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Graham Allan wrote: > Regarding the maximum number of nfs server threads, is increasing the > "#define MAXNFSDCNT 256" in nfsd.c the only thing needed to try higher > values? > Oops, my turn to admit that I should have read the man page before answering. If you have a fairly recent nfsd that supports the "-maxthreads" option, you can set this and I'm pretty sure you can make it larger than 256. The system actually dynamically adjusts the # of nfsd kernel threads between "-minthreads" and "-maxthreads". The "-n" option (which should probably be deprecated) sets both of these to the same value and is limited to MAXNFSDCNT (256). If your nfsd doesn't support "-maxthreads", increasing MAXNFSDCNT should work. rick > My FreeBSD nfs servers are still just at 128 threads, but I was > experimenting with one of our linux servers which became happy > at 512 threads (really ~400 in use under load). The load profile is > pretty similar, so it might be reasonable to expect ending up around the > same value. > > Graham > -- > > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1318238880.4985990.1436215575189.JavaMail.zimbra>