2

I have a NFS volume mounted in the following way:

theHostname.com:/path/on/theHostname on /local/path type nfs (rw,nosuid,addr=10.0.0.54)

The /local/path directory has 30_000 files. When I do a ls in /local/path it takes about 1s on average. When I do a ls -l it takes about 60 seconds on average.

Is there a way to speed up ls -l on NFS other than speeding up the network connection?

Wojtek
  • 465
  • 1
  • 4
  • 6
  • 1
    ls only reads the directory, with -l it has to read the directory plus all 30000 inodes (because ownership and permission bits are stored there, not in the directory). – kubanczyk Aug 15 '13 at 13:08
  • 1
    The slowest part is getting file attributes for each single file. You can a bit speed it up by increasing nfs client cache life time. Check acregmin and acregmax mount options ( man nfs ) – kofemann Aug 16 '13 at 06:29

0 Answers0