Re: stat very inefficient

viro
2004-07-29T00:33:07Z

On Wed, Jul 28, 2004 at 05:14:14PM -0700, David S. Miller wrote:
> On Wed, 28 Jul 2004 17:08:37 -0700
> Chris Wedgwood <cw@f00f.org> wrote:
>
> > Just How bad is it for you? I just tested stat on my crapbox and for
> > a short path 1M stats takes 0.5s and for a longer path (30 bytes or
> > so) 2.8s.
>
> Run "time find . -type f" on the kernel tree, both before and
> after removing the third unnecessary copy.

... with hot cache, otherwise IO time will dominate. I don't disagree
with you, but in all realistic cases I can think of it's going to be
noise (e.g. this find over kernel tree is almost certainly followed
by xargs grep, etc.).