Increase rt_runtime_us to 1000 for foreground and bg_non_interactive
rt_runtime_us=0 can cause deadlocks if a SCHED_FIFO/SCHED_RR thread is moved into the wrong cgroup. Change-Id: I4633392fb529039dff6ba5d3a6b672e0de9fc2d9
This commit is contained in:
parent
67fb73f5d5
commit
367e7b195b
1 changed files with 2 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ loglevel 3
|
||||||
chown system system /dev/cpuctl/foreground/tasks
|
chown system system /dev/cpuctl/foreground/tasks
|
||||||
chmod 0666 /dev/cpuctl/foreground/tasks
|
chmod 0666 /dev/cpuctl/foreground/tasks
|
||||||
write /dev/cpuctl/foreground/cpu.shares 1024
|
write /dev/cpuctl/foreground/cpu.shares 1024
|
||||||
write /dev/cpuctl/foreground/cpu.rt_runtime_us 0
|
write /dev/cpuctl/foreground/cpu.rt_runtime_us 1000
|
||||||
write /dev/cpuctl/foreground/cpu.rt_period_us 1000000
|
write /dev/cpuctl/foreground/cpu.rt_period_us 1000000
|
||||||
|
|
||||||
mkdir /dev/cpuctl/bg_non_interactive
|
mkdir /dev/cpuctl/bg_non_interactive
|
||||||
|
|
@ -105,7 +105,7 @@ loglevel 3
|
||||||
chmod 0666 /dev/cpuctl/bg_non_interactive/tasks
|
chmod 0666 /dev/cpuctl/bg_non_interactive/tasks
|
||||||
# 5.0 %
|
# 5.0 %
|
||||||
write /dev/cpuctl/bg_non_interactive/cpu.shares 52
|
write /dev/cpuctl/bg_non_interactive/cpu.shares 52
|
||||||
write /dev/cpuctl/bg_non_interactive/cpu.rt_runtime_us 0
|
write /dev/cpuctl/bg_non_interactive/cpu.rt_runtime_us 1000
|
||||||
write /dev/cpuctl/bg_non_interactive/cpu.rt_period_us 1000000
|
write /dev/cpuctl/bg_non_interactive/cpu.rt_period_us 1000000
|
||||||
|
|
||||||
mkdir /dev/cpuctl/audio_app
|
mkdir /dev/cpuctl/audio_app
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue