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: signature.asc
Description: OpenPGP digital signature

Reply via email to