lmkd: Change critical thrashing limit to 3x of normal one am: ab906fb0ce am: 6c4dbbadb4

Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2775527

Change-Id: I70b56cf4e700ca1120e896a49e6e875172b0a358
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Suren Baghdasaryan 2023-10-05 18:15:27 +00:00 committed by Automerger Merge Worker
commit 74cb48967d
1 changed files with 1 additions and 1 deletions

View File

@ -3778,7 +3778,7 @@ static bool update_props() {
thrashing_limit_decay_pct = clamp(0, 100, GET_LMK_PROPERTY(int32, "thrashing_limit_decay",
low_ram_device ? DEF_THRASHING_DECAY_LOWRAM : DEF_THRASHING_DECAY));
thrashing_critical_pct = std::max(
0, GET_LMK_PROPERTY(int32, "thrashing_limit_critical", thrashing_limit_pct * 2));
0, GET_LMK_PROPERTY(int32, "thrashing_limit_critical", thrashing_limit_pct * 3));
swap_util_max = clamp(0, 100, GET_LMK_PROPERTY(int32, "swap_util_max", 100));
filecache_min_kb = GET_LMK_PROPERTY(int64, "filecache_min_kb", 0);
stall_limit_critical = GET_LMK_PROPERTY(int64, "stall_limit_critical", 100);