Re: missing madvise functionality

Ulrich Drepper
2007-04-03T17:10:29Z

[-- Attachment #1: Type: text/plain, Size: 479 bytes --]

Rik van Riel wrote:
> I already started looking into implementing this.
>
> Basically:
> [...]

Sounds good. Except:

> 1) on MADV_DONTNEED, mark pages clean, not accessed and move them
> to some "dontneed" LRU list.

LRU is likely the wrong answer. The longer a page has not been reused
the more likely it won't be. So, the dontneed-list should be a simple
FIFO.

--
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]