DEV Community

Leesoo Ahn
Leesoo Ahn

Posted on

Overview of LMKD

LMKD (Low Memory Kill Daemon) is a core component of Android system. It keeps watching memory pressure to prevent that the system-wide memory is now being thrashed or not with a few cool algorithms. This process goes on before OOM-killer of Kernel wakes up.

  1. Watch the state of memory pressure.
  2. Handle Android apps through OOM score.
  3. Pick one process by victim selecting algorithms.
  4. Finally kill victim and try reclaiming free pages.

Therefore, it takes the responsibility of making UX better and stabilize entire system.

Top comments (0)