path: root/rootdir
diff options
authorWei Wang <>2017-03-20 14:21:06 -0700
committergitbuildkicker <>2017-03-23 14:42:47 -0700
commit73c917f3e64217dcd31aa8bf657b899b656b58b9 (patch)
treeed8c854dea9b07744b2be46f79dbeb389a9ab9a3 /rootdir
parent4e3e5fd9d4220bf3b3ac451fe5dead5d42f21d1c (diff)
init.rc: remove bg_non_interactive cgroup [ DO NOT MERGE ]
We have seen cases when threads in this cgroup not scheduled for more than a few seconds in heavy workload situation and causing device freeze. In Linux, multiple threads placed in ROOT cgroup cause the CPU resource to be split per thread, rather than per group. Currently we have many threads in ROOT cgroup, which makes threads in bg_non_interactive cgroup to have "tiny" CPU resource other than 5% quota defined. Bug: 34193533 Test: on marlin Change-Id: I7721f6196560fbedf6265e8b6db130cec9edefd7 (cherry picked from commit 0638626e0e6c38835d36fa17326aee08235e261a)
Diffstat (limited to 'rootdir')
1 files changed, 0 insertions, 9 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index df60f6582..7dc9e5509 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -145,15 +145,6 @@ on init
write /dev/cpuctl/cpu.rt_period_us 1000000
write /dev/cpuctl/cpu.rt_runtime_us 950000
- mkdir /dev/cpuctl/bg_non_interactive
- chown system system /dev/cpuctl/bg_non_interactive/tasks
- chmod 0666 /dev/cpuctl/bg_non_interactive/tasks
- # 5.0 %
- write /dev/cpuctl/bg_non_interactive/cpu.shares 52
- write /dev/cpuctl/bg_non_interactive/cpu.rt_period_us 1000000
- # active FIFO threads will never be in BG
- write /dev/cpuctl/bg_non_interactive/cpu.rt_runtime_us 10000
# sets up initial cpusets for ActivityManager
mkdir /dev/cpuset
mount cpuset none /dev/cpuset