dre: Import task_profiles.json
Change-Id: I922e83abeb47706303f2b83698ea07c09a65b069
This commit is contained in:
parent
fd732c0a74
commit
e79aee3bbf
3 changed files with 596 additions and 1 deletions
592
configs/task_profiles.json
Normal file
592
configs/task_profiles.json
Normal file
|
@ -0,0 +1,592 @@
|
||||||
|
{
|
||||||
|
"Attributes": [
|
||||||
|
{
|
||||||
|
"Name": "LowCapacityCPUs",
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"File": "background/cpus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "HighCapacityCPUs",
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"File": "foreground/cpus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "MaxCapacityCPUs",
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"File": "top-app/cpus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "AudioAppCapacityCPUs",
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"File": "audio-app/cpus"
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"Name": "MemLimit",
|
||||||
|
"Controller": "memory",
|
||||||
|
"File": "memory.limit_in_bytes"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "MemSoftLimit",
|
||||||
|
"Controller": "memory",
|
||||||
|
"File": "memory.soft_limit_in_bytes"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "MemSwappiness",
|
||||||
|
"Controller": "memory",
|
||||||
|
"File": "memory.swappiness"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "UClampMin",
|
||||||
|
"Controller": "cpu",
|
||||||
|
"File": "cpu.uclamp.min"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "UClampMax",
|
||||||
|
"Controller": "cpu",
|
||||||
|
"File": "cpu.uclamp.max"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
|
"Profiles": [
|
||||||
|
{
|
||||||
|
"Name": "HighEnergySaving",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpu",
|
||||||
|
"Path": "background"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "Frozen",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "freezer",
|
||||||
|
"Path": "frozen"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "Unfrozen",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "freezer",
|
||||||
|
"Path": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "NormalPerformance",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpu",
|
||||||
|
"Path": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "HighPerformance",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpu",
|
||||||
|
"Path": "foreground"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "MaxPerformance",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpu",
|
||||||
|
"Path": "top-app"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "RealtimePerformance",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpu",
|
||||||
|
"Path": "rt"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "AudioAppPerformance",
|
||||||
|
"Actions" : [
|
||||||
|
{
|
||||||
|
"Name" : "JoinCgroup",
|
||||||
|
"Params" :
|
||||||
|
{
|
||||||
|
"Controller": "cpu",
|
||||||
|
"Path": "audio-app"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"Name": "VrKernelCapacity",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"Path": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "VrServiceCapacityLow",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"Path": "system/background"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "VrServiceCapacityNormal",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"Path": "system"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "VrServiceCapacityHigh",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"Path": "system/performance"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "VrProcessCapacityLow",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"Path": "application/background"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "VrProcessCapacityNormal",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"Path": "application"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "VrProcessCapacityHigh",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"Path": "application/performance"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"Name": "ProcessCapacityLow",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"Path": "background"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "ProcessCapacityNormal",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"Path": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "ProcessCapacityHigh",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"Path": "foreground"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "ProcessCapacityMax",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"Path": "top-app"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"Name": "ServiceCapacityLow",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"Path": "system-background"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "ServiceCapacityRestricted",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"Path": "restricted"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"Name": "CameraServiceCapacity",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"Path": "camera-daemon"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "AudioAppCapacity",
|
||||||
|
"Actions" : [
|
||||||
|
{
|
||||||
|
"Name" : "JoinCgroup",
|
||||||
|
"Params" :
|
||||||
|
{
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"Path": "audio-app"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"Name": "BlkIOForeground",
|
||||||
|
"Actions" : [
|
||||||
|
{
|
||||||
|
"Name" : "JoinCgroup",
|
||||||
|
"Params" :
|
||||||
|
{
|
||||||
|
"Controller": "blkio",
|
||||||
|
"Path": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "BlkIOBackground",
|
||||||
|
"Actions" : [
|
||||||
|
{
|
||||||
|
"Name" : "JoinCgroup",
|
||||||
|
"Params" :
|
||||||
|
{
|
||||||
|
"Controller": "blkio",
|
||||||
|
"Path": "bg"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"Name": "LowIoPriority",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "blkio",
|
||||||
|
"Path": "background"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "NormalIoPriority",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "blkio",
|
||||||
|
"Path": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "HighIoPriority",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "blkio",
|
||||||
|
"Path": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "MaxIoPriority",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "blkio",
|
||||||
|
"Path": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"Name": "TimerSlackHigh",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "SetTimerSlack",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Slack": "5000000"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "TimerSlackNormal",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "SetTimerSlack",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Slack": "50000"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"Name": "PerfBoost",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "SetClamps",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Boost": "50%",
|
||||||
|
"Clamp": "0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "PerfClamp",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "SetClamps",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Boost": "0",
|
||||||
|
"Clamp": "30%"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"Name": "LowMemoryUsage",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "SetAttribute",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Name": "MemSoftLimit",
|
||||||
|
"Value": "16MB"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "SetAttribute",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Name": "MemSwappiness",
|
||||||
|
"Value": "150"
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "HighMemoryUsage",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "SetAttribute",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Name": "MemSoftLimit",
|
||||||
|
"Value": "512MB"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "SetAttribute",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Name": "MemSwappiness",
|
||||||
|
"Value": "100"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "SystemMemoryProcess",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "memory",
|
||||||
|
"Path": "system"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
|
"AggregateProfiles": [
|
||||||
|
{
|
||||||
|
"Name": "SCHED_SP_DEFAULT",
|
||||||
|
"Profiles": [ "TimerSlackNormal" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "SCHED_SP_BACKGROUND",
|
||||||
|
"Profiles": [ "HighEnergySaving", "LowIoPriority", "TimerSlackHigh" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "SCHED_SP_FOREGROUND",
|
||||||
|
"Profiles": [ "HighPerformance", "HighIoPriority", "TimerSlackNormal" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "SCHED_SP_TOP_APP",
|
||||||
|
"Profiles": [ "MaxPerformance", "MaxIoPriority", "TimerSlackNormal" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "SCHED_SP_RT_APP",
|
||||||
|
"Profiles": [ "RealtimePerformance", "MaxIoPriority", "TimerSlackNormal" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "CPUSET_SP_DEFAULT",
|
||||||
|
"Profiles": [ "TimerSlackNormal" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "CPUSET_SP_BACKGROUND",
|
||||||
|
"Profiles": [ "HighEnergySaving", "ProcessCapacityLow", "LowIoPriority", "TimerSlackHigh" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "CPUSET_SP_FOREGROUND",
|
||||||
|
"Profiles": [ "HighPerformance", "ProcessCapacityHigh", "HighIoPriority", "TimerSlackNormal" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "CPUSET_SP_TOP_APP",
|
||||||
|
"Profiles": [ "MaxPerformance", "ProcessCapacityMax", "MaxIoPriority", "TimerSlackNormal" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "CPUSET_SP_SYSTEM",
|
||||||
|
"Profiles": [ "ServiceCapacityLow", "TimerSlackNormal" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "CPUSET_SP_RESTRICTED",
|
||||||
|
"Profiles": [ "ServiceCapacityRestricted", "TimerSlackNormal" ]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -339,6 +339,10 @@ PRODUCT_PACKAGES += \
|
||||||
libOmxQcelp13Enc \
|
libOmxQcelp13Enc \
|
||||||
libstagefrighthw
|
libstagefrighthw
|
||||||
|
|
||||||
|
# Perf
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
$(LOCAL_PATH)/configs/task_profiles.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json
|
||||||
|
|
||||||
# Power
|
# Power
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
android.hardware.power-service-qti \
|
android.hardware.power-service-qti \
|
||||||
|
|
|
@ -1308,7 +1308,6 @@ vendor/etc/perf/perfconfigstore.xml
|
||||||
vendor/etc/perf/targetconfig.xml
|
vendor/etc/perf/targetconfig.xml
|
||||||
vendor/etc/perf/targetresourceconfigs.xml
|
vendor/etc/perf/targetresourceconfigs.xml
|
||||||
vendor/etc/powerhint.xml
|
vendor/etc/powerhint.xml
|
||||||
vendor/etc/task_profiles.json
|
|
||||||
vendor/lib/libperfconfig.so
|
vendor/lib/libperfconfig.so
|
||||||
vendor/lib/libperfgluelayer.so
|
vendor/lib/libperfgluelayer.so
|
||||||
vendor/lib/libperfioctl.so
|
vendor/lib/libperfioctl.so
|
||||||
|
|
Loading…
Reference in a new issue