Age | Commit message (Collapse) | Author |
|
Note: Without this fix on Android Go device exPath gets some junk chars at the end of exPath because readlink() does not append a null byte to buf.
Bug: 79430762
Test: Tested manually by running alloc-stress on Android Go device.
Change-Id: I8e09d8c6d670b7d29e7f98c00dd8e9e9c5492169
|
|
Without this change calling alloc-stress from root dir fails with
following error:
pid: 22755 adj: 1000 sz: 0
createProcess( 22756):125 condition:0 failed
Test: Manual
Change-Id: Iacf29728ad01374aa3d64472d17a5d13a3014c88
|
|
processes"
This reverts commit 3b48dfd3e0d2726905bd151464573d730512e818.
Reason for revert: breaking master
Change-Id: Ie13559ddf1fc990eb5ae8ea9b5d820fa7f3ab09f
|
|
multichild-stress test spawns user-specified number of child processes
which allocate blocks of memory generating memory pressure on the device
and potentially causing lmk kills.
Typical usage: multichild-stress -i10 -s10000 -d100 -o500 -g
This generates 10 children each allocating 10000 bytes every 100ms,
oom_score of each child is 500 and each will have its own memory cgroup.
This test is mainly for testing lmkd performance.
Bug: 63631020
Change-Id: Ia1071ccc10924a7bae3735d3e5acde6fad195ca3
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
|
|
Add -g command-line flag to enable or disable memory cgroup usage. By
default cgroups are not used.
Replace Android.mk with Android.bp.
Change-Id: I3c181b323b3d90b3b12bca33103cfa6b8ce07a7e
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
|
|
Fix memcg paths according to the latest memcg mount points, print
children PIDs for easy tracing and add an option to trace lifetime
of the children.
Change-Id: Iced821ef28b6c36598ca872a7115738b813baa90
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
|
|
Change-Id: Ibabe8708e32b40539f398fccde4d6e5f63e3b708
Exempt-From-Owner-Approval: trivial cleanup
Test: mma
Bug: None
|
|
Test: mma
Bug: None
Change-Id: I0b22dd6c4150adaceb840f5624973b13eec12f42
|
|
Create continuous memory pressure by adjusting
a child process's oom score and allocate in
the child. When a child is killed by
the low-memory-killer, fork another process and
continues until the program is killed or certain
number of iterations has reached.
Bug: 63926541
Test: run mem-pressure on target
Change-Id: Ic8ee60da7519c750de4bd690f26e31fa80c5cd49
|
|
clang is the default compiler since Android nougat
Test: mma & verified it´s still build with clang
Change-Id: Ie41a98a7d72940e8169996a7081ccec9b94aa61c
Signed-off-by: Lennart Wieboldt <lennart.1997@gmx.de>
|
|
Bug: http://b/32019064
Test: builds
Change-Id: I301b223df84ffdea7c93b5c735c859abcc5bb220
|
|
manual_merge_3609371
Change-Id: I6b9c6b1d0281bfefcb8f664cfb0e535ae4c83647
|
|
Passing 0 as a sentinel for execl is incorrect, use nullptr instead.
Bug: http://b/30793878
Change-Id: Ib05c9b509823442ef7c2174a2086b97c32df387b
|
|
- Userspace now uses ranges -1000 to +1000 for oomadj
- Directly call into lmkd instead of writing oom_score-adj; this
allows alloc-stress to work with userspace lmkd
- If mem cgroups are enabled (future), create a mem cgroup for
the newly created process.
Change-Id: I4a28eef478cc5a9ad48abdf5bb87c98da3fce3ae
|
|
Change-Id: Ib1b506ef43aea122a76dac80d1eaf819c81073b1
|