Page 1 of 1

[SOLVED] CPU governor

PostPosted: May 23rd, '13, 09:06
by mackowiakp
I have a problem with setting CPU governor. I am new in Mageia but i used Mandrake/Mandriva since 2007. So:
- the cpufreqd is running (started from init.d)
- the governors are loaded:

Code: Select all
[root@piotr ~]# lsmod|grep cpufreq
cpufreq_ondemand       13943  0
cpufreq_conservative    13852  0
cpufreq_powersave      12618  0
acpi_cpufreq           19571  4
mperf                  12667  1 acpi_cpufreq
processor              35779  1 acpi_cpufreq


Actual governor is set to "performance":
Code: Select all
[root@piotr ~]# cpupower frequency-info
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0 1 2 3
  CPUs which need to have their frequency coordinated by software: 0 1 2 3
  maximum transition latency: 10.0 us.
  hardware limits: 2.00 GHz - 2.33 GHz
  available frequency steps: 2.33 GHz, 2.00 GHz
  available cpufreq governors: ondemand, conservative, powersave, userspace, performance
  current policy: frequency should be within 2.33 GHz and 2.33 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 2.33 GHz (asserted by call to hardware).
  boost state support:
    Supported: no
    Active: no


I want to change to "ondemand" but the error is raported:
Code: Select all
[root@piotr ~]# /usr/bin/cpufreqd-set  ondemand
No cpufreqd socket found


Whats is wrong? Any idea?

Re: CPU governor

PostPosted: May 23rd, '13, 15:22
by sander85
Better set your options in /etc/sysconfig/cpupower and check that cpupower.service is enabled and running. All other cpu* related services are not needed.

Re: CPU governor

PostPosted: May 23rd, '13, 17:01
by mackowiakp
Yep, but the content of /etc/sysconfig/cpupower file is:
Code: Select all
[root@piotr sysconfig]# cat cpupower
# See 'cpupower help' and cpupower(1) for more info
CPUPOWER_START_OPTS="frequency-set -g ondemand"
CPUPOWER_STOP_OPTS="frequency-set -g ondemand"


And cpupower frequency-info shows:
Code: Select all
cpupower frequency-info
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0 1 2 3
  CPUs which need to have their frequency coordinated by software: 0 1 2 3
  maximum transition latency: 10.0 us.
  hardware limits: 2.00 GHz - 2.33 GHz
  available frequency steps: 2.33 GHz, 2.00 GHz
  available cpufreq governors: ondemand, conservative, powersave, userspace, performance
  current policy: frequency should be within 2.33 GHz and 2.33 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 2.33 GHz (asserted by call to hardware).
  boost state support:
    Supported: no
    Active: no


Fo governor is "ondemand" but it still will be keep CPU freq at 2,33 GHz. I want to be 2 GHz in most time because of heat of CPU core. The freq difference is not big but difference in heat emission big. So I want to "ondemand" change CPU freq between 2 and 2,3 GHz.
I have similar problem with my laptop (it has many more freq steps). So in this case such freq switching is much more important. It worked in Mandriva but maybe in M3 I have to configure such feature in different way?

Re: CPU governor

PostPosted: May 23rd, '13, 17:23
by mackowiakp
OK! You solve my problem! I just removed cpufreqd and everything works fine!

THX