aboutsummaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2012-06-04 13:15:01 -0700
committerDima Zavin <dima@android.com>2012-06-04 15:11:33 -0700
commit5f2d00b0677cbe9ad42ea0394def0a51aef7bdda (patch)
tree0b1c28ef5c0f789179155ebf1a6dfb0fd1db3a7d /rootdir
parent29319a6753569fb3ef160c2de2f1c4d9d1398178 (diff)
downloadsystem_core-5f2d00b0677cbe9ad42ea0394def0a51aef7bdda.tar.gz
system_core-5f2d00b0677cbe9ad42ea0394def0a51aef7bdda.tar.bz2
system_core-5f2d00b0677cbe9ad42ea0394def0a51aef7bdda.zip
rootdir: init.rc: remove audio app/sys groups, merge to fg
With this change, the audio rr/fifo threads will just run in the fg cgroup. Also, the RR budget for the apps fg/bg threads has been bumped to 80%. Ideally, the bg budget would be much smaller but there are legacy libraries that seem to be very sensitive to this so for now keep it at this value. Bug: 6528015 Change-Id: I08f295e7ba195a449b96cd79d954b0529cee8636 Signed-off-by: Dima Zavin <dima@android.com>
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc18
1 files changed, 2 insertions, 16 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 6647721c..2305572a 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -97,7 +97,7 @@ loglevel 3
chown system system /dev/cpuctl/apps/tasks
chmod 0666 /dev/cpuctl/apps/tasks
write /dev/cpuctl/apps/cpu.shares 1024
- write /dev/cpuctl/apps/cpu.rt_runtime_us 100000
+ write /dev/cpuctl/apps/cpu.rt_runtime_us 800000
write /dev/cpuctl/apps/cpu.rt_period_us 1000000
mkdir /dev/cpuctl/apps/bg_non_interactive
@@ -105,23 +105,9 @@ loglevel 3
chmod 0666 /dev/cpuctl/apps/bg_non_interactive/tasks
# 5.0 %
write /dev/cpuctl/apps/bg_non_interactive/cpu.shares 52
- write /dev/cpuctl/apps/bg_non_interactive/cpu.rt_runtime_us 100000
+ write /dev/cpuctl/apps/bg_non_interactive/cpu.rt_runtime_us 700000
write /dev/cpuctl/apps/bg_non_interactive/cpu.rt_period_us 1000000
- mkdir /dev/cpuctl/audio_app
- chown system system /dev/cpuctl/audio_app/tasks
- chmod 0660 /dev/cpuctl/audio_app/tasks
- write /dev/cpuctl/audio_app/cpu.shares 10
- write /dev/cpuctl/audio_app/cpu.rt_runtime_us 100000
- write /dev/cpuctl/audio_app/cpu.rt_period_us 1000000
-
- mkdir /dev/cpuctl/audio_sys
- chown system system /dev/cpuctl/audio_sys/tasks
- chmod 0660 /dev/cpuctl/audio_sys/tasks
- write /dev/cpuctl/audio_sys/cpu.shares 10
- write /dev/cpuctl/audio_sys/cpu.rt_runtime_us 100000
- write /dev/cpuctl/audio_sys/cpu.rt_period_us 1000000
-
# Allow everybody to read the xt_qtaguid resource tracking misc dev.
# This is needed by any process that uses socket tagging.
chmod 0644 /dev/xt_qtaguid