"find" thrashes NFS servers
Jim Reid
jim at cs.strath.ac.uk
Thu Oct 5 00:12:19 AEST 1989
In article <32961 at ames.arc.nasa.gov> lamaster at ames.arc.nasa.gov (Hugh LaMaster) writes:
>Why does "find" thrash NFS servers? Is there anything that can be done
>about it?
Any recursive traverse of a remote file system will place a high load on
the server. The client has to make an NFS get file attributes request
for every file/directory it encounters. Find causes lots of these
requests to get generated. Servicing the requests places a high load on
the server. A UNIX NFS server handles these requests at interrupt time
and they can take a bit of time to process. If the requests arrive from
clients at a sustained high rate (i.e. as a client ploughs through a
remote filesystem), most of the CPU time will be given over to NFS
service, leaving little for anyone else.
The best answer is to stop find from wandering into a remote filesystem.
Most NFS implementations have a find command that understands a -fstype
option (or others like -mountstop) to help this. The same problem arises
from other recursive traverses: du and ls -R spring to mind.
Jim
More information about the Comp.unix.wizards
mailing list