diff --git a/conf/init.gs101.rc b/conf/init.gs101.rc index 62d67eab..abe67ca0 100644 --- a/conf/init.gs101.rc +++ b/conf/init.gs101.rc @@ -634,6 +634,17 @@ on property:sys.boot_completed=1 write /sys/kernel/vendor_sched/ta_uclamp_min 103 write /sys/kernel/vendor_sched/fg_uclamp_min 0 + # Setup cpu.shares to throttle background group at 5% + write /dev/cpuctl/background/cpu.shares 1024 + write /dev/cpuctl/system/cpu.shares 20480 + # We only have system and background groups holding tasks and the groups below are empty + write /dev/cpuctl/camera-daemon/cpu.shares 20480 + write /dev/cpuctl/foreground/cpu.shares 20480 + write /dev/cpuctl/nnapi-hal/cpu.shares 20480 + write /dev/cpuctl/rt/cpu.shares 20480 + write /dev/cpuctl/system-background/cpu.shares 20480 + write /dev/cpuctl/top-app/cpu.shares 20480 + # gvotables for dumpstate chown system system /sys/kernel/debug/gvotables