How Can I Speed Up NFS-Based Home Directories on Linux?

0
0
Asked By CuriousCoder77 On

I'm experiencing some lag and unresponsiveness on machines that use NFS for user home directories in an Active Directory/LDAP setup. We have autofs in place to auto-mount the NFS shares when users log in, but the performance leaves a lot to be desired. Specifically, applications like Google Chrome take a while to load initially, causing slow web connections for about 30 seconds. Is there a way to optimize NFS settings or configurations to reduce this lag and improve overall performance?

4 Answers

Answered By DataDude95 On

Generally, it’s advised not to share the entire /home directory over NFS. Do you have any alternative setups in mind?

Answered By NetNerd42 On

Have you checked your network bandwidth? It's worth looking into your network's architecture to see if that's a factor.

Answered By ServerSavant88 On

What NFS version are you using?

Answered By TechieTom123 On

One of the biggest performance boosts for us came from switching to TCP instead of UDP for our NFS connections. We were experiencing these strange packet storms with UDP that made auto mounts take forever—up to 10 seconds! After switching to TCP, the mount times dropped to just about 100 milliseconds. We also cut down the number of shared directories, opting to share /home instead of /home/*, and increased the autofs timeouts to lower the maintenance chatter. Plus, we’re still using NFSv3, which has been great for our needs.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.