-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uncore: Allow to configure frequency limits using percent #611
Conversation
f44bb8b
to
4ae5921
Compare
4ae5921
to
dcc2640
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add ASCII doc inline comments describing plugin parameters like other plugins have. Especially mention what happened in case of conflicting setting (i.e. khZ vs percentage).
Otherwise the code LGTM.
What about using unit suffix to distinguish between percentage and kHz? Then we could avoid the possible conflict between kHz and percentage setting. E.g. we used something similar in |
Sorry for delay, I was busy with other project. Yes, suffix makes perfect sense, will update. |
Using direct frequency values in only useful in specialistic profiles where we know target platform. Allow to configure uncore frequency as percent of hardware maximum/minimum frequency. Such parameters can be used in generic profiles like 'balanced' in portable way, for example: [uncore] max_freq_khz=90% Signed-off-by: Stanislaw Gruszka <[email protected]>
@yarda I made the update, please check. Not sure why test are failing now, I think it's issue with CI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, the CI failure is unrelated.
Using direct frequency values in only useful in specialistic profiles
where we know target platform. Allow to configure uncore frequency as
percent of hardware maximum/minimum frequency. Such parameters can be
used in generic profiles like 'balanced' in portable way, for example:
[uncore]
max_freq_khz=90%