Re: [2.1.130-3] Page cache DEFINATELY too persistant... feature?

Andrea Arcangeli
1998-11-30T01:12:48Z

On 30 Nov 1998, Zlatko Calusic wrote:

>One other idea I had, was to replace (code at the very beginning of

Hey guy, this idea is mine from ages! ;-)

>do_try_to_free_page()):
>
> if (buffer_over_borrow() || pgcache_over_borrow())
> shrink_mmap(i, gfp_mask);
>
>with:
>
> if (buffer_over_borrow() || pgcache_over_borrow())
> state = 0;

This should be the thing that fixed the problem fine for people (or at
least arca-39 fixed it ;). Now I have perfect reports of the arca-39 mm
from the guys that sent the mm bug report to linux-kernel. I guess the
only interesting thing in my patch for this issue is my change you
mentioned above (and that I am using from a lot of time, and since I
started hacking the mm myself I never had mm problems anymore btw ;). With
the patch above Stephen' s patch is not needed, I don' t know if it can be
still helpful though (since I have not read it in details yet).

Andrea Arcangeli