Re: [CFT][PATCH] Re: Fwd: Re: memory usage - dentry_cache

David S. Miller
2001-04-12T08:45:05Z

Alexander Viro writes:
> OK, how about wider testing? Theory: prune_dcache() goes through the
> list of immediately killable dentries and tries to free given amount.
> It has a "one warning" policy - it kills dentry if it sees it twice without
> lookup finding that dentry in the interval. Unfortunately, as implemented
> it stops when it had freed _or_ warned given amount. As the result, memory
> pressure on dcache is less than expected.

The reason the code is how it is right now is there used to be a bug
where that goto spot would --count but not check against zero, making
count possibly go negative and then you'd be there for a _long_ time
:-)

Just a FYI...

Later,
David S. Miller
davem@redhat.com