summaryrefslogtreecommitdiff
path: root/libutils/String8.cpp
diff options
context:
space:
mode:
authorSuren Baghdasaryan <surenb@google.com>2018-01-04 09:16:21 -0800
committerSuren Baghdasaryan <surenb@google.com>2018-03-02 01:13:16 +0000
commit1a2589e52ba8d1d5465882cdde70bd12020eaeb0 (patch)
tree35d108d9780577652c296d0a5a71a4fd256e3cbb /libutils/String8.cpp
parentab05d67d8614d93e030a1700d7c6de29bb79c2f4 (diff)
lmkd: Detect the highest level of vmpressure when event is detected
(cherry pick from commit e82e15c242d32272fe3493b0d358329e6e3d9fa7) 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>
Diffstat (limited to 'libutils/String8.cpp')
0 files changed, 0 insertions, 0 deletions