I'm trying to increase the thread count of nfsd by editing /etc/default/nfs-kernel-server
file. I set up RPCNFSDCOUNT=48
but after reboot, nfsd thread count is still Ubuntu default which is 8.
root@nfs-server2:~# ps ax | grep nfsd
2589 ? Ss 0:00 /usr/sbin/nfsdcld
2596 ? S 0:00 [nfsd]
2597 ? S 0:00 [nfsd]
2598 ? S 0:00 [nfsd]
2599 ? S 0:00 [nfsd]
2600 ? S 0:00 [nfsd]
2601 ? S 0:00 [nfsd]
2602 ? S 0:00 [nfsd]
2603 ? S 0:00 [nfsd]
2790 pts/2 S+ 0:00 grep --color=auto nfsd
Only changing thread count by hand is working.
root@nfs-server2:~# rpc.nfsd 48
root@nfs-server2:~# ps ax | grep "\[nfsd\]" | wc -l
48
But this is not reboot-proof.