From 5a18a1b381e75880fc8adc6d92fcab98e8323ff3 Mon Sep 17 00:00:00 2001 From: Rick Yiu Date: Thu, 27 Apr 2023 15:31:53 +0000 Subject: [PATCH 1/2] Set bg group throttle to 30 percent of cpu capacity Also remove old settings. Bug: 201260585 Test: value set as expected Change-Id: Icbdd5e18b128f1c8a9e88a5c147353ef7a55ef48 --- conf/init.zuma.rc | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/conf/init.zuma.rc b/conf/init.zuma.rc index 0b98cce2..a9e0a799 100644 --- a/conf/init.zuma.rc +++ b/conf/init.zuma.rc @@ -741,19 +741,9 @@ on property:sys.boot_completed=1 write /proc/vendor_sched/ta_uclamp_min 1 write /proc/vendor_sched/fg_uclamp_min 0 write /proc/vendor_sched/sys_prefer_idle 0 - # cfs_rq clamp is using tg->uclamp setting - # align it with the vendor_group setting - write /proc/vendor_sched/bg_uclamp_max 512 - write /dev/cpuctl/background/cpu.uclamp.max 50 - write /proc/vendor_sched/bg_group_throttle 512 - write /proc/vendor_sched/sysbg_uclamp_max 512 - write /dev/cpuctl/system-background/cpu.uclamp.max 50 - write /proc/vendor_sched/sysbg_group_throttle 512 - write /proc/vendor_sched/dex2oat_uclamp_max 615 - write /dev/cpuctl/dex2oat/cpu.uclamp.max 60 - write /proc/vendor_sched/dex2oat_group_throttle 615 - write /proc/vendor_sched/ota_uclamp_max 410 - write /proc/vendor_sched/ota_group_throttle 410 + + # Set bg group throttle + write /proc/vendor_sched/vug_bg_group_throttle 308 # Set PMU freq limit parameters write /sys/devices/system/cpu/cpufreq/policy0/sched_pixel/lcpi_threshold 2 From a2c60a3ec9438acf04a4be469d4a5f9aa3cac903 Mon Sep 17 00:00:00 2001 From: Rick Yiu Date: Thu, 27 Apr 2023 15:34:02 +0000 Subject: [PATCH 2/2] Relax cpuset for OTA With vendor group throttling, we could relax the ota cpuset. Bug: 201260585 Test: cpuset changed as expected Change-Id: I4d719edf898ff0bfe8a2ba776ccd55f9ce423dfa --- task_profiles.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/task_profiles.json b/task_profiles.json index 4bcfe412..961857de 100644 --- a/task_profiles.json +++ b/task_profiles.json @@ -287,7 +287,7 @@ }, { "Name": "OtaProfiles", - "Profiles": [ "OtaPerformance", "ServiceCapacityLow", "LowIoPriority", "TimerSlackHigh" ] + "Profiles": [ "OtaPerformance", "ProcessCapacityNormal", "LowIoPriority", "TimerSlackHigh" ] } ] }