Commit 92fd1034 authored by Pengfei Li's avatar Pengfei Li Committed by Fei Peng
Browse files

ANDROID: vendor_hook: Added hook to tune reclaimed huge page



android_vh_mm_customize_longterm_pinnable - This hook allows vendors to
customize some special folios that are not migrated. They should not be
migrated to avoid application lags.

android_vh_mm_do_madvise_bypass - This hook allows vendors to customize
some madvise behaviors so that some madvise requests can be completed
quickly in certain scenarios.

android_vh_mm_migrate_one_page - This hook allows vendors to track
certain folios that are being migrated.

android_vh_mm_remove_migration_pte_bypass - This hook is used to
properly handle the migration of the aforementioned special folio.

android_vh_mm_split_huge_page_bypass - This hook is used in certain
scenarios where large folios should not be split to avoid the overhead
caused by splitting.

android_vh_mm_try_split_folio_bypass - This hook is used to skip
splitting large folios during migration in certain scenarios.

Bug: 431672372
Bug: 435545311
Change-Id: I3c3580651e330dc8cfa6fa6f7a4f85fba1ba9807
Signed-off-by: default avatarPengfei Li <pengfei.kernel@vivo.corp-partner.google.com>
(cherry picked from commit 792718bb)
parent e3f70d63
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment