android_system_core/libprocessgroup
Rick Yiu e8678cf883 Let blkio cgroup follow cpuset cgroup only
Some app may have different cgroup settings in cpuset and schedtune for its
threads, so let blkio follow cpuset only, which represents the app's current
state more accurately. Otherwise, if that thread is doing IO, then its
performance will be affected because its blkio group is in lower priority
group as schedtune.

ex: an app is now in top-app, but some thread of it set schedtune group to
background, and blkio follows schedtune because it is called later.

Main thread:
6:schedtune:/top-app
5:memory:/
4:cpuset:/top-app
3:cpuacct:/uid_1000/pid_8766
2:cpu:/
1:blkio:/
0::/

Some thread:
6:schedtune:/background
5:memory:/
4:cpuset:/top-app
3:cpuacct:/uid_1000/pid_8766
2:cpu:/
1:blkio:/background
0::/

Bug: 124727032
Test: blkio has same settings with cpuset
Change-Id: I9a140c7d9d93e1dd43c34c8cf066f4a62e2bf604
2019-04-16 22:20:58 +00:00
..
include/processgroup libprocessgroup: restrict SetupCgroups to one-time usage and only by init 2019-03-28 01:25:22 +00:00
profiles libprocessgroup: Add VTS tests for vendor JSON files 2019-03-15 16:28:42 -07:00
Android.bp libprocessgroup: add -Wexit-time-destructors. 2019-03-26 18:50:22 -07:00
cgroup_map.cpp libprocessgroup: restrict SetupCgroups to one-time usage and only by init 2019-03-28 01:25:22 +00:00
cgroup_map.h libprocessgroup: restrict SetupCgroups to one-time usage and only by init 2019-03-28 01:25:22 +00:00
OWNERS Add OWNERS for libprocessgroup 2018-09-14 11:13:22 -07:00
processgroup.cpp Merge "Reduce log spam from libprocessgroup" 2019-03-01 22:11:15 +00:00
sched_policy.cpp Let blkio cgroup follow cpuset cgroup only 2019-04-16 22:20:58 +00:00
task_profiles.cpp libprocessgroup: Deliberately leak TaskProfiles and CgroupMap instances. 2019-03-21 17:00:48 +00:00
task_profiles.h Add vendor cgroups and task_profiles support 2019-03-01 00:29:37 +00:00