platform_system_core/lmkd
Suren Baghdasaryan 1a2589e52b lmkd: Detect the highest level of vmpressure when event is detected
(cherry pick from commit e82e15c242)

lmkd checks for vmpressure events using epoll_wait() with eventfds of
all registered events. It's possible that multiple events of different
priorities happen before epoll_wait() returns. For these cases we
use conservative approach by assuming that the system is under the
highest registered vmpressure levels. This speeds up lmkd response time
to high memory pressure by not responding to possibly stale low pressure
levels when vmpressure rises quickly.

Bug: 63631020
Test: alloc-stress

Change-Id: I79a85c3342e7e1b3a3be82945266b2cc60b437cf
Merged-In: I79a85c3342e7e1b3a3be82945266b2cc60b437cf
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2018-03-02 01:13:16 +00:00
..
Android.bp lmkd: Remove stale dependency on libprocessgroup 2018-03-02 01:11:34 +00:00
lmkd.c lmkd: Detect the highest level of vmpressure when event is detected 2018-03-02 01:13:16 +00:00
lmkd.rc Enable hidepid=2 on /proc 2015-11-09 09:08:46 -08:00
OWNERS Add lmkd/OWNERS. 2017-12-08 16:12:58 -08:00