linux log 出現 consider increasing the number of threads

nfsd status 可以看這兒,檢查當前 nfsd 線程數
  • cat cat /proc/net/rpc/nfsd
rc 0 0 0
fh 0 0 0 0 0
io 0 0
th 8 0 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
ra 32 0 0 0 0 0 0 0 0 0 0 0
net 0 0 0 0
rpc 0 0 0 0 0
proc2 18 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
proc3 22 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
proc4 2 0 0
proc4ops 59 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

一般正常的 centos based 的 nfsd 預設應該是 8個,如果 /var/log/messanger 提示 consider increasing the number of threads,可以考慮加大線程數量
  • vim /etc/sysconfig/nfs
找到RPCNFSDCOUNT的部份,把值放大

- Number of nfs server processes to be started.
- The default is 8.
#RPCNFSDCOUNT=8

RPCNFSDCOUNT=16

留言

熱門文章