Re: [PATCH] ignore referenced pages on reclaim when OOM

Marcelo Tosatti
2004-11-08T18:48:38Z

On Mon, Nov 08, 2004 at 04:56:25PM -0500, Rik van Riel wrote:
> On Tue, 9 Nov 2004, Nikita Danilov wrote:
>
> > > Speeds up extreme load performance on Rik's tests.
> >
> > I recently tested quite similar thing, the only dfference being that in
> > my case references bit started being ignored when scanning priority
> > reached 2 rather than 0.
> >
> > I found that it _degrades_ performance in the loads when there is a lot
> > of file system write-back going from tail of the inactive list (like
> > dirtying huge file through mmap in a loop).
>
> Well yeah, when you reach priority 2, you've only scanned
> 1/4 of memory. On the other hand, when you reach priority
> 0, you've already scanned all pages once - beyond that point
> the referenced bit really doesn't buy you much any more.

Nikita,

Can you please rerun your tests with priority=0 instead of priority=2?