fd933786d8
Cgroup removal fails with EBUSY if there are active processes or threads still alive in the cgroup. Occasionally a thread or a process might be stuck in an interruptible sleep and take some time during exit. In such cases attempts to remove the cgroup it belongs to will fail. This results in occasional leftover cgroups. These empty unused cgroups consume memory. Ensure RemoveProcessGroup always retries and increase the retries to keep trying for 2 secs before giving up. In majority of cases only a few retries are needed but in rare cases a thread can be blocked for longer time, therefore the number of retries is set large enough to cover them. Bug: 233319780 Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: I2e4bb1f7b7e19c904c85faea7bbabbfdef9c8125 |
||
---|---|---|
.. | ||
cgrouprc | ||
cgrouprc_format | ||
include/processgroup | ||
profiles | ||
setup | ||
tools | ||
Android.bp | ||
cgroup_map.cpp | ||
cgroup_map.h | ||
OWNERS | ||
processgroup.cpp | ||
sched_policy.cpp | ||
task_profiles.cpp | ||
task_profiles.h | ||
task_profiles_test.cpp |