platform_system_core/libprocessgroup
T.J. Mercier 9c8c748c11 libprocessgroup: Remove isolated UID cgroup directories
Global UID level cgroup removal was eliminated because of a race
between app launch and app killing using the same directory name. [1]

However isolated app UIDs are assigned sequentially, and are
basically never reused until we wrap around the large range of
isolated UIDs. This leaves thousands of isolated cgroup directories
unused, which consumes kernel memory and increases memory reclaim
overhead. Remove this subset of UID level cgroup directories when
killing process groups.

[1] d0464b0c01

Test: 50 cycle ACT leaves 1000 fewer empty isolated cgroups
Bug: 290953668
Change-Id: If7d2a7b8eec14561a72208049b74ff785ca961bd
2023-07-12 18:29:21 +00:00
..
cgrouprc Annotate symbols correctly 2022-09-26 22:14:43 +09:00
cgrouprc_format [LSC] Add LOCAL_LICENSE_KINDS to system/core 2021-02-19 12:59:05 -08:00
include/processgroup libprocessgroup: implement task profile validity checks 2023-04-29 18:35:20 +00:00
profiles [DO NOT MERGE] Migrate the blkio controller to the v2 cgroup hierarchy 2023-03-22 11:39:53 -07:00
setup libprocessgroup: Rework SetupCgroup() 2023-02-10 14:18:38 -08:00
tools libprocessgroup/tools: Add settaskprofile command-line tool 2021-11-09 22:35:51 +00:00
Android.bp libprocessgroup: Switch from gnu++-17 to gnu++-20 2022-08-18 12:34:21 -07:00
cgroup_map.cpp libprocessgroup: Proceed if activation of an optional controller fails 2023-02-10 15:02:44 -08:00
cgroup_map.h libprocessgroup: Add CgroupGetControllerFromPath API function 2021-11-08 21:24:33 +00:00
OWNERS Updating owners of libprocessgroup 2022-12-15 19:12:33 +00:00
processgroup.cpp libprocessgroup: Remove isolated UID cgroup directories 2023-07-12 18:29:21 +00:00
sched_policy.cpp libprocessgroup: fall back to cpuset in get_sched_policy 2021-12-14 10:56:34 -08:00
task_profiles.cpp libprocessgroup: implement task profile validity checks 2023-04-29 18:35:20 +00:00
task_profiles.h libprocessgroup: implement task profile validity checks 2023-04-29 18:35:20 +00:00
task_profiles_test.cpp libprocessgroup: implement task profile validity checks 2023-04-29 18:35:20 +00:00