lmkd: Add adaptiveness for ulmk
Current implementation is in such a way that when we have higher file cache levels and a psi_medium/crit event is raised, these events are forced to ignore. The side effects of this is that to get free memory system is now forced to always reclaim this page cache thus leads to thrashing, slowness of the system response e.t.c. Instead killing of tasks could be helpful in such situations. It is this logic to force kill a task vs reclaim the memory is the adaptiveness to ULMK. We rely on PSI_FULL = 80msec event which we call it as a super critical event and in such scenario adjust adj of the task that was selected by medium or critical events. And incase of just critical event, adjust the adj based on the min_free levels, availbility of free and cache memory levels. CRs-Fixed: 2590129 Change-Id: I0d7fc88657a6294aaa81ab80410c021140b23d30
Loading
Please sign in to comment