Re: [patch] vm early reclaim orphaned pages

From: Andrea Arcangeli
Date: Thu Jun 16 2005 - 23:22:29 EST

Hello everyone,

On Fri, Jun 17, 2005 at 01:42:29PM +1000, Nick Piggin wrote:
> Yeah that is a problem I was worried about. Perhaps just stripping
> PageReferenced and putting it on the *front* of the inactive list
> would be better?

I thought about putting in font instead of the tail too.

But then I also thought this after all is truncate that will literally
free some ram, and in turn it'll delay the VM shrinking a bit (i.e.
kswapd will stop shortly after truncate started). Plus there's no reason
to assume kswapd was running when truncate was invoked.

So overall I think the basic idea is to move it in the inactive list and
to strip the referenced bit, either at the head or tail probably doesn't
make much difference, they have opposite pros/cons.

The front sounds conceptually safer even if tail probably works better
in practice.

> Will do. Thanks.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at