new parameter hardwaretuning includes max and min frequency for reserved cpus#2
Draft
sabbir-47 wants to merge 1 commit into
Draft
new parameter hardwaretuning includes max and min frequency for reserved cpus#2sabbir-47 wants to merge 1 commit into
sabbir-47 wants to merge 1 commit into
Conversation
…ved cpus Signed-off-by: Sabbir Hasan <sahasan@redhat.com>
ba20d76 to
d69d951
Compare
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.
What?
Configuring CPU frequency for reserved and isolated cpus through PerformanceProfile.
Why?
Additional resources:
Characteristics
How?
By introducing a
hardwareTuningparameter in the spec of PerformanceProfile. The onus is on user to provide correct frequencies.It will update the
assets/performanceprofile/tuned/openshift-node-performanceand cpu plugin will apply the frequencies using sysfs directiveChanges
intel_pstate=activeis set forrealTime=true--enable-hardware-tuning. When passed, commented lines get added at the end with an example on how to set the frequency values. For example:When it will not work?
if perPodPowerManagement is set to true, the default intel_pstate is set to passive. For this feature to take in effect, P-state needs to be active. Therefore, cpu frequencies will not be set if perPodPowerManagement is true
Can it be done other ways?
Changing cpu frequencies can be done through the tuned performance-patch, using the sysfs plugin. This would look something like this (using 2.5 GHz as the default frequency and 2.8 GHz for reserved CPUs on a system with 64 CPUs and CPUS 0,1,32,33 reserved for the platform):
This requires 64 lines of configuration (one per logical CPU). The proposed approach reduces the complexity of this configuration, makes it lesser prone to mistake from users side.