Re: swapout and pte_young() PG_referenced

Andrea Arcangeli (andrea@e-mind.com)
Wed, 20 Jan 1999 01:38:13 +0100 (CET)


On Tue, 19 Jan 1999, Stephen C. Tweedie wrote:

> > But I can't see how can be useful marking the page PG_referenced before
> > return 0 if the page is young. It's not a swap cache page, it's not a
> > freeable page and shrink_mmap() can do nothing with it.
>
> > Am I missing something again ? ;)
>
> Yes. We might well have released the page before shrink_mmap() next
> comes around to it. Think about a binary which exits and is respawned.
> We want any usage information (the PG_referenced bit) to survive the
> exit() so that it is not immediately evicted from cache once the process
> exits and shrink_mmap starts taking an interest in it.

Ah cool! Thanks. I didn't though at it.

Andrea Arcangeli

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/