Re: Directory slowness

Steven N. Hirsch (shirsch@ibm.net)
Tue, 7 Oct 1997 18:23:35 -0400 (EDT)


On Tue, 7 Oct 1997, Bill Hawes wrote:

> 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.

I'll look for it.

>
> 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?
>

I have not been specifically testing for that, but _now_ I will be <g>.

Funny thing, though, I'm not able to see all the directories on a mounted
CD-ROM from that machine.. I was ready to blame the drive, but now I'm
not so sure.

I'll let you know if I trip over anything.

Steve