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:
parent
eed4ae2a53
commit
219111e484
2 changed files with 28 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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" ]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue