Thanks Eugene I learned something, that's always a good thing.

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
intel_pstate

$ cat /etc/sysconfig/cpupower
# See 'cpupower help' and cpupower(1) for more info
CPUPOWER_START_OPTS="frequency-set -g ondemand"
CPUPOWER_STOP_OPTS="frequency-set -g ondemand"

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
performance powersave

So I edited '/etc/sysconfig/cpupower' and changed 'ondemand' to 'powersave' and lo:

# systemctl status cpupower.service
cpupower.service - Configure CPU power related settings
   Loaded: loaded (/lib/systemd/system/cpupower.service; enabled)
   Active: active (exited) since Mon 2015-06-08 09:39:38 CDT; 11s ago
Process: 11199 ExecStart=/usr/bin/cpupower $CPUPOWER_START_OPTS (code=exited, status=0/SUCCESS)
 Main PID: 11199 (code=exited, status=0/SUCCESS)

Jun 08 09:39:38 localhost.localdomain systemd[1]: Started Configure CPU power related settings.
Jun 08 09:39:38 localhost.localdomain cpupower[11199]: Setting cpu: 0
Jun 08 09:39:38 localhost.localdomain cpupower[11199]: Setting cpu: 1
Jun 08 09:39:38 localhost.localdomain cpupower[11199]: Setting cpu: 2
Jun 08 09:39:38 localhost.localdomain cpupower[11199]: Setting cpu: 3

Will be interesting to see if I actually notice anything about this computers performance.

Ben Bullard
ben79
--------------------
OpenMandriva-QA Team

On 06/08/2015 12:56 AM, Eugene Shatokhin wrote:
Hi,

Chances are, your system uses intel_pstate driver for frequency scaling rather than acpi_cpufreq, and cpupower still tries to set "ondemand" governor that is not supported there.

See 'cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver'.

If it is "intel_pstate", then see what is in /etc/sysconfig/cpupower. Chances are, it contains the following:

CPUPOWER_START_OPTS="frequency-set -g ondemand"
CPUPOWER_STOP_OPTS="frequency-set -g ondemand"

You can change "ondemand" to "powersave" there, then try to start cpupower.service again.

I fixed a similar problem in ROSA some time ago, not sure if OpenMandriva has analogous fixes as well.

Note that this "powersave" governor is not the same as the "traditional" "powersave" governor for acpi_cpufreq, so do not worry that "ondemand" is not used.

By the way, the list of available governors is available in /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors.

Regards,

Eugene


_______________________________________________
OM-Cooker mailing list
[email protected]
http://ml.openmandriva.org/listinfo.cgi/om-cooker-openmandriva.org

Reply via email to