diff options
author | Pavankumar Kondeti <[email protected]> | 2022-11-09 10:48:36 +0530 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2022-12-11 18:12:09 -0800 |
commit | fd3b1bc3c86ee11ba77421b00c70280605b521c6 (patch) | |
tree | 1490c5c79822c59a0ebf51974b7a665f7efe7c97 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6 (diff) |
mm/madvise: fix madvise_pageout for private file mappings
When MADV_PAGEOUT is called on a private file mapping VMA region, we bail
out early if the process is neither owner nor write capable of the file.
However, this VMA may have both private/shared clean pages and private
dirty pages. The opportunity of paging out the private dirty pages (Anon
pages) is missed. Fix this behavior by allowing private file mappings
pageout further and perform the file access check along with PageAnon()
during page walk.
We observe ~10% improvement in zram usage, thus leaving more available
memory on a 4GB RAM system running Android.
[[email protected]: v2]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Pavankumar Kondeti <[email protected]>
Cc: Charan Teja Kalla <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Suren Baghdasaryan <[email protected]>
Cc: David Hildenbrand <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions