Skip to content

pagemap clear_refs: modify to specify anon or mapped vma clearing

Moussa A. Ba lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 1 patch 2 repliesIn review

Patches in v1 No applies recorded yet

The patch the cover letter announces is not in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] pagemap clear_refs: modify to specify anon or mapped vma clearing

This patch makes the clear_refs proc interface a bit more versatile. It adds support for clearing either anonymous, file mapped pages or both.

echo 1 > /proc/pid/clear_refs clears ANON pages echo 2 > /proc/pid/clear_refs clears file mapped pages echo 3 > /proc/pid/clear_refs clears all pages

Selectively clearing pages has a measurable impact on performance as it decreases the number of page walks. We have been using this interface and this adds flexibility to the user space application implementing the reference clearing.

Moussa.