Commit Graph

1496 Commits

Author SHA1 Message Date
Yuming Han 79f58c012d lmkd: Fixed data overflow on ARM
Both pgscan_kwsapd and pgscan_direct are defined as unsigned long,
the overflow issues occur on ARM kernel space. Just check whether
their values changed.

Signed-off-by: Yuming Han <yuming.han@unisoc.com>
Change-Id: I73b27855ede9ca729208775e982660bae967ab92
2022-06-29 16:06:18 +08:00
Suren Baghdasaryan b8572da6e3 lmkd: Fix the size of vmstat_field_names array am: caebcddf9f am: 2c75c4987c am: 150ff325ac am: ab1cf2b96b am: a49cf928a4
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2132969

Change-Id: Ifbda6435eff48535013ec4521123d6f8f47a062e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 01:52:53 +00:00
Suren Baghdasaryan a49cf928a4 lmkd: Fix the size of vmstat_field_names array am: caebcddf9f am: 2c75c4987c am: 150ff325ac am: ab1cf2b96b
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2132969

Change-Id: Ifd1c4404f5c3636b6dd16a2a46df6e926b94bd59
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 01:32:55 +00:00
Suren Baghdasaryan ab1cf2b96b lmkd: Fix the size of vmstat_field_names array am: caebcddf9f am: 2c75c4987c am: 150ff325ac
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2132969

Change-Id: I0c799db1ec9111994b36c88a54231dc1b0d4dd86
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 01:16:35 +00:00
Suren Baghdasaryan 150ff325ac lmkd: Fix the size of vmstat_field_names array am: caebcddf9f am: 2c75c4987c
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2132969

Change-Id: I693d2d097a08df644df33b951e4330ed2a846aed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 00:58:13 +00:00
Suren Baghdasaryan 2c75c4987c lmkd: Fix the size of vmstat_field_names array am: caebcddf9f
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2132969

Change-Id: Id034f3723232a95b220d3f15e4f2aa7668b26294
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 00:39:22 +00:00
Suren Baghdasaryan caebcddf9f lmkd: Fix the size of vmstat_field_names array
The size of the vmstat_field_names array should correspond to the number
of elements in vmstat_field enum (VS_FIELD_COUNT).

Bug: 227769256
Reported-by: Yuming Han <yuming.han@unisoc.com>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Icac2810c4efca2a07cefba6e220165ef4f194867
2022-06-22 23:10:47 +00:00
Kameron Lutes cd529b0cc8 [automerger skipped] lmkd: Fix potential null dereference in hook call am: e9769f7cf3 am: 12371c792c am: e07a5bee30 am: 6bceb12f9b am: b915fba841 -s ours
am skip reason: Merged-In Ie81ca9bdb73a71f16dc5682c8721a557b8b094fb with SHA-1 4c65da8696 is already in history

Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2133711

Change-Id: I34c8f84ab64517e7838082dd495ef58ed1377885
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 22:58:12 +00:00
Kameron Lutes 0c882b6611 [automerger skipped] lmkd: Add hooks to LMKD am: 2cce3066da am: 60969b1fef am: 4fb05dfe00 am: d10338cbbd am: 0ca2d7083b -s ours
am skip reason: Merged-In Ib231743183134b05148d45d681765860da6274ae with SHA-1 d74b6c0fcc is already in history

Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2133710

Change-Id: I52e272e9c97f033768580d235ed4bc8374c89992
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 22:58:11 +00:00
Kameron Lutes b915fba841 lmkd: Fix potential null dereference in hook call am: e9769f7cf3 am: 12371c792c am: e07a5bee30 am: 6bceb12f9b
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2133711

Change-Id: I4c4d724998b856d9428edb16596ba623de98863a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 22:39:11 +00:00
Kameron Lutes 0ca2d7083b lmkd: Add hooks to LMKD am: 2cce3066da am: 60969b1fef am: 4fb05dfe00 am: d10338cbbd
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2133710

Change-Id: I152bb02c32f95ced589cccca0e3237ec22f32546
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 22:39:02 +00:00
Kameron Lutes 6bceb12f9b lmkd: Fix potential null dereference in hook call am: e9769f7cf3 am: 12371c792c am: e07a5bee30
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2133711

Change-Id: I6c0a2451bea9515564a8c240b4a7c71b960138f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 22:23:28 +00:00
Kameron Lutes d10338cbbd lmkd: Add hooks to LMKD am: 2cce3066da am: 60969b1fef am: 4fb05dfe00
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2133710

Change-Id: Iad313f2ac0cc500cc09ecbe4119bdf8561a9bc7a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 22:23:27 +00:00
Kameron Lutes e07a5bee30 lmkd: Fix potential null dereference in hook call am: e9769f7cf3 am: 12371c792c
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2133711

Change-Id: Ib5496447d3b5667cc5f28dd3002339c5ed448350
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 22:04:33 +00:00
Kameron Lutes 4fb05dfe00 lmkd: Add hooks to LMKD am: 2cce3066da am: 60969b1fef
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2133710

Change-Id: If262e1cd80111a6cec8027144f9504e4042dd77f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 22:04:29 +00:00
Kameron Lutes 12371c792c lmkd: Fix potential null dereference in hook call am: e9769f7cf3
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2133711

Change-Id: I01aeddc9d39f351e49b3d63b09ffb10f3ab7f8ae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 21:45:39 +00:00
Kameron Lutes 60969b1fef lmkd: Add hooks to LMKD am: 2cce3066da
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2133710

Change-Id: I5a99f58b135fa865635c2873bae0e9eea9733815
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 21:45:38 +00:00
Kameron Lutes e9769f7cf3 lmkd: Fix potential null dereference in hook call
If hooks are enabled in LMKD and kill_info is not supplied to
kill_one_process, there will be a null dereference on kill_info. This
changes validates ki before dereferencing.

Bug: b/210075795
Test: cq
Change-Id: Ie81ca9bdb73a71f16dc5682c8721a557b8b094fb
Merged-In: Ie81ca9bdb73a71f16dc5682c8721a557b8b094fb
2022-06-22 03:40:33 +00:00
Kameron Lutes 2cce3066da lmkd: Add hooks to LMKD
Adds several hooks to LMKD that can be overridden by the vendor. This
allows for device specific control of LMKD when necessary.

Bug: b/210075795
Test: cq

Change-Id: Ib231743183134b05148d45d681765860da6274ae
(cherry picked from commit 2c1248381a52fc520c6cd1acfaee80818eaa9ee1)
Merged-In: Ib231743183134b05148d45d681765860da6274ae
2022-06-22 03:35:23 +00:00
Yongqin Liu 631c08c268 lmkd: fix the cgroup attribute name to MemCgroupEventControl am: bf819b5593 am: 14512ee7af am: 09c2245060 am: 7d2fad9ecd am: 788190b880
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2080181

Change-Id: Iff255e09c0c3368e3be990047d7d4f739932e869
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-29 23:27:20 +00:00
Yongqin Liu 788190b880 lmkd: fix the cgroup attribute name to MemCgroupEventControl am: bf819b5593 am: 14512ee7af am: 09c2245060 am: 7d2fad9ecd
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2080181

Change-Id: Ie2325f3c6bba3a46f2b8d5dd341c9a72d88a9aa6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-29 19:49:43 +00:00
Yongqin Liu 7d2fad9ecd lmkd: fix the cgroup attribute name to MemCgroupEventControl am: bf819b5593 am: 14512ee7af am: 09c2245060
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2080181

Change-Id: Ibb8a4af76320e100862d5d690f9a6df07f39e73c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-29 19:16:35 +00:00
Yongqin Liu 09c2245060 lmkd: fix the cgroup attribute name to MemCgroupEventControl am: bf819b5593 am: 14512ee7af
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2080181

Change-Id: I644bfe01465528f5807c3c6977e5bdebbc5528a8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-29 18:25:40 +00:00
Yongqin Liu 14512ee7af lmkd: fix the cgroup attribute name to MemCgroupEventControl am: bf819b5593
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2080181

Change-Id: I8d68056cbd082ac936ef6fe7e3215665622d12e4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-29 17:59:28 +00:00
Yongqin Liu bf819b5593 lmkd: fix the cgroup attribute name to MemCgroupEventControl
which was CgroupEventControl before, but it's not the one
that definied in system/core/libprocessgroup/profiles/task_profiles.json.

And it causes lmkd crash for some setups like 4.19q + AOSP Master

Bug: 230642311

Test: boot the 4.19q + AOSP master setup with hikey960 board

Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Change-Id: I87b1ea2040f21c52d549db58692fc8a2b114f8e6
2022-04-29 18:50:20 +08:00
전윤재 2ae0f8f153 lmkd: Fix a comparison operation with uninitialized variable. am: f70a8a260f am: 1c09b504c8 am: 48e232df6a am: c0f9ea88cc am: af1c7d5046
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2073128

Change-Id: I1c51e854669826df6136dccc40bf4eaf30216789
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-27 01:42:49 +00:00
전윤재 af1c7d5046 lmkd: Fix a comparison operation with uninitialized variable. am: f70a8a260f am: 1c09b504c8 am: 48e232df6a am: c0f9ea88cc
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2073128

Change-Id: Icbe87fe387219223e0840eb9b5f10b48e032ecda
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-27 01:19:23 +00:00
전윤재 c0f9ea88cc lmkd: Fix a comparison operation with uninitialized variable. am: f70a8a260f am: 1c09b504c8 am: 48e232df6a
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2073128

Change-Id: Ic5e857e2f840c1a828cc6794d92f88f1b570816d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-27 00:56:46 +00:00
전윤재 48e232df6a lmkd: Fix a comparison operation with uninitialized variable. am: f70a8a260f am: 1c09b504c8
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2073128

Change-Id: I205fd40567e6842081f2cedf15feb522b31f8478
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-27 00:41:34 +00:00
전윤재 1c09b504c8 lmkd: Fix a comparison operation with uninitialized variable. am: f70a8a260f
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/2073128

Change-Id: Ifaa6bf2008bdb73e74b67ce02cc540275b99b9de
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-27 00:03:53 +00:00
전윤재 f70a8a260f lmkd: Fix a comparison operation with uninitialized variable.
Prevent comparing uninitialized poll_start_tm with curr_tm in call_handler().
The bug caused by this has been fixed by the commit: d816ab.
But the main bug is not fixed yet and it may cause problem
in later if we add another operations in this if block.

Change-Id: Id13318297a2cbf2f9784134a2ccd648cc221e8c4
Signed-off-by: Yoonjae Jeon <yj213.jeon@samsung.com>
2022-04-25 00:51:47 +00:00
Bart Van Assche 67c67e91a7 lmkd: Add support for cgroups v2 memcg hierarchy am: 759943643f am: 39cde77892 am: 3b00650675 am: 9b467fd0f9 am: fd238117c8 am: 3db33f0564
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/1972106

Change-Id: I3b0b3778c8e6ad3e473c8fd760b73eac7b8b0b59
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-19 20:11:54 +00:00
Bart Van Assche 3db33f0564 lmkd: Add support for cgroups v2 memcg hierarchy am: 759943643f am: 39cde77892 am: 3b00650675 am: 9b467fd0f9 am: fd238117c8
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/1972106

Change-Id: Ieb8cba741ea5fc3d89e28c17ec6042ca7c7110d5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-19 19:49:45 +00:00
Bart Van Assche eaaaf890c8 lmkd: Add support for cgroups v2 memcg hierarchy am: 759943643f am: 39cde77892 am: 3b00650675 am: 9b467fd0f9 am: b05a63e610
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/1972106

Change-Id: I7265fa84c709d19013b24c27107445c136b7b3b7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-19 19:48:46 +00:00
Bart Van Assche fd238117c8 lmkd: Add support for cgroups v2 memcg hierarchy am: 759943643f am: 39cde77892 am: 3b00650675 am: 9b467fd0f9
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/1972106

Change-Id: I0d2c60d64ba5bb99cfcaf4d58c59d726a81b2b74
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-19 19:23:51 +00:00
Bart Van Assche b05a63e610 lmkd: Add support for cgroups v2 memcg hierarchy am: 759943643f am: 39cde77892 am: 3b00650675 am: 9b467fd0f9
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/1972106

Change-Id: I31ba885034e9b627cf7f0c7daa397a8e0922efb3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-19 19:22:43 +00:00
Bart Van Assche 9b467fd0f9 lmkd: Add support for cgroups v2 memcg hierarchy am: 759943643f am: 39cde77892 am: 3b00650675
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/1972106

Change-Id: I4c3c64b0a93230d925d42c0e9bef5e0b05b50cd2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-19 18:35:38 +00:00
Bart Van Assche 3b00650675 lmkd: Add support for cgroups v2 memcg hierarchy am: 759943643f am: 39cde77892
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/1972106

Change-Id: Ifd4a54f22d2e1e78e84cb325532883912fd1a201
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-19 18:07:03 +00:00
Bart Van Assche 39cde77892 lmkd: Add support for cgroups v2 memcg hierarchy am: 759943643f
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/1972106

Change-Id: I759a869723eb6f483e2ed58f7250d64e4fe5351b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-19 17:50:20 +00:00
Kameron Lutes 4c65da8696 lmkd: Fix potential null dereference in hook call
If hooks are enabled in LMKD and kill_info is not supplied to
kill_one_process, there will be a null dereference on kill_info. This
changes validates ki before dereferencing.

Bug: b/210075795
Test: cq
Change-Id: Ie81ca9bdb73a71f16dc5682c8721a557b8b094fb
2022-04-14 17:36:28 +00:00
Kameron Lutes d74b6c0fcc lmkd: Add hooks to LMKD
Adds several hooks to LMKD that can be overridden by the vendor. This
allows for device specific control of LMKD when necessary.

Bug: b/210075795
Test: cq

Change-Id: Ib231743183134b05148d45d681765860da6274ae
(cherry picked from commit 2c1248381a52fc520c6cd1acfaee80818eaa9ee1)
Merged-In: Ib231743183134b05148d45d681765860da6274ae
2022-04-13 21:42:48 +00:00
Bart Van Assche 759943643f lmkd: Add support for cgroups v2 memcg hierarchy
Use the /sys/fs/cgroup/uid_%u/pid_%u path instead of
/dev/memcg/apps/uid_%u/pid_%u" if the memcg controller is mounted in the
v2 cgroup hierarchy. Skip the code that refers to memcg attributes that
only exist in the cgroup v1 hierarchy when using the v2 memcg. Complain
if it is attempted to use the old kill strategy in combination with
memcg v2 since only the new strategy is compatible with the v2 cgroup
hiearchy.

Bug: 213617178
Test: Tested lmkd inside the Cuttlefish emulator. Triggered an
Test: out-of-memory condition as follows:
Test: i=0; while [ $i -lt 16 ]; do dd if=/dev/zero of=/dev/null bs=1G count=1 & ((i++)) done
Test: That caused the following output to appear in logcat:
Test: 02-03 18:13:02.772   241   241 I lowmemorykiller: Kill 'com.android.packageinstaller' (3031), uid 10022, oom_score_adj 975 to free 29348kB rss, 21232kB swap; reason: min watermark is breached and swap is low (135016kB < 150384kB)
Test: 02-03 18:13:02.772   241   241 I killinfo: [3031,10022,975,0,29348,3,73644,98460,8,1000,33448,40220,1503848,135016,81720,1387040,27268,29520,50348,103164,20176,57664,0,0,0,519,103,5,0,21232,30016,0,2]
Test: From the kernel log:
Test: [  302.834958] Out of memory: Killed process 3017 (ADB-JDWP Connec) total-vm:13522856kB, anon-rss:0kB, file-rss:0kB, shmem-rss:560kB, UID:10052 pgtables:1008kB oom_score_adj:975
Test: [  303.223702] Out of memory: Killed process 2859 (HeapTaskDaemon) total-vm:13534452kB, anon-rss:0kB, file-rss:0kB, shmem-rss:560kB, UID:10051 pgtables:1060kB oom_score_adj:965
Test: [  303.478833] Out of memory: Killed process 2816 (Signal Catcher) total-vm:13524108kB, anon-rss:0kB, file-rss:0kB, shmem-rss:564kB, UID:10073 pgtables:1016kB oom_score_adj:965
Test: [  304.823796] Out of memory: Killed process 2438 (ReferenceQueueD) total-vm:13529180kB, anon-rss:0kB, file-rss:0kB, shmem-rss:568kB, UID:10015 pgtables:1056kB oom_score_adj:955
Test: [  305.226728] Out of memory: Killed process 3126 (DefaultDispatch) total-vm:13532596kB, anon-rss:0kB, file-rss:0kB, shmem-rss:528kB, UID:10019 pgtables:1064kB oom_score_adj:945
Test: [  305.935615] Out of memory: Killed process 2637 (Jit thread pool) total-vm:13523084kB, anon-rss:0kB, file-rss:0kB, shmem-rss:0kB, UID:10024 pgtables:1036kB oom_score_adj:935
Test: [  307.055895] Out of memory: Killed process 2063 (HeapTaskDaemon) total-vm:13755876kB, anon-rss:0kB, file-rss:0kB, shmem-rss:11600kB, UID:10074 pgtables:1552kB oom_score_adj:0
Test: [  307.398512] Out of memory: Killed process 2298 (rs.media.module) total-vm:13560404kB, anon-rss:12924kB, file-rss:0kB, shmem-rss:720kB, UID:10076 pgtables:1156kB oom_score_adj:-700
Test: [  309.888679] Out of memory: Killed process 1745 (droid.bluetooth) total-vm:13720424kB, anon-rss:11084kB, file-rss:0kB, shmem-rss:208kB, UID:1002 pgtables:1220kB oom_score_adj:-700
Test: [  311.050133] Out of memory: Killed process 1759 (ndroid.systemui) total-vm:13852268kB, anon-rss:26468kB, file-rss:0kB, shmem-rss:6988kB, UID:10075 pgtables:1628kB oom_score_adj:-800
Test: [  313.520057] Out of memory: Killed process 2000 (m.android.phone) total-vm:13593404kB, anon-rss:14600kB, file-rss:236kB, shmem-rss:340kB, UID:1001 pgtables:1312kB oom_score_adj:-800
Test: [  314.337744] Out of memory: Killed process 1911 (rkstack.process) total-vm:13540420kB, anon-rss:8232kB, file-rss:0kB, shmem-rss:180kB, UID:1073 pgtables:1128kB oom_score_adj:-800
Test: [  314.745542] Out of memory: Killed process 1984 (com.android.se) total-vm:13525236kB, anon-rss:6944kB, file-rss:0kB, shmem-rss:188kB, UID:1068 pgtables:1012kB oom_score_adj:-800
Test: [  315.007212] Out of memory: Killed process 677 (system_server) total-vm:15049836kB, anon-rss:1856kB, file-rss:0kB, shmem-rss:240kB, UID:1000 pgtables:2084kB oom_score_adj:-900
Change-Id: I78821bcd332af7b3f642f037faa2df15a937dc26
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2022-03-29 13:38:04 -07:00
Bart Van Assche e19c013c98 lmkd: Look up cgroup attribute paths instead of hardcoding these am: b4d26bb22b am: 08f4720373 am: def6a3f12f am: cbe6b65f72 am: 01663fe2d5
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/1990496

Change-Id: I39b026dbec5683d230caacf09688049884f3b233
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 23:02:05 +00:00
Bart Van Assche 01663fe2d5 lmkd: Look up cgroup attribute paths instead of hardcoding these am: b4d26bb22b am: 08f4720373 am: def6a3f12f am: cbe6b65f72
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/1990496

Change-Id: I6406e60724d9e5197f7008be5f8be6b930edbea8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 22:46:41 +00:00
Bart Van Assche 37d82ef2ce lmkd: Look up cgroup attribute paths instead of hardcoding these am: b4d26bb22b am: 08f4720373 am: def6a3f12f am: cbe6b65f72
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/1990496

Change-Id: Idd0f83e86166e4583eb788d82792ddaa86ed5c56
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 22:46:34 +00:00
Bart Van Assche cbe6b65f72 lmkd: Look up cgroup attribute paths instead of hardcoding these am: b4d26bb22b am: 08f4720373 am: def6a3f12f
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/1990496

Change-Id: Ica6100474a8ed7dce01045ad3a5362ce4e7721ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 22:32:33 +00:00
Bart Van Assche def6a3f12f lmkd: Look up cgroup attribute paths instead of hardcoding these am: b4d26bb22b am: 08f4720373
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/1990496

Change-Id: I4d84abb1687325d3e153fe6dc59de6dd5c5bfd3d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 22:15:26 +00:00
Bart Van Assche 08f4720373 lmkd: Look up cgroup attribute paths instead of hardcoding these am: b4d26bb22b
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/1990496

Change-Id: Idd2fa5330216242e8e99c60811c0beb57d970752
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 21:53:03 +00:00
Bart Van Assche 6925bedfa5 statslog: Make this library compatible with the cgroups v2 hierarchy am: 16ba8bc773 am: d3401c8ae9 am: aac55955a2 am: 51feb261e5 am: 77f29486aa
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/1975449

Change-Id: Icdd093adfb36cd2e3cbcd42878ff8e681b6264c8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 18:10:04 +00:00
Bart Van Assche 77f29486aa statslog: Make this library compatible with the cgroups v2 hierarchy am: 16ba8bc773 am: d3401c8ae9 am: aac55955a2 am: 51feb261e5
Original change: https://android-review.googlesource.com/c/platform/system/memory/lmkd/+/1975449

Change-Id: I4e9e7b9ee5379f6a6438af71527ff9fae07278ae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 17:54:36 +00:00