Draft
Conversation
Signed-off-by: Akash Yadav <akashyadav@appdevforall.org>
Contributor
|
Maybe serializing the garbage collection in low memory situations would help? |
Contributor
Author
|
@jomen-adfa You mean using |
Contributor
|
Yes, that's right. |
Signed-off-by: Akash Yadav <akashyadav@appdevforall.org>
Signed-off-by: Akash Yadav <akashyadav@appdevforall.org>
For CPU topology :
1. Try to determine clusters using cpufreq policy directories:
this is probably the most reliable option to determine the CPU topology
and maps 1:1 on to a core cluster on heterogeneous SoCs.
2. Read max frequency of each CPU: group CPUs based on their
maximum frequency, sort them in ascending order. CPUs with
minimum frequency become the little CPUs, and the same
with max frequency become the prime CPUs, while the rest
become big CPUs.
3. Fall back to symmetric grouping. The number of available CPUs
become big CPUs, while little and prime CPUs are 0.
For thermal state:
1. On Android 29+: use PowerManager.getCurrentThermalStatus()
2. On Android 28: read /sys/class/thermal/thermal_zone*/{temp, trip_point_N_temp}
and compare `temp` with `trip_point_N_temp` to determine whether the given
thermal zone is thermal-throttled or not.
Signed-off-by: Akash Yadav <akashyadav@appdevforall.org>
…ture Signed-off-by: Akash Yadav <akashyadav@appdevforall.org>
bcf266b to
395ae94
Compare
Signed-off-by: Akash Yadav <akashyadav@appdevforall.org>
Signed-off-by: Akash Yadav <akashyadav@appdevforall.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See ADFA-2784 for more details.