commit | 662492ab1d21f138483a8f3943483924e8779d29 | [log] [tgz] |
---|---|---|
author | Suren Baghdasaryan <surenb@google.com> | Fri Dec 08 13:17:06 2017 -0800 |
committer | Suren Baghdasaryan <surenb@google.com> | Tue Jan 16 15:42:33 2018 -0800 |
tree | 05970736966b501884290741665e3c28f9ae1cb3 | |
parent | ad2fd9150bdbb9abdbc26c6a395f007b4cca7567 [diff] |
lmkd: add logic to kill the heaviest of the eligible processes Killing the most memory-demanding process from the set of eligible processes yields better results on high-performance devices than killing the first one we could find. This is in line with how in-kernel lowmemorykiller driver chooses its victims. Bug: 63631020 Test: alloc-stress Change-Id: Ie1ef7f33f3e79698a9b4120c14490386d6129f9b Signed-off-by: Suren Baghdasaryan <surenb@google.com>