Implement "efficient cores only" on cpuhotplug plugin #206
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.
Hello,
I'm submitting this feature where if
DISABLE_AVAILABLE_CPU="performance"
is set, the cores with higher maximum frequencies(Performance Cores) and their hyperthreading cores will be disabled, keeping only the ones with lower max frequencies(Efficient cores) enabled. To play safe here, I'll not hotplugcpu0
andcpu1
since they could be running kernel stuff(andcpu1
is usually HT ofcpu0
, have to confirm withlscpu -e
)In my case, I have a
Intel Core i7-12650H
, and when this is configured, the only cores enabled on battery will be cpu0, cpu1, cpu12, cpu13, cpu14, cpu15. The last four are Efficient and work at a max of 3.5GHz, while the other cores work at 4.7GHzAlready tested on my laptop and this is what I get when using this setting:
There are some processors which have cores with Max Boost and have like 3 different max frequencies(4.9, 4.7 and 4.0Ghz for example). This plugin update will only enable the lower max frequency cores, if more than 2 are provided.