summaryrefslogtreecommitdiffstats
path: root/lmkd/liblmkd_utils.c
diff options
context:
space:
mode:
authorSuren Baghdasaryan <surenb@google.com>2018-04-13 13:53:43 -0700
committerSuren Baghdasaryan <surenb@google.com>2018-04-15 16:02:36 +0000
commitc09b53db7bdc312ed81d7d82cb634b59a0e825bf (patch)
treefc3d531d198811720362c6bad631e9f9c4576366 /lmkd/liblmkd_utils.c
parent5176b4b37ab17d23ab1069d3394acb28f0a946a3 (diff)
downloadsystem_core-c09b53db7bdc312ed81d7d82cb634b59a0e825bf.tar.gz
system_core-c09b53db7bdc312ed81d7d82cb634b59a0e825bf.tar.bz2
system_core-c09b53db7bdc312ed81d7d82cb634b59a0e825bf.zip
lmkd: Introduce support for legacy kill algorithm that uses minfree levels
Add ability to switch to the algorithm used by lowmemorykiller driver for determining when to kill. It uses minfree levels to decide at which levels of free memory and file cache to kill a process. oom_adj_score is also determined by comparing current memory resources against minfree levels. ro.lmk.use_minfree_levels property is introduces for switching into this mode. By default it is disabled. Bug: 77299493 Bug: 75322373 Merged-In: I6b51972951026854a079fcda33d6786b7ed035e4 Change-Id: I6b51972951026854a079fcda33d6786b7ed035e4 Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Diffstat (limited to 'lmkd/liblmkd_utils.c')
0 files changed, 0 insertions, 0 deletions