From ac499ddc33403616cd9b6c41f142dd68f558cd87 Mon Sep 17 00:00:00 2001 From: tunturn Date: Wed, 8 Mar 2017 00:29:52 +1100 Subject: shinano-common: rootdir: enable adaptive LMK Change-Id: I837aec3285c70fabf4538611f887de6c48b3b6a8 --- rootdir/init.qcom.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc index a9e2002..8f01da0 100644 --- a/rootdir/init.qcom.rc +++ b/rootdir/init.qcom.rc @@ -87,6 +87,10 @@ on fs # Mount ZRAM swapon_all fstab.qcom + # Adaptive LMK + write /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk 1 + write /sys/module/lowmemorykiller/parameters/vmpressure_file_min 53059 + on early-boot # set RLIMIT_MEMLOCK to 64MB setrlimit 8 67108864 67108864 -- cgit v1.2.3