From e31ba16606dce1286957d1002f08a29474155479 Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Wed, 12 May 2021 18:30:49 -0700 Subject: [PATCH] gs101: Align max uclamp value for background cgroup with vendor_group Since cfs_rq clamp feature uses tg's value, align it with the vendor_group setting. Bug: 170508405 Test: build pass Signed-off-by: Wei Wang Change-Id: Ie0c896de2022f435be5ea53ae3cecf5d80d2c067 --- conf/init.gs101.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/init.gs101.rc b/conf/init.gs101.rc index 96d5e6fa..14b8d528 100644 --- a/conf/init.gs101.rc +++ b/conf/init.gs101.rc @@ -624,6 +624,9 @@ on property:sys.boot_completed=1 write /sys/kernel/vendor_sched/ta_uclamp_min 103 write /sys/kernel/vendor_sched/fg_uclamp_min 0 write /sys/kernel/vendor_sched/bg_uclamp_max 103 + # cfs_rq clamp is using tg->uclamp setting + # align it with the vendor_group setting + write /dev/cpuctl/background/cpu.uclamp.max 10 # Setup cpu.shares to throttle background group at 5% write /dev/cpuctl/background/cpu.shares 1024