Re: Directory slowness

Bill Hawes (whawes@star.net)
Tue, 07 Oct 1997 08:29:44 -0400


Steven N. Hirsch wrote:

> Everything seems to work fine, but I've noticed that my file manager
> (Midnight Commander) is taking about 6-8x longer to stat a large directory
> (approx. 2200 files) than usual. Before I ifdef'ed the printk's out, the
> dcache code reported a large amount of activity at this point. I'm
> guessing that this slowdown is due to the shrinking algorithm?

Hi Steve,
Probably so, and we may have to back that out. Linus's comment in
d_invalidate made it clear that he intended to do a shrink, but the
invalidations happen very frequently, so it's wasting time. But I have
come up with a good way to renew dentries following a successful
operation, and this greatly lessens the number of invalidates. So the
next patch for nfs client should be much faster in this respect.

This seems to be one area where we'll need to do a lot of tuning and
reworking ..

BTW, I just got a message from someone saying nfs client didn't work on
big directories. Have you run into any problems in this area?

Regards,
Bill