commit | 9d5c33c88d9841362e7aa8c29f5bc94c70f2fad8 | [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 | 4047066a02ffcc1ec46fdf44bb9ccd4656263d42 | |
parent | 5627bd8229880c890383ebefcd255f22cfd3f8e1 [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>