How can I improve the performance of NFS home directories in Linux?

0
9
Asked By SunnyNinja42 On

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

Answered By CuriousCoder99 On

Have you checked the bandwidth being used? It’s worth looking at your network architecture too. Those factors can definitely impact performance.

Answered By HomeDirHero On

It’s generally not recommended to share '/home' via NFS. Many organizations do it, but it's worth exploring alternatives!

Answered By TechieTurtle77 On

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!

Answered By NetworkNerd_88 On

What's the version of NFS you're using? That could make a difference in performance.

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.