summaryrefslogtreecommitdiff
path: root/libunwindstack/tests/MemoryFileTest.cpp
diff options
context:
space:
mode:
authorSuren Baghdasaryan <surenb@google.com>2019-08-14 09:48:35 -0700
committerSuren Baghdasaryan <surenb@google.com>2019-09-30 16:54:16 +0000
commit4787ab452f370c217ca1c3942442088bf1fa1804 (patch)
tree060b194031b8a5561b190c14630af7655540ee9c /libunwindstack/tests/MemoryFileTest.cpp
parent561cfd94785bea31721601793db1e3c458ade89a (diff)
lmkd: Use aggregate zone watermarks as low memory threshold
Parsing /proc/zoneinfo is expensive and zone watermarks normally do no change often. Instead of checking free memory per each zone we aggregate zone watermarks and compare them with MemFree from meminfo as an approximation of memory being under a given watermark. zoneinfo parsing is rate limited to once per minute to detect a possible change of the memory margins from userspace. Bug: 132642304 Test: lmkd_unit_test, ACT memory pressure tests Change-Id: If4a8154c004e24324e6de44359de416766139df6 Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Diffstat (limited to 'libunwindstack/tests/MemoryFileTest.cpp')
0 files changed, 0 insertions, 0 deletions