diff options
author | Rick Yiu <rickyiu@google.com> | 2022-02-09 18:41:29 +0800 |
---|---|---|
committer | TreeHugger Robot <treehugger-gerrit@google.com> | 2022-02-11 13:47:55 +0000 |
commit | 1b0d78ac5b3171c30cbdcc3628d5e5cea3349f83 (patch) | |
tree | aad3edc8b5e004a54a96eace50eae6f84c5dcdde /task_profiles.json | |
parent | 0567190969e446e534dced28df0bf658cd4dd94f (diff) | |
download | gs201-1b0d78ac5b3171c30cbdcc3628d5e5cea3349f83.tar.gz |
Sync vendor task_profiles and init rc file
Sync the settings from P21.
Bug: 207573268
Test: build pass
Change-Id: Ia6f761c6247522707d34888347bec6736c227e9e
Diffstat (limited to 'task_profiles.json')
-rw-r--r-- | task_profiles.json | 145 |
1 files changed, 103 insertions, 42 deletions
diff --git a/task_profiles.json b/task_profiles.json index 5ca5431..b113f35 100644 --- a/task_profiles.json +++ b/task_profiles.json @@ -4,18 +4,24 @@ "Name": "MaxPerformance", "Actions": [ { - "Name": "JoinCgroup", + "Name": "WriteFile", "Params": { - "Controller": "cpu", - "Path": "system" + "FilePath": "/sys/kernel/vendor_sched/set_task_group_ta", + "Value": "<pid>", + "LogFailures": "false" } - }, + } + ] + }, + { + "Name": "CameraServicePerformance", + "Actions": [ { "Name": "WriteFile", "Params": { - "FilePath": "/sys/kernel/vendor_sched/set_task_group_ta", + "FilePath": "/sys/kernel/vendor_sched/set_task_group_cam", "Value": "<pid>", "LogFailures": "false" } @@ -23,21 +29,41 @@ ] }, { - "Name": "CameraServicePerformance", + "Name": "CameraServicePower", "Actions": [ { - "Name": "JoinCgroup", + "Name": "WriteFile", "Params": { - "Controller": "cpu", - "Path": "system" + "FilePath": "/sys/kernel/vendor_sched/set_task_group_cam_power", + "Value": "<pid>", + "LogFailures": "false" } - }, + } + ] + }, + { + "Name": "Dex2oatPerformance", + "Actions": [ { "Name": "WriteFile", "Params": { - "FilePath": "/sys/kernel/vendor_sched/set_task_group_cam", + "FilePath": "/sys/kernel/vendor_sched/set_task_group_dex2oat", + "Value": "<pid>", + "LogFailures": "false" + } + } + ] + }, + { + "Name": "OtaPerformance", + "Actions": [ + { + "Name": "WriteFile", + "Params": + { + "FilePath": "/sys/kernel/vendor_sched/set_task_group_ota", "Value": "<pid>", "LogFailures": "false" } @@ -87,18 +113,24 @@ "Name": "HighEnergySaving", "Actions": [ { - "Name": "JoinCgroup", + "Name": "WriteFile", "Params": { - "Controller": "cpu", - "Path": "background" + "FilePath": "/sys/kernel/vendor_sched/set_task_group_bg", + "Value": "<pid>", + "LogFailures": "false" } - }, + } + ] + }, + { + "Name": "NormalPerformance", + "Actions": [ { "Name": "WriteFile", "Params": { - "FilePath": "/sys/kernel/vendor_sched/set_task_group_bg", + "FilePath": "/sys/kernel/vendor_sched/set_task_group_sys", "Value": "<pid>", "LogFailures": "false" } @@ -106,21 +138,27 @@ ] }, { - "Name": "NormalPerformance", + "Name": "HighPerformance", "Actions": [ { - "Name": "JoinCgroup", + "Name": "WriteFile", "Params": { - "Controller": "cpu", - "Path": "system" + "FilePath": "/sys/kernel/vendor_sched/set_task_group_fg", + "Value": "<pid>", + "LogFailures": "false" } - }, + } + ] + }, + { + "Name": "RealtimePerformance", + "Actions": [ { "Name": "WriteFile", "Params": { - "FilePath": "/sys/kernel/vendor_sched/clear_group", + "FilePath": "/sys/kernel/vendor_sched/set_task_group_ta", "Value": "<pid>", "LogFailures": "false" } @@ -128,21 +166,27 @@ ] }, { - "Name": "HighPerformance", + "Name": "NNApiHALPerformance", "Actions": [ { - "Name": "JoinCgroup", + "Name": "WriteFile", "Params": { - "Controller": "cpu", - "Path": "system" + "FilePath": "/sys/kernel/vendor_sched/set_task_group_nnapi", + "Value": "<pid>", + "LogFailures": "false" } - }, + } + ] + }, + { + "Name": "ServicePerformance", + "Actions": [ { "Name": "WriteFile", "Params": { - "FilePath": "/sys/kernel/vendor_sched/set_task_group_fg", + "FilePath": "/sys/kernel/vendor_sched/set_task_group_sysbg", "Value": "<pid>", "LogFailures": "false" } @@ -150,21 +194,21 @@ ] }, { - "Name": "RealtimePerformance", + "Name": "SFMainPolicy", "Actions": [ { "Name": "JoinCgroup", "Params": { - "Controller": "cpu", - "Path": "system" + "Controller": "cpuset", + "Path": "top-app" } }, { "Name": "WriteFile", "Params": { - "FilePath": "/sys/kernel/vendor_sched/set_task_group_ta", + "FilePath": "/sys/kernel/vendor_sched/set_task_group_sf", "Value": "<pid>", "LogFailures": "false" } @@ -172,21 +216,21 @@ ] }, { - "Name": "NNApiHALPerformance", + "Name": "SFRenderEnginePolicy", "Actions": [ { "Name": "JoinCgroup", "Params": { - "Controller": "cpu", - "Path": "system" + "Controller": "cpuset", + "Path": "top-app" } }, { "Name": "WriteFile", "Params": { - "FilePath": "/sys/kernel/vendor_sched/set_task_group_nnapi", + "FilePath": "/sys/kernel/vendor_sched/set_task_group_rt", "Value": "<pid>", "LogFailures": "false" } @@ -194,26 +238,43 @@ ] }, { - "Name": "SystemBGPerformance", + "Name": "ResetUclampGrp", "Actions": [ { - "Name": "JoinCgroup", + "Name": "WriteFile", "Params": { - "Controller": "cpu", - "Path": "system" + "FilePath": "/sys/kernel/vendor_sched/uclamp_fork_reset_set", + "Value": "<pid>", + "LogFailures": "false" } - }, + } + ] + }, + { + "Name": "NoResetUclampGrp", + "Actions": [ { "Name": "WriteFile", "Params": { - "FilePath": "/sys/kernel/vendor_sched/set_task_group_sysbg", + "FilePath": "/sys/kernel/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" ] + } ] } |