大网数据广告活动
服务器运维问答

RPCNFSDCOUNT is ignored on Ubuntu Server 22.04.1

· 52CE 我爱测

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 nfs…

问题原文

原帖链接 · QkiZ · CC BY-SA 4.0

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.

已采纳解答

原帖链接 · Devin B. · CC BY-SA 4.0

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

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2023-01-03)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。