> (the S=2872 is the file size. i'm not sure why stat is so
> expensive on their machine.)

I suspect it's *not* because of this:  AFS directories
are (essentially) whole-file transferred to clients
who interpret them locally, but each stat() requires an
RPC to the server.

Instead my guess would be something more like: if you're
rebuilding the quota database you can do so by N/M
readdir()'s instead of N/M readdir()'s plus N stat()'s,
which is probably a huge reduction in disk seeks, which
would be attractive since almost everything stat() would
be telling you would be irrelevant (e.g., inode number,
permissions, actual disk blocks consumed).

Dave Eckhardt

Reply via email to