Xin Li
4500cc1cce
[automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master am: 2f2f638fdf -s ours
...
am: 0acfc87001 -s ours
Change-Id: I71bc8d4951bfdbbac6647f875827b7e1c217106e
2018-12-13 12:21:31 -08:00
Xin Li
d45d6e6326
[automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master
...
am: 2f2f638fdf -s ours
Change-Id: Ieb3bb5fae81eebeca7596ca4901c2dc77ec8733e
2018-12-13 11:26:27 -08:00
Xin Li
b40b4f9d70
[automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into stage-aosp-master am: 337a781009 -s ours
...
am: dc96985efb -s ours
Change-Id: I32890669ed6301901d64e7c53b75da5939afee26
2018-12-11 15:40:51 -08:00
Xin Li
f560590b92
[automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into stage-aosp-master
...
am: 337a781009 -s ours
Change-Id: If04c76722e7856c41ff9932970ad73617d06e720
2018-12-11 15:09:39 -08:00
Xin Li
85e4ce5ac7
DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master
...
Bug: 120502534
Change-Id: Id4f4f66ffb8104d953957f1c44dff6f549a387bb
2018-12-11 14:46:12 -08:00
Xin Li
6778a6c07b
DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into stage-aosp-master
...
Bug: 120502534
Change-Id: I0ab5735530d24f669cc43c961cf2118427b32a7b
2018-12-11 20:23:55 +00:00
Bill Rassieur
6bb974bc2a
Merge PQ1A.181205.006 from Pi-QPR1-Release into ToT for Pi-Platform release.\n\nBUG: 120448245
...
Change-Id: Ia66dd2a90e074d2fcb0dbaeb424031a41752dd03
2018-12-04 17:00:05 +00:00
Jim Blackler
8ff3b902d5
Add start time to LmkKillOccurred
...
This is to measure an application's behavior with respect to being LMKed
(the longer an app lives before being LMKed, the better).
Bug: 119854389
Test: Manual
Change-Id: I4ef6433391c8758626334731d2b5de038e4468ae
2018-11-28 09:26:38 +00:00
Suren Baghdasaryan
7f923eda33
Merge "lmkd: Cleanup unused code for killing processes in bulk" am: d04b38b0e5 am: 46d6d26c6c
...
am: 76cc42248e
Change-Id: Id1faa246044963fac4c5d1b7a016d8eebd830751
2018-10-29 13:51:31 -07:00
Suren Baghdasaryan
46b654d258
Merge "lmkd: retune rate at which processes are killed" am: d5eaeffcf3 am: 4d8a9caf30
...
am: ea13ea4669
Change-Id: I2a1cfb849d8600dcbb3a6b180f48078a710825b4
2018-10-29 13:50:39 -07:00
Suren Baghdasaryan
a8944aa6c5
Merge "lmkd: Cleanup unused code for killing processes in bulk" am: d04b38b0e5
...
am: 46d6d26c6c
Change-Id: I7ce93b79b64d43eae08a4b316e4cbb655e3d4e06
2018-10-29 13:44:53 -07:00
Suren Baghdasaryan
7d850ecac4
Merge "lmkd: retune rate at which processes are killed" am: d5eaeffcf3
...
am: 4d8a9caf30
Change-Id: Iba588d2de887372874bacb1f0a6dc829c0c021c7
2018-10-29 13:44:01 -07:00
Suren Baghdasaryan
68fe0cbc93
Merge "lmkd: Cleanup unused code for killing processes in bulk"
...
am: d04b38b0e5
Change-Id: Icbbc888b5a2049a94e55e48eaa9510981c114ebf
2018-10-29 13:31:26 -07:00
Suren Baghdasaryan
f12fdbe1d6
Merge "lmkd: retune rate at which processes are killed"
...
am: d5eaeffcf3
Change-Id: I5012c959668b9bf2f6ea055e6186be551bf5db20
2018-10-29 13:30:42 -07:00
Tim Murray
aa6ada0d0d
[automerger skipped] DO NOT MERGE: lmkd: retune rate at which processes are killed am: afb3a15f39 -s ours
...
am: 82fa720305 -s ours
Change-Id: I623f5065081adf1a257ebfc1f1f527302fa96ea4
2018-10-29 10:19:11 -07:00
Tim Murray
e0b5a53c5b
[automerger skipped] DO NOT MERGE: lmkd: retune rate at which processes are killed
...
am: afb3a15f39 -s ours
Change-Id: I6f11779b2b686ac61f4444e2dfba311ac6b4a6c9
2018-10-29 10:14:09 -07:00
Suren Baghdasaryan
85c31b57c4
lmkd: Cleanup unused code for killing processes in bulk
...
find_and_kill_processes() does not kill multiple processes at a time
anymore. Remove support for bulk process killing.
Change-Id: Id09132a9cebe44589a1a3ebcbff800a16fa56557
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2018-10-29 16:20:50 +00:00
Tim Murray
a79ec0f5bf
lmkd: retune rate at which processes are killed
...
Kill a single process at a time and try to wait up to 100ms for
that process to reclaim memory before triggering another kill.
Test: boots, works
bug: 116877958
Change-Id: I6775d0534b3e3728c04389d3eae1a00e3cbf9f27
2018-10-29 16:20:29 +00:00
Tim Murray
9752ee8b29
DO NOT MERGE: lmkd: retune rate at which processes are killed
...
Kill a single process at a time and try to wait up to 100ms for
that process to reclaim memory before triggering another kill.
Test: boots, works
bug: 116877958
Change-Id: I6775d0534b3e3728c04389d3eae1a00e3cbf9f27
(cherry picked from commit afb3a15f39e73978c071a58d3466993293c6d3b1)
2018-10-26 20:57:25 +00:00
Suren Baghdasaryan
d4dbf08947
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
Merged-In: I67fa1fec97613f136c7582115edcbc56b1503c9c
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
(cherry picked from commit d6cbf3f41d7cb54e7dc62f4c29f7a7cba05aa28b)
2018-10-26 20:57:23 +00:00
Tim Murray
6a9c142f1b
DO NOT MERGE: lmkd: retune rate at which processes are killed
...
Kill a single process at a time and try to wait up to 100ms for
that process to reclaim memory before triggering another kill.
Test: boots, works
bug: 116877958
Change-Id: I6775d0534b3e3728c04389d3eae1a00e3cbf9f27
2018-10-26 13:21:17 -07:00
Bill Yi
44149bfe34
[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE am: d4e20cd0f9 -s ours am: 6f691264b0 -s ours
...
am: ea149f0dad -s ours
Change-Id: I077c643d9361721b7e8352be028161bffc995c7f
2018-10-24 20:38:44 -07:00
Suren Baghdasaryan
58c52acb36
Merge "lmkd: Add command to get number of kills" am: a1c684be4f am: e518e0a1b8
...
am: 50312e155b
Change-Id: Id63ec92116193c7a485dc6243fad8ac9c5e6679d
2018-10-24 20:33:11 -07:00
Bill Yi
75fc74cc6a
[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE am: d4e20cd0f9 -s ours
...
am: 6f691264b0 -s ours
Change-Id: I0e2fd6cf802c4b132d0b5d4daa1c7bde3b1f323d
2018-10-24 19:54:21 -07:00
Suren Baghdasaryan
0a31d7860a
Merge "lmkd: Add command to get number of kills" am: a1c684be4f
...
am: e518e0a1b8
Change-Id: Ibe242de81e5e7cf027763a67dafde70621a7e152
2018-10-24 19:52:18 -07:00
Bill Yi
a6426eb63b
[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE
...
am: d4e20cd0f9 -s ours
Change-Id: Ie17a382505e1b8f6fb135a415f6fa8c9671354e4
2018-10-24 16:38:21 -07:00
Bill Yi
5b3b22bbc2
Merge pie-platform-release to aosp-master - DO NOT MERGE
...
Change-Id: I413bb086f5ff064430c061bdd5d0fe3d02925304
2018-10-24 14:48:45 -07:00
Suren Baghdasaryan
301581b8af
Merge "lmkd: Add command to get number of kills"
...
am: a1c684be4f
Change-Id: I0e22129a27765cacb7840a3c60b95b20c9d0d42d
2018-10-24 14:45:11 -07:00
Suren Baghdasaryan
a7394ea37f
lmkd: Add command to get number of kills
...
Intrduce LMK_GETKILLCNT command for ActivityManager to get the number of
kills from lmkd.
Bug: 117126077
Test: used lmkd_unit_test to verify correct reporting
Change-Id: I09c720a7176b4df95efc544177cd2694f8d791be
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2018-10-24 17:18:32 +00:00
Bill Yi
eb2614e4a4
[automerger skipped] Merge pi-platform-release to stage-aosp-master - DO NOT MERGE am: 9b472034fe -s ours
...
am: 82a731feb5 -s ours
Change-Id: I57a7b510e1e45a41e8cb77537057198b026e861c
2018-10-24 09:59:59 -07:00
Bill Yi
d3579c32ef
[automerger skipped] Merge pi-platform-release to stage-aosp-master - DO NOT MERGE
...
am: 9b472034fe -s ours
Change-Id: I425c3c5cc8d042ac822351d7a395922048eae0f8
2018-10-24 09:46:29 -07:00
Bill Yi
850ee989e4
Merge pi-platform-release to stage-aosp-master - DO NOT MERGE
...
Change-Id: Ibdbef72fcbee2eb6688f526e353f7244b93df734
2018-10-24 09:18:47 -07:00
Srinivas Paladugu
b332c05f03
[automerger skipped] Merge "lmkd: increase the soft limit for keyboard" am: 618be4c225 am: a213c8931c
...
am: 6db669c598 -s ours
Change-Id: I10d89f1f691787dd4d97e64ef03681edf203e359
2018-10-16 13:45:19 -07:00
Srinivas Paladugu
66286cb747
Merge "lmkd: increase the soft limit for keyboard" am: 618be4c225
...
am: a213c8931c
Change-Id: Ie7abdb7dcd106b31ff3b59998cf4d3636ae25411
2018-10-16 13:38:12 -07:00
Srinivas Paladugu
bab828217f
Merge "lmkd: increase the soft limit for keyboard"
...
am: 618be4c225
Change-Id: Ia475bcd0feaaeaf0ea9cb2a8af9bc12e020532fd
2018-10-16 13:31:00 -07:00
Srinivas Paladugu
a453f0b9ee
lmkd: increase the soft limit for keyboard
...
lmkd sets the soft limit parameters for Go devices.
The limit for apps in the perceptible group is set to 16M.
However this limit is not sufficient for the keyboard app to
prevent pages from being re-claimed quickly. The mem usage of
the keyboard app is around 55M most cases with some occasional
spikes to 70-80M. Increasing the limit to 64M improves the warm
startup latency for keyboard. It is still lower than the limits
set for foreground and visible apps.
Test: Go device (1G)
Bug: 117517805
Merged-In: Id50e49327cfd76126e41ef6503971845f29196af
Change-Id: Id50e49327cfd76126e41ef6503971845f29196af
2018-10-16 18:58:01 +00:00
Suren Baghdasaryan
aacf4181a3
Merge "lmkd: Implement pid purge command to clear old pids when zygote restarts" am: 79e5b550ce am: c95bfa5e9e
...
am: 1fadb0f68d
Change-Id: I2c30a4ad6f467ac71e83c07179c0cf0ac32eb8e5
2018-10-15 13:30:57 -07:00
Suren Baghdasaryan
22ec342a67
Merge "lmkd: Implement pid purge command to clear old pids when zygote restarts" am: 79e5b550ce
...
am: c95bfa5e9e
Change-Id: I55d31cc28dafdd24132e3234bc92e53028c4063b
2018-10-15 13:17:43 -07:00
Suren Baghdasaryan
fee8b42c10
Merge "lmkd: Implement pid purge command to clear old pids when zygote restarts"
...
am: 79e5b550ce
Change-Id: I054cc48a4f9106f0a4e9f313bf997facac9c1b1e
2018-10-15 13:07:28 -07:00
Rajeev Kumar
83a87e94b7
[automerger skipped] Merge "Read memory stats from /proc/pid/stat file." into pi-dev am: e77572d76d -s ours
...
am: e7d884bb50 -s ours
Change-Id: Ic2113ac9355cb645c01310a3a6a4a7e144a53992
2018-10-15 12:49:02 -07:00
Rajeev Kumar
742a2ed4f0
[automerger skipped] Merge "Read memory stats from /proc/pid/stat file." into pi-dev
...
am: e77572d76d -s ours
Change-Id: I1a594da0c5eda810d641e33809fae5c695606d68
2018-10-15 12:42:52 -07:00
TreeHugger Robot
cc7862d9b7
Merge "Read memory stats from /proc/pid/stat file." into pi-dev
2018-10-15 19:24:44 +00:00
Suren Baghdasaryan
83df0088a3
lmkd: Implement pid purge command to clear old pids when zygote restarts
...
lmkd keeps a list of pids registered by ActivityManager, however on rare
occasions when framework restarts and lmkd survives that list has to be
purged. Implement a command that can be used to clear the pid list.
Bug: 116801366
Test: locally by killing zygote process
Change-Id: I71d6012f86bb83a73edd5b687e05a0848e0569b1
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2018-10-15 16:22:17 +00:00
Suren Baghdasaryan
f405453c44
lmkd: Implement pid purge command to clear old pids when zygote restarts am: c89be17730
...
am: e6fcbe0719
Change-Id: I560e7076a24f4122a7a0c73890234ba9d8c05389
2018-10-12 16:48:13 -07:00
Suren Baghdasaryan
a6573c818c
lmkd: Implement pid purge command to clear old pids when zygote restarts
...
am: c89be17730
Change-Id: I11ebb0c22eedeaebd1c8f55ad5bec17abb82ba82
2018-10-12 16:43:03 -07:00
Suren Baghdasaryan
19e96c9c8f
Merge "lmkd: Fix an invalid access to a pointer after it's freed" am: 1f149d8d2a am: 8950a02d10
...
am: 3503445f7f
Change-Id: Ia6fe0dcf6814e29be1faba15f1c0a5ae67a59a34
2018-10-12 14:52:33 -07:00
Suren Baghdasaryan
3134deab6b
Merge "lmkd: Fix an invalid access to a pointer after it's freed" am: 1f149d8d2a
...
am: 8950a02d10
Change-Id: I87ec58231106933ef3cdcec50110c307bd2b3b83
2018-10-12 14:44:40 -07:00
Suren Baghdasaryan
fd42ffb457
Merge "lmkd: Fix an invalid access to a pointer after it's freed"
...
am: 1f149d8d2a
Change-Id: I3bd979baf13d574b0f3f6eef1236512d9342640e
2018-10-12 14:39:28 -07:00
Rajeev Kumar
d128423ee4
Read memory stats from /proc/pid/stat file.
...
(cherry pick from commit 0301683e49ab255769b15469487feaab3466167a)
Bug: 117333340
Test: Manual testing using alloc-stress tool
Change-Id: Ie555933aafa6a6b7aa1dbf5518ebe804376e0afd
Merged-In: Ie555933aafa6a6b7aa1dbf5518ebe804376e0afd
2018-10-12 21:28:50 +00:00
Srinivas Paladugu
4f3def3776
Merge "lmkd: increase the soft limit for keyboard"
2018-10-12 19:08:28 +00:00