summaryrefslogtreecommitdiffstats
path: root/lmkd/lmkd.c
diff options
context:
space:
mode:
authorSrinivas Paladugu <srnvs@google.com>2018-10-09 14:21:10 -0700
committerSrinivas Paladugu <srnvs@google.com>2018-10-16 18:58:01 +0000
commit3eb20bc954e41b865f473a645b98fb4997a8508b (patch)
treef0864a172f4aa5fff55191d4f86523d0292a09f6 /lmkd/lmkd.c
parentda915b4af3c23d6242f650a2a63567660dd9e2ed (diff)
downloadsystem_core-3eb20bc954e41b865f473a645b98fb4997a8508b.tar.gz
system_core-3eb20bc954e41b865f473a645b98fb4997a8508b.tar.bz2
system_core-3eb20bc954e41b865f473a645b98fb4997a8508b.zip
lmkd: increase the soft limit for keyboard
lmkd sets the soft limit parameters for Go devices. The limit for apps in the perceptible group is set to 16M. However this limit is not sufficient for the keyboard app to prevent pages from being re-claimed quickly. The mem usage of the keyboard app is around 55M most cases with some occasional spikes to 70-80M. Increasing the limit to 64M improves the warm startup latency for keyboard. It is still lower than the limits set for foreground and visible apps. Test: Go device (1G) Bug: 117517805 Merged-In: Id50e49327cfd76126e41ef6503971845f29196af Change-Id: Id50e49327cfd76126e41ef6503971845f29196af
Diffstat (limited to 'lmkd/lmkd.c')
-rw-r--r--lmkd/lmkd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lmkd/lmkd.c b/lmkd/lmkd.c
index 3a3d5dbb6..0a469e804 100644
--- a/lmkd/lmkd.c
+++ b/lmkd/lmkd.c
@@ -559,7 +559,7 @@ static void cmd_procprio(LMKD_CTRL_PACKET packet) {
} else if (params.oomadj >= 300) {
soft_limit_mult = 1;
} else if (params.oomadj >= 200) {
- soft_limit_mult = 2;
+ soft_limit_mult = 8;
} else if (params.oomadj >= 100) {
soft_limit_mult = 10;
} else if (params.oomadj >= 0) {