sdm660-common: power-libperfmgr: Limit dex2oat thread and cpuset under thermal stress
NORMAL: 6 threads, cpu-set 0~7
LIGHT: 4 threads, cpu-set 0~5
MODERATE: 2 threads, cpu-set 0~3
SEVERE and above: 1 thread, cpu-set 2~3
Test: boot, run CPU Throttling Test, and check logcat
Test: `getprop dalvik.vm.dex2oat-cpu-set` and
`getprop dalvik.vm.dex2oat-threads` when "ThrottlingStatus: MODERATE"
ref:
334667e9a8
[clarencelol: SDM845 and SDM660 have the same cpusets]
Co-authored-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: clarencekuiek <clarencelol@icloud.com>
This commit is contained in:
parent
b5e77ddd6c
commit
46c13a45ee
1 changed files with 82 additions and 0 deletions
|
@ -176,6 +176,28 @@
|
|||
""
|
||||
],
|
||||
"Type": "Property"
|
||||
},
|
||||
{
|
||||
"Name": "Dex2oatThreads",
|
||||
"Path": "vendor.powerhal.dalvik.vm.dex2oat-threads",
|
||||
"Values": [
|
||||
"1",
|
||||
"2",
|
||||
"4",
|
||||
"6"
|
||||
],
|
||||
"Type": "Property"
|
||||
},
|
||||
{
|
||||
"Name": "Dex2oatCPUSet",
|
||||
"Path": "vendor.powerhal.dalvik.vm.dex2oat-cpu-set",
|
||||
"Values": [
|
||||
"2,3",
|
||||
"0,1,2,3",
|
||||
"0,1,2,3,4,5",
|
||||
"0,1,2,3,4,5,6,7"
|
||||
],
|
||||
"Type": "Property"
|
||||
}
|
||||
],
|
||||
"Actions": [
|
||||
|
@ -334,6 +356,66 @@
|
|||
"Node": "GPUMaxFreq",
|
||||
"Duration": 0,
|
||||
"Value": "647000000"
|
||||
},
|
||||
{
|
||||
"PowerHint": "THERMAL_fps-therm-monitor_LIGHT",
|
||||
"Node": "Dex2oatThreads",
|
||||
"Duration": 0,
|
||||
"Value": "4"
|
||||
},
|
||||
{
|
||||
"PowerHint": "THERMAL_fps-therm-monitor_LIGHT",
|
||||
"Node": "Dex2oatCPUSet",
|
||||
"Duration": 0,
|
||||
"Value": "0,1,2,3,4,5"
|
||||
},
|
||||
{
|
||||
"PowerHint": "THERMAL_fps-therm-monitor_MODERATE",
|
||||
"Node": "Dex2oatThreads",
|
||||
"Duration": 0,
|
||||
"Value": "2"
|
||||
},
|
||||
{
|
||||
"PowerHint": "THERMAL_fps-therm-monitor_MODERATE",
|
||||
"Node": "Dex2oatCPUSet",
|
||||
"Duration": 0,
|
||||
"Value": "0,1,2,3"
|
||||
},
|
||||
{
|
||||
"PowerHint": "THERMAL_fps-therm-monitor_SEVERE",
|
||||
"Node": "Dex2oatThreads",
|
||||
"Duration": 0,
|
||||
"Value": "1"
|
||||
},
|
||||
{
|
||||
"PowerHint": "THERMAL_fps-therm-monitor_SEVERE",
|
||||
"Node": "Dex2oatCPUSet",
|
||||
"Duration": 0,
|
||||
"Value": "2,3"
|
||||
},
|
||||
{
|
||||
"PowerHint": "THERMAL_fps-therm-monitor_CRITICAL",
|
||||
"Node": "Dex2oatThreads",
|
||||
"Duration": 0,
|
||||
"Value": "1"
|
||||
},
|
||||
{
|
||||
"PowerHint": "THERMAL_fps-therm-monitor_CRITICAL",
|
||||
"Node": "Dex2oatCPUSet",
|
||||
"Duration": 0,
|
||||
"Value": "2,3"
|
||||
},
|
||||
{
|
||||
"PowerHint": "THERMAL_fps-therm-monitor_EMERGENCY",
|
||||
"Node": "Dex2oatThreads",
|
||||
"Duration": 0,
|
||||
"Value": "1"
|
||||
},
|
||||
{
|
||||
"PowerHint": "THERMAL_fps-therm-monitor_EMERGENCY",
|
||||
"Node": "Dex2oatCPUSet",
|
||||
"Duration": 0,
|
||||
"Value": "2,3"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue