>
>--- Joerg Schilling
><[EMAIL PROTECTED]> wrote:
>
>> Chung Hang Christopher Chan <[EMAIL PROTECTED]>
>> wrote:
>> 
>> >
>> > > "What, Slowlaris still exists?"
>> >
>> > Well, I sure was blown away by the incredible
>> > difference between Solaris 8 find and gnu find.
>> 
>> Well, GNU find does not work correctly. This is why
>> it seems to be fast.
>
>'find queue/mess/* -print | wc -w'
>
>What does solaris 8 find and gnu find do differently?


Solaris find calls stat(2) on all files to determine whether they are
directories; this requires *all* inodes to be brought into memory.

GNU find does not call stat on any of the "leaf" files because it believes 
that when a directory has only 2 hard links to it, no entries in the 
directory other than "." or ".." will be directories so requiring "stat"
is not necessary to find more sub directories.

Unfortunately, GNU find's optimization is incorrect for a number of 
filesystems and GNU find therefor may give an incorrect answer but will
give it more quickly.  Solaris will give the correct answer in all cases, 
but not as fast as GNU find.

Casper

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to