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>
This commit is contained in:
parent
29319a6753
commit
5f2d00b067
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue