From 30ea96e14e28a89c58942f1fc4f3865ede617ac8 Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Tue, 30 May 2017 09:01:38 -0700 Subject: [PATCH] logcat: logcatd: make logcatd killable Near last resort kill logcatd, set /proc/self/oom_score_adj to -600. Can kill to keep system_server, telephony and bluetooth. Test: manual, start logpersist, runs Bug: 62147352 Change-Id: I3723761bf1d2b79ce6a9557d2e78f91cc5497e96 --- logcat/logcatd.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/logcat/logcatd.rc b/logcat/logcatd.rc index 06cc90d59..07040b01d 100644 --- a/logcat/logcatd.rc +++ b/logcat/logcatd.rc @@ -61,3 +61,4 @@ service logcatd /system/bin/logcatd -L -b ${logd.logpersistd.buffer:-all} -v thr user logd group log writepid /dev/cpuset/system-background/tasks + oom_score_adjust -600