android_system_core/libprocessgroup
Suren Baghdasaryan ec88556460 libprocessgroup: Prevent error spam when tests disable all cpus in a cpuset
UserLifecycleTests test disables all Little cores in the course of the
test, which causes attempts to add a process into /dev/cpuset/restricted
cpuset cgroup to fail with ENOSPC error code, indicating that a process
is joining a cpuset cgroup with no online cpus. Current libprocessgroup
implementation will log an error on each such occurrence, which spams
the logs and makes it hard to analyze test results. Because this
situation does not happen in production environment (we do not offline
cpus), we can prevent flooding the logs by identifying this case,
logging an appropriate error one time and ignore all later similar errors.

Bug: 158766131
Test: adb shell "echo 0 > /sys/devices/system/cpu/cpu[0-3]/online"
Test: start some apps, observe libprocessgroup errors in the logcat
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ia91d8839d86787569c255481bde077be51c43d93
2021-10-25 16:18:08 -07:00
..
cgrouprc Fix compiling libprocessgroup against musl 2021-09-14 12:35:01 -07:00
cgrouprc_format [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
include/processgroup libprocessgroup: remove hardcoded freezer path 2021-02-25 23:39:52 +00:00
profiles task_profiles: add ServicePerformance to legacy device policy 2021-10-06 15:08:42 -07:00
setup libprocessgroup: introduce optional attribute for cgroup controllers 2021-03-11 17:42:30 +00:00
Android.bp [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
cgroup_map.cpp libprocessgroup: Activate controllers in cgroup v2 hierarchy at intermediate levels 2021-08-02 20:02:51 +00:00
cgroup_map.h libprocessgroup: Activate controllers in cgroup v2 hierarchy at intermediate levels 2021-08-02 20:02:51 +00:00
OWNERS Add new owners to various sub-projects. 2020-12-11 12:45:45 -08:00
processgroup.cpp libprocessgroup: Activate controllers in cgroup v2 hierarchy at intermediate levels 2021-08-02 20:02:51 +00:00
sched_policy.cpp libprocessgroup: Fix warnings when legacy schedtune cgroup is absent 2021-04-26 09:28:08 -07:00
task_profiles.cpp libprocessgroup: Prevent error spam when tests disable all cpus in a cpuset 2021-10-25 16:18:08 -07:00
task_profiles.h libprocessgroup: Prevent error spam when tests disable all cpus in a cpuset 2021-10-25 16:18:08 -07:00