From: David Douthitt Date: 2002-06-20T23:09:28+09:00 Subject: Re: Are Unix tools just slow? This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. ----=_NextPart_ST_09_05_55_Thursday_June_20_2002_21520 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable RE: sudo find / > /dev/null takes 61 seconds... Well, find is known for being one of the biggest resource hogs in UNIX - an= d find / is particularly brutal. Watch your usage levels with vmstat next = time you run find / ... A tip: Instead of: find / -name "blah" Do this ahead of time: find / | ls -l > /.filemaster Then your find command gets changed to this: grep /.filemaster "blah" =2E..and it goes lightning fast and doesn't hog system resources. ----=_NextPart_ST_09_05_55_Thursday_June_20_2002_21520 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
RE: sudo find / > /dev/null takes 61 seconds...

Well, find is known for being one of the biggest resource hogs in = UNIX=20 - and find / is particularly brutal.  Watch your usage levels with vms= tat=20 next time you run find / ...
 
A tip:
 
Instead of:
 
find / -name "blah"
 
Do this ahead of time:
 
find / | ls -l > /.filemaster
 
Then your find command gets changed to this:
 
grep /.filemaster "blah"
 
...and it goes lightning fast and doesn't hog system resources.
 
----=_NextPart_ST_09_05_55_Thursday_June_20_2002_21520--