Re: [RFC] cleanup of use-once

From: Rik van Riel
Date: Wed May 04 2005 - 12:59:23 EST


On Tue, 3 May 2005, Nikita Danilov wrote:

> So file system pages never get to the active list? Hmm... this doesn't
> sound right.

Yes they will, I changed vmscan.c to compensate.

> > + if (referenced) {
> > + /* New page. Let's see if it'll get used again... */
> > + if (TestClearPageNew(page))
> > + goto keep_locked;
> > goto activate_locked;
> > + }
>
> This will screw scanning most likely: no referenced page is ever
> reclaimed unless lowest scanning priority is reached---this looks like
> sure way to oom and has capacity to increase CPU consumption
> significantly.

Doubtful, the VM always manages to clear the referenced bits
faster than they can be set, especially on pages that aren't
even mapped!

The problem you describe should be a lot worse for mapped
pages, where we already do not run into the problem, despite
the VM taking no precautions.

--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/