Age | Commit message (Collapse) | Author |
|
This patch prepares for migration of memcg to the v2 cgroup hierarchy by
removing code that hardcodes cgroup paths that will change as the result
of this migration.
Bug: 213617178
Test: Ran alloc-stress inside Cuttlefish.
Change-Id: Ib783d4b619250a2e90db5062cb32110e9f042c5f
Signed-off-by: Bart Van Assche <bvanassche@google.com>
|
|
Added SPDX-license-identifier-Apache-2.0 to:
alloc-stress/Android.bp
app-launcher/Android.bp
boot_control_copy/Android.bp
bootctl/Android.bp
boottime_tools/bootanalyze/stressfs/Android.bp
boottime_tools/bootio/Android.bp
brillo_config/Android.mk
checkpoint_gc/Android.bp
cppreopts/Android.bp
crypto-perf/Android.bp
ext4_utils/Android.bp
ext4_utils/Android.mk
f2fs_utils/Android.bp
ioblame/Android.bp
ioshark/Android.bp
iotop/Android.bp
kexec_tools/Android.bp
latencytop/Android.bp
libfec/Android.bp
libfec/test/Android.bp
libfscrypt/Android.bp
libfscrypt/tests/Android.bp
libjsonpb/parse/Android.bp
libjsonpb/verify/Android.bp
memory_replay/Android.bp
memtrack/Android.bp
mmap-perf/Android.bp
module_ndk_libs/libnativehelper/Android.bp
multinetwork/Android.bp
pagecache/Android.bp
partition_tools/Android.bp
partition_tools/aidl/Android.bp
perf2cfg/Android.bp
postinst/Android.bp
preopt2cachename/Android.bp
profcollectd/Android.bp
profcollectd/libprofcollectd/Android.bp
profcollectd/libprofcollectd/bindings/libflags/Android.bp
pssbench/Android.mk
puncture_fs/Android.bp
runconuid/Android.bp
sane_schedstat/Android.bp
showslab/Android.bp
simpleperf/Android.bp
simpleperf/runtest/Android.bp
simpleperf/scripts/inferno/Android.bp
simpleperf/simpleperf_app_runner/Android.bp
slideshow/Android.mk
sound/Android.bp
squashfs_utils/Android.bp
su/Android.mk
taskstats/Android.bp
tests/Android.bp
tests/audio/alsa/Android.bp
tests/binder/benchmarks/Android.bp
tests/bootloader/Android.mk
tests/cpueater/Android.bp
tests/crypto/Android.bp
tests/directiotest/Android.bp
tests/ext4/Android.mk
tests/framebuffer/Android.bp
tests/fstest/Android.bp
tests/icachetest/Android.bp
tests/iptables/qtaguid/Android.bp
tests/kernel.config/Android.mk
tests/lib/Android.bp
tests/lib/testUtil/Android.bp
tests/memeater/Android.mk
tests/pagingtest/Android.mk
tests/pftest/Android.bp
tests/schedtest/Android.bp
tests/storage/Android.bp
tests/suspend_stress/Android.bp
tests/tcp_nuke_addr/Android.bp
tests/timetest/Android.bp
tests/uevents/Android.bp
toolchain-extras/Android.bp
vbmeta_tools/Android.bp
verity/Android.bp
verity/fec/Android.bp
zram-perf/Android.bp
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
cpustats/Android.bp
Added SPDX-license-identifier-BSD to:
ANRdaemon/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: Ia559848af903a7b6746d9b12b7de8b83bc57f99d
|
|
This reverts commit 044d055c842a5750359ed71dfe50a6a4bf5f4cc3.
Reason for revert: Needs to run as multiple roots.
Change-Id: I8e06e7eb19e0f634f52fbd8a1c6662f43e347dd5
|
|
Added SPDX-license-identifier-Apache-2.0 to:
boot_control_copy/Android.bp
bootctl/Android.bp
boottime_tools/bootanalyze/stressfs/Android.bp
boottime_tools/bootio/Android.bp
checkpoint_gc/Android.bp
cppreopts/Android.bp
crypto-perf/Android.bp
ext4_utils/Android.bp
ext4_utils/Android.mk
f2fs_utils/Android.bp
ioshark/Android.bp
iotop/Android.bp
kexec_tools/Android.bp
latencytop/Android.bp
libfec/Android.bp
libfec/test/Android.bp
libfscrypt/Android.bp
libfscrypt/tests/Android.bp
libjsonpb/parse/Android.bp
libjsonpb/verify/Android.bp
memory_replay/Android.bp
memtrack/Android.bp
mmap-perf/Android.bp
module_ndk_libs/libnativehelper/Android.bp
multinetwork/Android.bp
pagecache/Android.bp
partition_tools/Android.bp
perf2cfg/Android.bp
postinst/Android.bp
preopt2cachename/Android.bp
profcollectd/Android.bp
profcollectd/libprofcollectd/Android.bp
profcollectd/libprofcollectd/bindings/libflags/Android.bp
puncture_fs/Android.bp
runconuid/Android.bp
sane_schedstat/Android.bp
showslab/Android.bp
simpleperf/Android.bp
simpleperf/runtest/Android.bp
simpleperf/scripts/inferno/Android.bp
simpleperf/simpleperf_app_runner/Android.bp
slideshow/Android.mk
sound/Android.bp
squashfs_utils/Android.bp
su/Android.mk
taskstats/Android.bp
tests/Android.bp
tests/audio/alsa/Android.bp
tests/binder/benchmarks/Android.bp
tests/bootloader/Android.mk
tests/cpueater/Android.bp
tests/crypto/Android.bp
tests/directiotest/Android.bp
tests/ext4/Android.mk
tests/framebuffer/Android.bp
tests/fstest/Android.bp
tests/icachetest/Android.bp
tests/iptables/qtaguid/Android.bp
tests/kernel.config/Android.mk
tests/lib/Android.bp
tests/lib/testUtil/Android.bp
tests/memeater/Android.mk
tests/pagingtest/Android.mk
tests/pftest/Android.bp
tests/schedtest/Android.bp
tests/storage/Android.bp
tests/suspend_stress/Android.bp
tests/tcp_nuke_addr/Android.bp
tests/timetest/Android.bp
tests/uevents/Android.bp
toolchain-extras/Android.bp
vbmeta_tools/Android.bp
verity/Android.bp
verity/fec/Android.bp
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
cpustats/Android.bp
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
legacy_notice
to:
Android.bp
Added SPDX-license-identifier-BSD
to:
ANRdaemon/Android.bp
Added legacy_notice
to:
alloc-stress/Android.bp
app-launcher/Android.bp
brillo_config/Android.mk
ioblame/Android.bp
partition_tools/aidl/Android.bp
pssbench/Android.mk
zram-perf/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: Ie7c022a4d7f828a89d0cda663684a497af37006e
|
|
Format *.cpp according to the new .clang-format. The following command
was used to generate this change:
$ find . \( -name \*.cpp -o -name \*.h \) -exec clang-format \
--style=file -i {} \;
Test: mm
Bug: 171699326
Change-Id: I98b1cd32663fa4b8ffae3c5e74d2db0ec862e144
|
|
Enable the bpfmt hook to automatically format Android.bp files. Fix
current Blueprint files.
This change has been generated using:
$ find . -name Android.bp -exec bpfmt -w {} \;
Test: cd system/extras; mm
Change-Id: I4c6cc60a1afc13783c3da751291325b7160d52b3
|
|
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
|