mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
This is a complete low memory killer solution for Android that is small and simple. Processes are killed according to the priorities that Android gives them, so that the least important processes are always killed first. Processes are killed until memory deficits are satisfied, as observed from kswapd struggling to free up pages. Simple LMK stops killing processes when kswapd finally goes back to sleep. The only tunables are the desired amount of memory to be freed per reclaim event and desired frequency of reclaim events. Simple LMK tries to free at least the desired amount of memory per reclaim and waits until all of its victims' memory is freed before proceeding to kill more processes. Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com> Signed-off-by: azrim <mirzaspc@gmail.com>
7 lines
275 B
Makefile
7 lines
275 B
Makefile
ccflags-y += -I$(src) # needed for trace events
|
|
|
|
obj-$(CONFIG_ANDROID_BINDERFS) += binderfs.o
|
|
obj-$(CONFIG_ANDROID_BINDER_IPC) += binder.o binder_alloc.o
|
|
obj-$(CONFIG_ANDROID_BINDER_IPC_SELFTEST) += binder_alloc_selftest.o
|
|
obj-$(CONFIG_ANDROID_SIMPLE_LMK) += simple_lmk.o
|