summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Hsieh <victorhsieh@google.com>2022-05-12 11:52:14 -0700
committerVictor Hsieh <victorhsieh@google.com>2022-05-16 17:53:01 -0700
commitb40fb113e7acf3a4e30807cffdda0a34be4b3e7c (patch)
tree213fa0b3b588bff3b4f6c22d5091f7e8b8b3d6cc
parent7e778c1350690da683956814ae02b4e6f5dbe654 (diff)
downloadcore-b40fb113e7acf3a4e30807cffdda0a34be4b3e7c.tar.gz
Make VMCompilationPerformance an aggregated profile with default
The VMCompilationPerformance profile is used to run Isolated Compilation in a Protected VM, normally during the device idle, where relevant APEXes are staged. The original VMCompilationPerformance introduced in aosp/2060891 does not have any specific definition and requires vendors to customize it. This change re-defines it as an aggregated profile with a default set of existing profiles, so that performance can be reasonable by default. This profile may be renamed to a more generic name later, e.g. "SCHED_SP_COMPUTE". Bug: 231437770 Test: Run `composd_cmd test-compile` on a local device. Before: 1m50s +/- 10s (with whatever that's default) After: 1m25s +/- 5s Ignore-AOSP-First: cherry pick from aosp/2097065 Change-Id: Ib8cd65782c818474fb129efbd9ef9a3e23ad1eb3 Merged-In: Ib8cd65782c818474fb129efbd9ef9a3e23ad1eb3
-rw-r--r--libprocessgroup/profiles/task_profiles.json17
1 files changed, 4 insertions, 13 deletions
diff --git a/libprocessgroup/profiles/task_profiles.json b/libprocessgroup/profiles/task_profiles.json
index f5533c262..4092c1a37 100644
--- a/libprocessgroup/profiles/task_profiles.json
+++ b/libprocessgroup/profiles/task_profiles.json
@@ -224,19 +224,6 @@
]
},
{
- "Name": "VMCompilationPerformance",
- "Actions": [
- {
- "Name": "JoinCgroup",
- "Params":
- {
- "Controller": "cpu",
- "Path": "system"
- }
- }
- ]
- },
- {
"Name": "CpuPolicySpread",
"Actions": [
{
@@ -660,6 +647,10 @@
"Profiles": [ "ServicePerformance", "LowIoPriority", "TimerSlackNormal" ]
},
{
+ "Name": "VMCompilationPerformance",
+ "Profiles": [ "HighPerformance", "ProcessCapacityHigh", "LowIoPriority", "TimerSlackNormal" ]
+ },
+ {
"Name": "SCHED_SP_RT_APP",
"Profiles": [ "RealtimePerformance", "MaxIoPriority", "TimerSlackNormal" ]
},