lkml.org 
[lkml]   [1998]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateThu, 8 Oct 1998 13:22:37 -0400 (EDT)
FromKenneth Albanowski <>
SubjectRe: 'disposable' dirty pages [was: Out Of Memory in v. 2.1]
On Thu, 8 Oct 1998, Alan Cox wrote:

> > Which isn't quite true, unfortunately. To make this true, the act of
> > making the page DISCARDABLE should also zero it. Otherwise, you can tell
> > whether a page was discarded by whether it contains data, which in turn
>
> Not if you marked it discardable - you just said that zeroed it.

Well, that's the issue. It's more efficient if it doesn't.

> Since a page thats discarded will be returned as zero you just need a flag
> around if you care. Another approach would be to fault such pages so you
> pick up the buserr

Or just set up DISCARDABLE to at read/write not only clears the
DISCARDABLE flag, but also zeros the memory. That would make it
indistinguishable from a zero mapping.

Hmm... It's starting to sound like we are reinventing either zero mapping,
or lazy clear of zero pages...

--
Kenneth Albanowski (kjahds@kjahds.com, CIS: 70705,126)



-
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:44    [from the cache]
©2003-2010