Re: missing madvise functionality

Ulrich Drepper
2007-04-03T22:23:19Z

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

Arnd Bergmann wrote:
> I thought this is what the read_zero_pagealigned hack [1] was used
> for (read from /dev/zero replaces target pages with empty_zero_page).

But that's not what we want. If I understand that code correctly it's
the same as the current MADV_DONTNEED. It will simply remove the
mapping for the pages and therefore upon new access it will provide
empty pages.

We want the pages to be kept around, even mapped, and only if memory
pressure is high enough collected and unmapped.

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

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