WD my cloud 中只有 8 个默认 nfsd 线程可用,这个没有。不足以满足我的要求。我想将默认 nfsd 线程增加到 20 个线程。为此,我首先通过 ssh 连接到我的云。在网上发现需要编辑/etc/sysconfig/nfs文件中的RPCNFSDCOUNT参数,但sysconfig文件夹不存在。 Linux版本是3.10.39armv7l。我怎样才能增加没有。 nfsd 线程?
答案1
概要
/usr/sbin/rpc.nfsd [options] nproc
...
nproc specify the number of NFS server threads. By default, eight threads are started. However, for optimum performance several threads should be used. The actual figure depends on the number of and the work load created by the NFS clients, but a useful starting point is eight threads. Effects of modifying that number can be checked using the nfsstat(8) program.
...
配置文件
Many of the options that can be set on the command line can also be controlled through values set in the [nfsd] section of the /etc/nfs.conf configuration file. Values recognized include: threads The number of threads to start. ...
我敢说你最好的选择是修改/etc/nfs.conf
,假设你的 Linux 安装是这样配置的。