Messages in this thread | | | Date | Sat, 19 Jul 2008 13:59:30 -0400 | From | Rik van Riel <> | Subject | Re: [PATCH -mm] mm: more likely reclaim MADV_SEQUENTIAL mappings |
| |
On Sat, 19 Jul 2008 19:31:49 +0200 Johannes Weiner <hannes@saeurebad.de> wrote:
> File pages accessed only once through sequential-read mappings between > fault and scan time are perfect candidates for reclaim. > > This patch makes page_referenced() ignore these singular references and > the pages stay on the inactive list where they likely fall victim to the > next reclaim phase.
Which is exactly what the madvise man page says about pages in MADV_SEQUENTIAL ranges. Yay.
MADV_SEQUENTIAL Expect page references in sequential order. (Hence, pages in the given range can be aggressively read ahead, and may be freed soon after they are accessed.)
-- All rights reversed.
| |