[Ubuntu] Does the "find" command cache file system info?
ubuntu at prpcompany.com
Sun Sep 16 16:54:20 UTC 2012
Thanks. Josh Smith made pretty much the same astute observation.
On 9/16/2012 12:06 PM, Liam Proven wrote:
> On 16 September 2012 00:16, John Hupp <ubuntu at prpcompany.com> wrote:
>> I'm curious about this observation: If I do a find search on the root
>> directory, it ordinarily takes a minute or two -- as one would expect if it
>> were examining everything afresh.
>> But if I follow that up with a different find search on the root, it
>> finishes in a few seconds.
>> Does find cache file system information and reuse it under certain
>> conditions? Or does Linux itself cache some sort of information from an
>> initial search that a subsequent search benefits from?
> This is precisely what a disk cache is *for*. It is the purpose of its
> existence. It caches the indices of, well, pretty much all the
> directories of your disk, so next time, the search is purely in
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ubuntu-users