Appy vendor setting for OtaProfiles

Use a new vendor group, ota, for OtaProfiles, and set its uclamp.max
and group_throttle to 40%, which benefits both performance and power
of OTA process.

Bug: 199006579
Test: value set as expected
Change-Id: I63375f3a286f27ab6c54413d6488b175305e6607
This commit is contained in:
Rick Yiu 2021-12-07 16:03:40 +08:00 committed by TreeHugger Robot
parent eed4ae2a53
commit 219111e484
2 changed files with 28 additions and 0 deletions

View file

@ -717,6 +717,8 @@ on property:sys.boot_completed=1
write /sys/kernel/vendor_sched/dex2oat_uclamp_max 615
write /dev/cpuctl/dex2oat/cpu.uclamp.max 60
write /sys/kernel/vendor_sched/dex2oat_group_throttle 615
write /sys/kernel/vendor_sched/ota_uclamp_max 410
write /sys/kernel/vendor_sched/ota_group_throttle 410
# Setup groups for SF (RT used for SF RE, SF used for SF main)
write /sys/kernel/vendor_sched/rt_uclamp_min 125

View file

@ -88,6 +88,28 @@
}
]
},
{
"Name": "OtaPerformance",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpu",
"Path": "dex2oat"
}
},
{
"Name": "WriteFile",
"Params":
{
"FilePath": "/sys/kernel/vendor_sched/set_task_group_ota",
"Value": "<pid>",
"LogFailures": "false"
}
}
]
},
{
"Name": "CameraServiceHighCapacity",
"Actions": [
@ -337,6 +359,10 @@
{
"Name": "Dex2OatBootComplete",
"Profiles": [ "Dex2oatPerformance", "ProcessCapacityNormal", "LowIoPriority", "TimerSlackHigh" ]
},
{
"Name": "OtaProfiles",
"Profiles": [ "OtaPerformance", "ProcessCapacityNormal", "LowIoPriority", "TimerSlackHigh" ]
}
]
}