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.
4 Answers
Have you checked the bandwidth being used? It’s worth looking at your network architecture too. Those factors can definitely impact performance.
It’s generally not recommended to share '/home' via NFS. Many organizations do it, but it's worth exploring alternatives!
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!
What's the version of NFS you're using? That could make a difference in performance.
Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures