Vendor sched procfs path hierarchy gets updated in kernel. Update the paths in init rc file and task profiles to match the change. Bug: 289151587 Test: pts-tradefed run commandAndExit pts -m PtsPerfWbsTestCases -t com.google.android.perfwbs.pts.SchedulerTest Change-Id: I22a97a08a87a402fb661a90a1e1c7a7a7f8536b3
293 lines
6.9 KiB
JSON
293 lines
6.9 KiB
JSON
{
|
|
"Profiles": [
|
|
{
|
|
"Name": "MaxPerformance",
|
|
"Actions": [
|
|
{
|
|
"Name": "WriteFile",
|
|
"Params":
|
|
{
|
|
"FilePath": "/proc/vendor_sched/groups/ta/set_task_group",
|
|
"ProcFilePath": "/proc/vendor_sched/groups/ta/set_proc_group",
|
|
"Value": "<pid>",
|
|
"LogFailures": "false"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"Name": "CameraServicePerformance",
|
|
"Actions": [
|
|
{
|
|
"Name": "WriteFile",
|
|
"Params":
|
|
{
|
|
"FilePath": "/proc/vendor_sched/groups/cam/set_task_group",
|
|
"ProcFilePath": "/proc/vendor_sched/groups/cam/set_proc_group",
|
|
"Value": "<pid>",
|
|
"LogFailures": "false"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"Name": "CameraServicePower",
|
|
"Actions": [
|
|
{
|
|
"Name": "WriteFile",
|
|
"Params":
|
|
{
|
|
"FilePath": "/proc/vendor_sched/groups/cam_power/set_task_group",
|
|
"ProcFilePath": "/proc/vendor_sched/groups/cam_power/set_proc_group",
|
|
"Value": "<pid>",
|
|
"LogFailures": "false"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"Name": "Dex2oatPerformance",
|
|
"Actions": [
|
|
{
|
|
"Name": "WriteFile",
|
|
"Params":
|
|
{
|
|
"FilePath": "/proc/vendor_sched/groups/dex2oat/set_task_group",
|
|
"ProcFilePath": "/proc/vendor_sched/groups/dex2oat/set_proc_group",
|
|
"Value": "<pid>",
|
|
"LogFailures": "false"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"Name": "OtaPerformance",
|
|
"Actions": [
|
|
{
|
|
"Name": "WriteFile",
|
|
"Params":
|
|
{
|
|
"FilePath": "/proc/vendor_sched/groups/ota/set_task_group",
|
|
"ProcFilePath": "/proc/vendor_sched/groups/ota/set_proc_group",
|
|
"Value": "<pid>",
|
|
"LogFailures": "false"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"Name": "CameraServiceHighCapacity",
|
|
"Actions": [
|
|
{
|
|
"Name": "JoinCgroup",
|
|
"Params":
|
|
{
|
|
"Controller": "cpuset",
|
|
"Path": "camera-daemon-high-group"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"Name": "CameraServiceMidCapacity",
|
|
"Actions": [
|
|
{
|
|
"Name": "JoinCgroup",
|
|
"Params":
|
|
{
|
|
"Controller": "cpuset",
|
|
"Path": "camera-daemon-mid-group"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"Name": "CameraServiceMidHighCapacity",
|
|
"Actions": [
|
|
{
|
|
"Name": "JoinCgroup",
|
|
"Params":
|
|
{
|
|
"Controller": "cpuset",
|
|
"Path": "camera-daemon-mid-high-group"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"Name": "HighEnergySaving",
|
|
"Actions": [
|
|
{
|
|
"Name": "WriteFile",
|
|
"Params":
|
|
{
|
|
"FilePath": "/proc/vendor_sched/groups/bg/set_task_group",
|
|
"ProcFilePath": "/proc/vendor_sched/groups/bg/set_proc_group",
|
|
"Value": "<pid>",
|
|
"LogFailures": "false"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"Name": "NormalPerformance",
|
|
"Actions": [
|
|
{
|
|
"Name": "WriteFile",
|
|
"Params":
|
|
{
|
|
"FilePath": "/proc/vendor_sched/groups/sys/set_task_group",
|
|
"ProcFilePath": "/proc/vendor_sched/groups/sys/set_proc_group",
|
|
"Value": "<pid>",
|
|
"LogFailures": "false"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"Name": "HighPerformance",
|
|
"Actions": [
|
|
{
|
|
"Name": "WriteFile",
|
|
"Params":
|
|
{
|
|
"FilePath": "/proc/vendor_sched/groups/fg/set_task_group",
|
|
"ProcFilePath": "/proc/vendor_sched/groups/fg/set_proc_group",
|
|
"Value": "<pid>",
|
|
"LogFailures": "false"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"Name": "RealtimePerformance",
|
|
"Actions": [
|
|
{
|
|
"Name": "WriteFile",
|
|
"Params":
|
|
{
|
|
"FilePath": "/proc/vendor_sched/groups/ta/set_task_group",
|
|
"ProcFilePath": "/proc/vendor_sched/groups/ta/set_proc_group",
|
|
"Value": "<pid>",
|
|
"LogFailures": "false"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"Name": "NNApiHALPerformance",
|
|
"Actions": [
|
|
{
|
|
"Name": "WriteFile",
|
|
"Params":
|
|
{
|
|
"FilePath": "/proc/vendor_sched/groups/nnapi/set_task_group",
|
|
"ProcFilePath": "/proc/vendor_sched/groups/nnapi/set_proc_group",
|
|
"Value": "<pid>",
|
|
"LogFailures": "false"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"Name": "ServicePerformance",
|
|
"Actions": [
|
|
{
|
|
"Name": "WriteFile",
|
|
"Params":
|
|
{
|
|
"FilePath": "/proc/vendor_sched/groups/sys_bg/set_task_group",
|
|
"ProcFilePath": "/proc/vendor_sched/groups/sys_bg/set_proc_group",
|
|
"Value": "<pid>",
|
|
"LogFailures": "false"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"Name": "SFMainPolicy",
|
|
"Actions": [
|
|
{
|
|
"Name": "JoinCgroup",
|
|
"Params":
|
|
{
|
|
"Controller": "cpuset",
|
|
"Path": "top-app"
|
|
}
|
|
},
|
|
{
|
|
"Name": "WriteFile",
|
|
"Params":
|
|
{
|
|
"FilePath": "/proc/vendor_sched/groups/sf/set_task_group",
|
|
"ProcFilePath": "/proc/vendor_sched/groups/sf/set_proc_group",
|
|
"Value": "<pid>",
|
|
"LogFailures": "false"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"Name": "SFRenderEnginePolicy",
|
|
"Actions": [
|
|
{
|
|
"Name": "JoinCgroup",
|
|
"Params":
|
|
{
|
|
"Controller": "cpuset",
|
|
"Path": "top-app"
|
|
}
|
|
},
|
|
{
|
|
"Name": "WriteFile",
|
|
"Params":
|
|
{
|
|
"FilePath": "/proc/vendor_sched/groups/rt/set_task_group",
|
|
"ProcFilePath": "/proc/vendor_sched/groups/rt/set_proc_group",
|
|
"Value": "<pid>",
|
|
"LogFailures": "false"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"Name": "ResetUclampGrp",
|
|
"Actions": [
|
|
{
|
|
"Name": "WriteFile",
|
|
"Params":
|
|
{
|
|
"FilePath": "/proc/vendor_sched/uclamp_fork_reset_set",
|
|
"Value": "<pid>",
|
|
"LogFailures": "false"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"Name": "NoResetUclampGrp",
|
|
"Actions": [
|
|
{
|
|
"Name": "WriteFile",
|
|
"Params":
|
|
{
|
|
"FilePath": "/proc/vendor_sched/uclamp_fork_reset_clear",
|
|
"Value": "<pid>",
|
|
"LogFailures": "false"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
|
|
"AggregateProfiles": [
|
|
{
|
|
"Name": "Dex2OatBootComplete",
|
|
"Profiles": [ "Dex2oatPerformance", "ProcessCapacityNormal", "LowIoPriority", "TimerSlackHigh" ]
|
|
},
|
|
{
|
|
"Name": "OtaProfiles",
|
|
"Profiles": [ "OtaPerformance", "ServiceCapacityLow", "LowIoPriority", "TimerSlackHigh" ]
|
|
}
|
|
]
|
|
}
|