[SOLVED] CPU governor

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[SOLVED] CPU governor

Postby mackowiakp » May 23rd, '13, 09:06

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?
Last edited by mackowiakp on May 23rd, '13, 18:03, edited 3 times in total.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: CPU governor

Postby sander85 » May 23rd, '13, 15:22

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.
Stand for something, or you will fall for nothing.
-- Richard Stallman
User avatar
sander85
 
Posts: 88
Joined: Jan 28th, '12, 20:41
Location: Estonia

Re: CPU governor

Postby mackowiakp » May 23rd, '13, 17:01

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?
Last edited by isadora on May 23rd, '13, 17:19, edited 1 time in total.
Reason: Command-output placed between [CODE]-tags, to keep the forum readable. ;)
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: CPU governor

Postby mackowiakp » May 23rd, '13, 17:23

OK! You solve my problem! I just removed cpufreqd and everything works fine!

THX
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest

cron