S666LN: init: Kang cpu.shares values from gs201

* Setup cpu.shares to throttle background groups (bg ~ 5% sysbg ~ 5% dex2oat ~2.5%)

Change-Id: I2930a32e6edc270fffe0f0547c577226dccd30dc
Signed-off-by: rio004 <riyon336@gmail.com>
Signed-off-by: KimelaZX <mmikailrei@gmail.com>
This commit is contained in:
rio004
2025-12-11 07:19:06 +07:00
committed by KimelaZX
parent a4f1c2d346
commit 83cb1f4508

View File

@@ -115,12 +115,16 @@ on property:sys.boot_completed=1
write /dev/cpuctl/rt/cpu.uclamp.max max
write /dev/cpuctl/rt/cpu.uclamp.min 0
write /dev/cpuctl/rt/cpu.shares 20480
# system
write /dev/cpuctl/system/cpu.shares 20480
# system-background
# cap the max utilisation for system-background tasks to save power.
write /dev/cpuctl/system/cpu.uclamp.latency_sensitive 0
write /dev/cpuctl/system-background/cpu.uclamp.max 60
write /dev/cpuctl/system-background/cpu.uclamp.min 0
write /dev/cpuctl/system-background/cpu.shares 2048
write /dev/cpuctl/system-background/cpu.shares 1024
# background
write /dev/cpuctl/background/cpu.uclamp.latency_sensitive 0
@@ -132,13 +136,13 @@ on property:sys.boot_completed=1
write /dev/cpuctl/foreground/cpu.uclamp.max max
write /dev/cpuctl/foreground/cpu.uclamp.min 0
write /dev/cpuctl/foreground/cpu.uclamp.latency_sensitive 1
write /dev/cpuctl/foreground/cpu.shares 10240
write /dev/cpuctl/foreground/cpu.shares 20480
# foreground_window
write /dev/cpuctl/foreground_window/cpu.uclamp.max max
write /dev/cpuctl/foreground_window/cpu.uclamp.min 0
write /dev/cpuctl/foreground_window/cpu.uclamp.latency_sensitive 1
write /dev/cpuctl/foreground_window/cpu.shares 10240
write /dev/cpuctl/foreground_window/cpu.shares 20480
# top-app
write /dev/cpuctl/top-app/cpu.uclamp.max max
@@ -161,7 +165,7 @@ on property:sys.boot_completed=1
write /dev/cpuctl/dex2oat/cpu.uclamp.latency_sensitive 0
write /dev/cpuctl/dex2oat/cpu.uclamp.max 60
write /dev/cpuctl/dex2oat/cpu.uclamp.min 0
write /dev/cpuctl/dex2oat/cpu.shares 2048
write /dev/cpuctl/dex2oat/cpu.shares 512
# Uclamp tuning
write /proc/sys/kernel/sched_util_clamp_min_rt_default 96