summaryrefslogtreecommitdiffstats
path: root/lmkd/tests
diff options
context:
space:
mode:
authorSuren Baghdasaryan <surenb@google.com>2018-09-05 15:46:32 -0700
committerSuren Baghdasaryan <surenb@google.com>2018-09-06 01:59:49 +0000
commit3693441d9be6fd1123443afc36cc701f16c40620 (patch)
treecf6291c41736a02ebfadf5bd237ba66bf28b9152 /lmkd/tests
parentb92fd62daa0bb2eb346095408e184fdc02352b0b (diff)
downloadsystem_core-3693441d9be6fd1123443afc36cc701f16c40620.tar.gz
system_core-3693441d9be6fd1123443afc36cc701f16c40620.tar.bz2
system_core-3693441d9be6fd1123443afc36cc701f16c40620.zip
lmkd: rate-limit and cleanup failed kill reports
Excessive number of failed kill reports when lmkd can't find an eligible process to kill or frees not enough memory pollutes logs and bugreports. Cleanup kill reports to remove duplicate information and rate limit failed kill attempts at 1 report per sec. The number of suppressed failed kills will be reported in the next lmkd report. Bug: 113864581 Test: Verified using lmkd_unit_test Change-Id: I67fa1fec97613f136c7582115edcbc56b1503c9c Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Diffstat (limited to 'lmkd/tests')
-rw-r--r--lmkd/tests/lmkd_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lmkd/tests/lmkd_test.cpp b/lmkd/tests/lmkd_test.cpp
index 1996bae29..f54b25cf7 100644
--- a/lmkd/tests/lmkd_test.cpp
+++ b/lmkd/tests/lmkd_test.cpp
@@ -39,7 +39,7 @@ using namespace android::base;
#define LMKDTEST_RESPAWN_FLAG "LMKDTEST_RESPAWN"
#define LMKD_LOGCAT_MARKER "lowmemorykiller"
-#define LMKD_KILL_MARKER_TEMPLATE LMKD_LOGCAT_MARKER ": Killing '%s'"
+#define LMKD_KILL_MARKER_TEMPLATE LMKD_LOGCAT_MARKER ": Kill '%s'"
#define OOM_MARKER "Out of memory"
#define OOM_KILL_MARKER "Killed process"
#define MIN_LOG_SIZE 100