diff options
author | Suren Baghdasaryan <surenb@google.com> | 2018-04-13 13:53:43 -0700 |
---|---|---|
committer | Suren Baghdasaryan <surenb@google.com> | 2018-04-15 02:29:57 -0700 |
commit | d273b6630d47d6bb32996bcc87e01a73240cb228 (patch) | |
tree | ddab4d2f600b4dcaeef49a9f4007370f4401d832 /lmkd/README.md | |
parent | 9ac54eb2f88a4a8fc84d1da307be93f99573ead4 (diff) | |
download | system_core-d273b6630d47d6bb32996bcc87e01a73240cb228.tar.gz system_core-d273b6630d47d6bb32996bcc87e01a73240cb228.tar.bz2 system_core-d273b6630d47d6bb32996bcc87e01a73240cb228.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
Change-Id: I6b51972951026854a079fcda33d6786b7ed035e4
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Diffstat (limited to 'lmkd/README.md')
-rw-r--r-- | lmkd/README.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lmkd/README.md b/lmkd/README.md index ba2e83d06..656a6ea0a 100644 --- a/lmkd/README.md +++ b/lmkd/README.md @@ -29,6 +29,11 @@ properties: ro.config.low_ram: choose between low-memory vs high-performance device. Default = false. + ro.lmk.use_minfree_levels: use free memory and file cache thresholds for + making decisions when to kill. This mode works + the same way kernel lowmemorykiller driver used + to work. Default = false + ro.lmk.low: min oom_adj score for processes eligible to be killed at low vmpressure level. Default = 1001 (disabled) |