Score:1

RPCNFSDCOUNT is ignored on Ubuntu Server 22.04.1

be flag

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.

Score:1
mz flag

The /etc/default/nfs-kernel-server is not used in ubuntu 22 https://ubuntu.com/server/docs/service-nfs

Score:1
br flag

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
QkiZ avatar
be flag
thanks works
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.