Commit 530ff6a3 authored by Yuxuan Yan's avatar Yuxuan Yan Committed by Todd Kjos
Browse files

ANDROID: GKI: add vendor hooks android_vh_page_should_be_protected() and


android_vh_modify_scan_control().

add two vendor hooks:
    android_vh_page_should_be_protected():protect pages from memory
reclaim.
    android_vh_page_referenced_check_bypass():bypass rmap in active list
shrink.

The new vendor data field in scan_control are used to track how many
pages are protected in current reclaim and the "protected / scanned"
rate. These parameters are useful for understanding the impact of page
protection operations on LRU and reclaim, helping us make better
decsions.

Bug: 348285765
Change-Id: I49567a4b1f978821a94da0a8339b2b8fdfd52daf
Signed-off-by: default avatarYuxuan Yan <yanyuxuan3@xiaomi.corp-partner.google.com>
parent 41e1c6f9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment