I'm experiencing some lag when using home directories on an NFS share in our Linux setup. We have an Active Directory/LDAP environment handling authentication and user info, and our NFS share is where all user home directories reside. We use autofs to automatically mount the NFS share when users log in. While performance is generally okay, it definitely could be better. Specifically, I notice substantial lag when launching applications like Google Chrome, especially on the first run, where it takes about 30 seconds to a minute for it to load. I'm looking for ways to improve this performance and minimize the stuttering for users who have NFS-based home directories. Any suggestions?
4 Answers
Have you checked your network bandwidth? Understanding your network architecture is crucial. If you have high-speed connections to your NAS but slower connections to clients, it can cause delays.
We managed to improve our NFS performance significantly by switching from UDP to TCP. We were having issues with long mount times, sometimes taking up to 10 seconds due to UDP packet storms, but after the switch, it dropped to around 100ms. Also, limiting the NFS shares to just /home instead of /home/* and increasing the autofs timeouts helped reduce the maintenance chatter, which made a difference. We're still on NFSv3, which works well for us.
What's the version of NFS you're using? It’s worth noting that NFSv3 tends to perform better than its predecessors.
I’ve heard it’s not recommended to share /home on NFS due to performance issues. Have you considered other setups? Like perhaps not using NFS for /home at all?

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