| 1 | = NFS Tuning = |
| 2 | * Server & Client => /etc/rc.local |
| 3 | *TCP Tuning |
| 4 | *echo 262144 > /proc/sys/net/core/rmem_default[[BR]] |
| 5 | *echo 8388608 > /proc/sys/net/core/wmem_max 131071[[BR]] |
| 6 | *echo 8388608 > /proc/sys/net/core/rmem_max[[BR]] |
| 7 | *echo "4096 87380 4194304" > /proc/sys/net/ipv4/tcp_rmem[[BR]] |
| 8 | *echo "4096 65536 4194304" > /proc/sys/net/ipv4/tcp_wmem[[BR]] |
| 9 | |
| 10 | * Server & Client => /etc/sysctl.conf[[BR]] |
| 11 | *echo "kernel.shmall = 796917578" >> /etc/sysctl.conf[[BR]] |
| 12 | *echo "kernel.shmmax = 796917578" >> /etc/sysctl.conf[[BR]] |
| 13 | *echo "kernel.shmmni = 4096" >> /etc/sysctl.conf[[BR]] |
| 14 | |
| 15 | * client => /etc/fstab[[BR]] |
| 16 | *192.168.0.111:/home /home nfs rw,bg,soft,intr,rsize=262144,wsize=262144 0 4[[BR]] |
| 17 | *192.168.0.111:/opt /opt nfs ro,bg,soft,intr,rsize=262144,wsize=262144 0 4[[BR]] |
| 18 | *192.168.0.111:/usr /usr nfs ro,bg,soft,intr,rsize=262144,wsize=262144 0 4[[BR]] |