ANDROID: vendor_hook: Added hook for memory reclaim tuning
The following hooks are added for memory reclaim tuning:
android_vh_mm_customize_lru_add_dst - We create private LRU lists for some
folios used by specific processes, and these folios are managed separately.
This hook is used to ensure that the aforementioned separately managed folios
are also properly handled during split_huge_page.
android_vh_mm_isolate_priv_lru - This hook is used to properly handle certain
folios when they are reclaimed.
android_vh_mm_customize_pgdat_balanced - When there are multiple zones, it is
not always reasonable to perform indirect collection only when all zones do not
meet the watermark. This hook allows vendors to customize pgdat_balanced to use
their own strategy to determine whether to perform and stop indirect collection.
android_vh_mm_customize_file_is_tiny - For a specific process, we want only
anonymous pages to be reclaimed. This hook allows vendors to modify the value
of file_is_tiny to affect the reclaim behavior.
Bug: 431730501
Change-Id: I860c2665088753a5c3b6d6dfeeb25a82aeefc8af
Signed-off-by:
Pengfei Li <pengfei.kernel@vivo.corp-partner.google.com>
Loading