Skip to content
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

intel_pstate driver and MaxKHz parameter #95

Open
mlincett opened this issue Jun 10, 2024 · 4 comments
Open

intel_pstate driver and MaxKHz parameter #95

mlincett opened this issue Jun 10, 2024 · 4 comments

Comments

@mlincett
Copy link

It seems that trying to control the maximum clockspeed through the MaxKHz parameter is somewhat ineffective on a platform that uses the intel_pstate scaling driver. An example.

Besides, the /sys/devices/system/cpu/cpufreq/policy?/scaling_available_frequencies property is not exposed by intel_pstate.

Is there a workaround to run the benchmark at a fixed max clockspeed on Intel?

@ThomasKaiser
Copy link
Owner

Is there a workaround to run the benchmark at a fixed max clockspeed on Intel?

Unfortunately not that I know of.

@mlincett
Copy link
Author

I fiddled a bit more.

Running cpupower frequency-set -u $freqKHz before sbc-bench seems effective in limiting the max clockspeed (see attachment) when sbc-bench is run with an appropriate $MaxKHz parameter.

In my case what I tried was cpupower frequency-set -u 1000000 and $MaxKHz=800000 for sbc-bench, I am not sure which of the two values ended up determining the effective clockspeed (measured at ~990 MHz). If sbc-bench is run unconstrained, then the limit set by cpupower is overridden in the CheckCPUCluster() loop.

@ThomasKaiser
Copy link
Owner

Can you please provide output of the following with that specific setup (800 MHz max cpufreq OPP while running with 1000 MHz in reality)?

grep -r . /sys/devices/system/cpu/*/cpufreq/* ; grep -r . /sys/devices/system/cpu/cpufreq/*

@mlincett
Copy link
Author

Can you please provide output of the following with that specific setup (800 MHz max cpufreq OPP while running with 1000 MHz in reality)?

grep -r . /sys/devices/system/cpu/*/cpufreq/* ; grep -r . /sys/devices/system/cpu/cpufreq/*

See attached dump.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants