Commits
Jessie Hao committed 6080c1fdecc
MA-13070 Add lowmemorykiller config options CTS cannot run to completion on 8mq. Meet CTS killed by lowmemorykiller but there are still much free memory. I lowmemorykiller: Killing 'android.media.cts' (4464), uid 10065, adj 0 I lowmemorykiller: to free 93080kB because system is under critical memory pressure oom_adj 0 Checked after setprop ro.lmk.use_minfree_levels true, no such issue. lmkd supports new kill strategies based on vmpressure events and the legacy mode in which lmkd makes kill decisions just as the kernel lowmemorykiller driver did. There's some issue when use new strategies.Fall back to use legacy mode,use free memory and file cache thresholds for making decisions when to kill. Change-Id: I8dd26426cfd4d38317078761addfdfbf0931c80f Signed-off-by: Jessie Hao <juan.hao@nxp.com> Reviewed-on: http://androidsource.ap.freescale.net/project/6239 Reviewed-by: Xiaowen Liu <xiaowen.liu@nxp.com> Reviewed-by: Xuegang Liu <xuegang.liu@nxp.com>