From ab3747f65ec24cb4333d7574a8cd7b2259cb25f6 Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Fri, 1 Oct 2021 00:13:51 -0700 Subject: [PATCH] Relax background restriction to 16.67% To avoid background starvation and PI, especially for those low prio 130 threads within system_server, allocate more cpu shares for background sched group. Test: boot and torture a loaded device. Bug: 201428466 Signed-off-by: Wei Wang Change-Id: Ia85814294f9534fd83388a72c574c04f631a185f --- conf/init.gs101.rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/init.gs101.rc b/conf/init.gs101.rc index b959d956..b5983d92 100644 --- a/conf/init.gs101.rc +++ b/conf/init.gs101.rc @@ -733,8 +733,8 @@ on property:sys.boot_completed=1 write /sys/kernel/vendor_sched/sf_uclamp_min 30 write /sys/kernel/vendor_sched/sf_prefer_idle 1 - # Setup cpu.shares to throttle background group at 5% - write /dev/cpuctl/background/cpu.shares 1024 + # Setup cpu.shares to throttle background group at 15% + write /dev/cpuctl/background/cpu.shares 4096 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