How can I improve the performance of NFS home directories in Linux?
Asked by
SunnyNinja42
I'm experiencing unresponsiveness and lag when using machines with users' home directories hosted on an NFS share. We're running an Active Directory/LDAP setup for authentication and user info, and we have autofs set up to auto-mount the NFS share during login. While performance is decent, it's not as fast as I'd like. The lag is especially noticeable when launching applications like Google Chrome, which struggles initially. I'm looking for suggestions on settings or adjustments to enhance performance and reduce these delays, particularly for users who rely on NFS home directories instead of local users.
Answers
What's the version of NFS you're using? That could make a difference in performance.
Reply to this answer
Switching to TCP instead of UDP really improved our performance. We had some strange UDP packet issues that caused auto mount delays, but once we made the change, our mount times dropped significantly. Also, try limiting the number of shares shared by reducing it to just '/home' instead of '/home/*', and increasing the autofs timeouts to cut down on unnecessary mount chatter. We found sticking with NFSv3 works better for us too!
Reply to this answer
Itโs generally not recommended to share '/home' via NFS. Many organizations do it, but it's worth exploring alternatives!
Reply to this answer
Have you checked the bandwidth being used? Itโs worth looking at your network architecture too. Those factors can definitely impact performance.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions