Commits
Haoran.Wang committed c784b837c43
MA-15211 Use PSI mode for lowmemorykiller for all imx8 soc Use PSI mode for lowmemorykiller instead of checking minimum free memory. The PSI mode will check the pressure of current memory status: pressure = (memory_used / (memory_used + swap_used)) * 100% Larger pressure means lower swap using. Means better memory usage situation. The upgrade_pressure means swap used much, need upgrade the killing level for some applications when pressure event received. The downgrade_pressure means the situation is not very bad, so downgrade the killing level. This patch set the swap limit from 300M to 600M. And marked if the swap costed about 400M, upgrade the killing level. So set different upgrade_pressure and downgrade_pressure value for different platforms. Change-Id: Iadfd296bfaf0db7580884a81ad6723fa2f5f58de Signed-off-by: Haoran.Wang <elven.wang@nxp.com> Reviewed-on: http://androidsource.ap.freescale.net/project/9553 Reviewed-by: Xuegang Liu <xuegang.liu@nxp.com>