SIMPLE_LMK: A Low Memory Killer For Android Systems Being Worked On For Linux Kernel

Written by Michael Larabel in Linux Kernel on 10 March 2019 at 05:49 PM EDT. 1 Comment
LINUX KERNEL
SIMPLE_LMK is a simple low-memory killer being worked on for potential upstreaming in the mainline Linux kernel in the future but for now is simply seeking comments on its design approach.

SIMPLE_LMK is being worked on by Sultan Alsawaf, a kernel engineer currently employed by the Comma.ai self-driving car startup. This low memory killer is designed for Android and relies upon the priorities assigned to processes within the Android ecosystem for determining what applications should be killed off first -- those with the lowest priority. This implementation is tied into the kernel's page allocator code and begins acting as soon as a page allocation hits out-of-memory and for knowing when a page is freed.

The basic implementation at this point is just a few hundred lines of code and does allow configuring the minimum amount of memory to free per reclaim as well as how often to perform memory reclaims if necessary.

The work in its "RFC" state can be found on the kernel mailing list.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week