P21: enable throttle background group at 5% am: 5082a3e2fe

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/13842225

Change-Id: I6027c1df323f54982731cbc965455615ee26d1d1
This commit is contained in:
Wei Wang 2021-05-12 23:38:38 +00:00 committed by Automerger Merge Worker
commit 4b6e3933a5

View file

@ -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