Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make an option to set the number of nfs daemons #36

Open
ayoubfaouzi opened this issue Oct 4, 2019 · 1 comment
Open

Make an option to set the number of nfs daemons #36

ayoubfaouzi opened this issue Oct 4, 2019 · 1 comment

Comments

@ayoubfaouzi
Copy link

Hello,

One of the options to tune nfs server performance is to change how many nfs daemons can run simultaneously. Do you know how can we set that in this image?

Cheers.

@ayoubfaouzi ayoubfaouzi changed the title Make an option to set the number of nfs daemon Make an option to set the number of nfs daemons Oct 4, 2019
@dajianderichang
Copy link

dajianderichang commented Sep 9, 2020

有这个问题的用户大多是对nfs不太了解的人,这样做:
编辑/usr/bin/nfsd.sh这个文件
修改这一行中的数字(6就是你想设置的nfsd threads):
/usr/sbin/rpc.nfsd --debug 6 --no-udp --no-nfs-version 2 --no-nfs-version 3
修改后下次重启会生效;
如果你有很多nfs client,不方便重启
那就直接nfs server端输入
/usr/sbin/rpc.nfsd 6
(6 就是 nfs threads)

有一些地方还是不太懂,虽然他开启了--debug模式,但是不清楚在哪里查看日志,目前debug好像只能使用/usr/sbin/rpcdebug这个命令,鬼知道输出的都是些啥玩意,给你一个debug 的demo参考吧
开启:
/usr/sbin/rpcdebug -m nfsd -s all
(开启后,使用dmesg命令查看日志)
关闭:
/usr/sbin/rpcdebug -m nfsd -c all
(记得及时关闭啊,日志量超大)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants