Add lmkd_native.psi_partial_stall_ms test config
With MGLRU enabled, we see 5% - 16% fewer LMKs from the Beta population
compared to a non-MGLRU baseline. We'll try decreasing the LMKD wakeup
threshold by 20% in one of the experiment configurations to see if it
results in a comparable number of kills to non-MGLRU.
Bug: 384577842
Ignore-AOSP-First: 25Q2 Beta Experiment only go/android-memcgv2-exp
Change-Id: I566a4b294182ece0bd586c88e4f754160235d16f
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 6a20b1c..4787ba3 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -1324,23 +1324,31 @@
# Memcg v2 Experiment
# TODO: Revert after go/android-memcgv2-exp b/386797433
exec - system system -- /system/bin/memcgv2_activation_depth.sh 0
+ setprop persist.device_config.lmkd_native.psi_partial_stall_ms 70
on property:persist.device_config.mglru_native.lru_gen_config=core
- write /sys/kernel/mm/lru_gen/enabled 1
+ write /sys/kernel/mm/lru_gen/enabled y
+ # Memcg v2 Experiment
+ # TODO: Revert after go/android-memcgv2-exp b/386797433
+ exec - system system -- /system/bin/memcgv2_activation_depth.sh 1
+ setprop persist.device_config.lmkd_native.psi_partial_stall_ms 56
on property:persist.device_config.mglru_native.lru_gen_config=core_and_mm_walk
write /sys/kernel/mm/lru_gen/enabled y
# Memcg v2 Experiment
# TODO: Revert after go/android-memcgv2-exp b/386797433
exec - system system -- /system/bin/memcgv2_activation_depth.sh 1
+ setprop persist.device_config.lmkd_native.psi_partial_stall_ms 70
on property:persist.device_config.mglru_native.lru_gen_config=core_and_nonleaf_young
write /sys/kernel/mm/lru_gen/enabled y
# Memcg v2 Experiment
# TODO: Revert after go/android-memcgv2-exp b/386797433
exec - system system -- /system/bin/memcgv2_activation_depth.sh 2
+ setprop persist.device_config.lmkd_native.psi_partial_stall_ms 70
on property:persist.device_config.mglru_native.lru_gen_config=all
write /sys/kernel/mm/lru_gen/enabled y
# Memcg v2 Experiment
# TODO: Revert after go/android-memcgv2-exp b/386797433
exec - system system -- /system/bin/memcgv2_activation_depth.sh 3
+ setprop persist.device_config.lmkd_native.psi_partial_stall_ms 70
# Allow other processes to run `snapshotctl` through `init`. This requires
# `set_prop` permission on `snapshotctl_prop`.