Commit e3f70d6
Pengfei Li
ANDROID: vendor_hook: Added hook for memory reclaim tuning
The following hooks are added for memory reclaim tuning:
android_vh_mm_isolate_priv_lru - This hook is used to properly handle certain
folios when they are reclaimed.
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.
android_vh_mm_customize_pgdat_balanced - When there are multiple zones, it is
not always reasonable to perform indirect reclaim 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_reclaim_idx - When there are multiple zones, vendors use
this hook to customize which zones can be reclaimed.
android_vh_mm_customize_zone_can_compact - When there are multiple zones, vendors
use this hook to customize which zones can be compacted.
Bug: 431672372
Bug: 435545311
Change-Id: I860c2665088753a5c3b6d6dfeeb25a82aeefc8af
Signed-off-by: Pengfei Li <pengfei.kernel@vivo.corp-partner.google.com>
(cherry picked from commit 6c25b93a26385e5ab85750db953d2fedf5754e0e)1 parent ee23c5c commit e3f70d6
File tree
5 files changed
+81
-2
lines changed- drivers/android
- include/trace/hooks
- mm
5 files changed
+81
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
114 | 128 | | |
115 | 129 | | |
116 | 130 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2854 | 2854 | | |
2855 | 2855 | | |
2856 | 2856 | | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
2857 | 2862 | | |
2858 | 2863 | | |
2859 | 2864 | | |
| |||
2921 | 2926 | | |
2922 | 2927 | | |
2923 | 2928 | | |
| 2929 | + | |
| 2930 | + | |
2924 | 2931 | | |
2925 | 2932 | | |
2926 | 2933 | | |
2927 | 2934 | | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
2928 | 2939 | | |
2929 | 2940 | | |
2930 | 2941 | | |
| |||
2960 | 2971 | | |
2961 | 2972 | | |
2962 | 2973 | | |
| 2974 | + | |
| 2975 | + | |
2963 | 2976 | | |
2964 | 2977 | | |
2965 | 2978 | | |
2966 | 2979 | | |
| 2980 | + | |
| 2981 | + | |
| 2982 | + | |
| 2983 | + | |
2967 | 2984 | | |
2968 | 2985 | | |
2969 | 2986 | | |
| |||
3090 | 3107 | | |
3091 | 3108 | | |
3092 | 3109 | | |
| 3110 | + | |
3093 | 3111 | | |
3094 | 3112 | | |
3095 | 3113 | | |
3096 | 3114 | | |
3097 | 3115 | | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
| 3119 | + | |
3098 | 3120 | | |
3099 | 3121 | | |
3100 | 3122 | | |
| |||
3129 | 3151 | | |
3130 | 3152 | | |
3131 | 3153 | | |
| 3154 | + | |
3132 | 3155 | | |
3133 | 3156 | | |
3134 | 3157 | | |
3135 | 3158 | | |
3136 | 3159 | | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
| 3163 | + | |
3137 | 3164 | | |
3138 | 3165 | | |
3139 | 3166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1731 | 1731 | | |
1732 | 1732 | | |
1733 | 1733 | | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
1734 | 1740 | | |
1735 | 1741 | | |
1736 | 1742 | | |
| |||
1989 | 1995 | | |
1990 | 1996 | | |
1991 | 1997 | | |
1992 | | - | |
| 1998 | + | |
1993 | 1999 | | |
1994 | 2000 | | |
1995 | 2001 | | |
| |||
2110 | 2116 | | |
2111 | 2117 | | |
2112 | 2118 | | |
2113 | | - | |
| 2119 | + | |
2114 | 2120 | | |
2115 | 2121 | | |
2116 | 2122 | | |
| |||
2345 | 2351 | | |
2346 | 2352 | | |
2347 | 2353 | | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
2348 | 2363 | | |
2349 | 2364 | | |
2350 | 2365 | | |
| |||
2458 | 2473 | | |
2459 | 2474 | | |
2460 | 2475 | | |
| 2476 | + | |
| 2477 | + | |
2461 | 2478 | | |
2462 | 2479 | | |
2463 | 2480 | | |
| |||
6302 | 6319 | | |
6303 | 6320 | | |
6304 | 6321 | | |
| 6322 | + | |
| 6323 | + | |
| 6324 | + | |
6305 | 6325 | | |
6306 | 6326 | | |
6307 | 6327 | | |
| |||
6853 | 6873 | | |
6854 | 6874 | | |
6855 | 6875 | | |
| 6876 | + | |
| 6877 | + | |
6856 | 6878 | | |
6857 | 6879 | | |
| 6880 | + | |
| 6881 | + | |
| 6882 | + | |
| 6883 | + | |
| 6884 | + | |
6858 | 6885 | | |
6859 | 6886 | | |
6860 | 6887 | | |
| |||
7462 | 7489 | | |
7463 | 7490 | | |
7464 | 7491 | | |
| 7492 | + | |
| 7493 | + | |
| 7494 | + | |
7465 | 7495 | | |
7466 | 7496 | | |
7467 | 7497 | | |
| |||
0 commit comments