linux_wiki:nfs_shares

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_wiki:nfs_shares [2016/03/18 23:13]
billdozor [NFS Shares]
linux_wiki:nfs_shares [2019/05/25 23:50] (current)
Line 30: Line 30:
     * rpc-bind (tcp/udp 111) => needed for NFSv3 compatibility and for showmount to work from client     * rpc-bind (tcp/udp 111) => needed for NFSv3 compatibility and for showmount to work from client
     * mountd (tcp/udp 20048) => needed for the "showmount -e hostname" command to work from a client     * mountd (tcp/udp 20048) => needed for the "showmount -e hostname" command to work from a client
 +
 +----
 +
 +===== NFS Server: Increasing NFS Threads =====
 +
 +To increase NFS server performance, it is usually necessary to increase the number of NFS daemon processes running. (The default is very small at 8.)
 +
 +  * CentOS 7
 +    * Edit the following config file<code bash>vim /etc/sysconfig/nfs
 +
 +# Number of nfs server processes to be started.
 +# The default is 8.
 +RPCNFSDCOUNT=16
 +</code>
 +    * Restart the nfs-config service<code bash>systemctl restart nfs-config</code>
 +    * Restart the nfs service<code bash>systemctl restart nfs-server</code>
 +    * Verify
 +      * NFS running sysconfig (takes effect after nfs-config restart)<code bash>cat /run/sysconfig/nfs-utils
 +RPCNFSDARGS=" 16"</code>
 +      * "th" line in proc (number after 'th' is number of processes)<code bash>grep th /proc/net/rpc/nfsd
 +th 16 0 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000</code>
 +      * Running processes<code bash>ps -elf | grep nfsd] | grep -v grep | wc -l
 +16</code>
  
 ---- ----
  • linux_wiki/nfs_shares.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)