diff options
author | Suren Baghdasaryan <surenb@google.com> | 2018-09-05 15:46:32 -0700 |
---|---|---|
committer | Suren Baghdasaryan <surenb@google.com> | 2018-09-06 01:59:49 +0000 |
commit | 3693441d9be6fd1123443afc36cc701f16c40620 (patch) | |
tree | cf6291c41736a02ebfadf5bd237ba66bf28b9152 /lmkd/tests | |
parent | b92fd62daa0bb2eb346095408e184fdc02352b0b (diff) | |
download | system_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.cpp | 2 |
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 |