Re: [RFC] [PATCH] Include LRU in page count

Daniel Phillips
2002-08-31T21:20:35Z

On Saturday 31 August 2002 22:26, Andrew Morton wrote:
> Daniel Phillips wrote:
> > Manfred suggested an approach to de-racing this race using
> > atomic_dec_and_lock, which needs to be compared to the current approach.
>
> Could simplify things, but not all architectures have an optimised
> version. So ia64, mips, parisc and s390 would end up taking
> the lru lock on every page_cache_release.

As far as implementing it goes, some instances of page_cache_release are
already under the lru lock and would need an alternative, non-locking
version.

The current patch seems satisfactory performance-wise and if it's
also raceless as it's supposed to be, it gives us something that works,
and we can evaluate alternatives at our leisure. Right now I'm afraid
we have something that just works most of the time.

I think we're getting to the point where this needs to get some heavy
beating up, to see what happens.

--
Daniel