lkml.org 
[lkml]   [1999]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: swapout and pte_young() PG_referenced
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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.048 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site