1

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.

1 Answer 1

1

I was able to make the changes stick by changing the threads in /etc/nfs.conf.d/local.conf

[nfsd]
vers2 = n
vers3 = n
threads = 16

[mountd]
manage-gids = 1

And then restarting nfs-server

sudo systemctl restart nfs-server.service
1
  • thanks works 👍
    – QkiZ
    Jan 4 at 11:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.