From 2770ab17b3c0912a908ec5e74948a958921a9a34 Mon Sep 17 00:00:00 2001 From: Srinivas Paladugu Date: Tue, 9 Oct 2018 14:21:10 -0700 Subject: [PATCH] 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 Change-Id: Id50e49327cfd76126e41ef6503971845f29196af --- lmkd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lmkd.c b/lmkd.c index 8b68dca..a8598ef 100644 --- a/lmkd.c +++ b/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) {