diff options
author | Mark Salyzyn <salyzyn@google.com> | 2017-05-30 09:01:38 -0700 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2017-05-31 11:27:22 -0700 |
commit | 30ea96e14e28a89c58942f1fc4f3865ede617ac8 (patch) | |
tree | 39df706e112b030a79b2574fcde2daaceef16897 | |
parent | b46fd68653131d276ccb23ba7790640c6a9c1c7d (diff) | |
download | core-30ea96e14e28a89c58942f1fc4f3865ede617ac8.tar.gz core-30ea96e14e28a89c58942f1fc4f3865ede617ac8.tar.bz2 core-30ea96e14e28a89c58942f1fc4f3865ede617ac8.zip |
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
-rw-r--r-- | logcat/logcatd.rc | 1 |
1 files changed, 1 insertions, 0 deletions
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 |