You are not logged in.

#1 2015-07-29 05:22:46

freak07
Member
From: India
Registered: 2014-07-15
Posts: 19

Unable to set ondemand CPU governor

My cpu is running at 1.2GHz always(powersave).
Below error is showing when setting ondemand governor.
sudo cpupower frequency-set -g ondemand

Setting cpu: 0
Error setting new values. Common errors:
- Do you have proper administration rights? (super-user?)
- Is the governor you requested available and modprobed?
- Trying to set an invalid policy?
- Trying to set a specific frequency, but userspace governor is not available,
   for example because of hardware which cannot be set to a specific frequency
   or because the userspace governor isn't loaded?

Offline

#2 2015-07-29 06:34:44

blackout
Member
Registered: 2014-05-21
Posts: 38

Re: Unable to set ondemand CPU governor

post your information regarding

lscpu
cpupower frequency-info
uname-a

maybe the ondemand governor is deprecated for your cpu

https://plus.google.com/+TheodoreTso/posts/2vEekAsG2QT

Offline

#3 2015-07-29 06:47:19

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: Unable to set ondemand CPU governor

Check if the governor is available for your CPU and post the output of

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
$ zcat /proc/config.gz | grep  CONFIG_CPU_FREQ_GOV_

Also, take a look on the wiki: https://wiki.archlinux.org/index.php/CP … _governors

Last edited by mauritiusdadd (2015-07-29 06:47:31)


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

#4 2015-07-29 13:33:19

freak07
Member
From: India
Registered: 2014-07-15
Posts: 19

Re: Unable to set ondemand CPU governor

mauritiusdadd wrote:

Check if the governor is available for your CPU and post the output of

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
$ zcat /proc/config.gz | grep  CONFIG_CPU_FREQ_GOV_

Also, take a look on the wiki: https://wiki.archlinux.org/index.php/CP … _governors

performance powersave
CONFIG_CPU_FREQ_GOV_COMMON=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
CONFIG_CPU_FREQ_GOV_USERSPACE=m
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m

Offline

#5 2015-07-29 13:36:53

freak07
Member
From: India
Registered: 2014-07-15
Posts: 19

Re: Unable to set ondemand CPU governor

blackout wrote:

post your information regarding

lscpu
cpupower frequency-info
uname-a

maybe the ondemand governor is deprecated for your cpu

https://plus.google.com/+TheodoreTso/posts/2vEekAsG2QT

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    2
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 58
Model name:            Intel(R) Core(TM) i3-3110M CPU @ 2.40GHz
Stepping:              9
CPU MHz:               1296.937
CPU max MHz:           2400.0000
CPU min MHz:           1200.0000
BogoMIPS:              4791.06
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              3072K
NUMA node0 CPU(s):     0-3
cpupower frequency-info
analyzing CPU 0:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 0.97 ms.
  hardware limits: 1.20 GHz - 2.40 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 1.20 GHz and 2.40 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency is 1.24 GHz.
  boost state support:
    Supported: no
    Active: no
    25500 MHz max turbo 4 active cores
    25500 MHz max turbo 3 active cores
    25500 MHz max turbo 2 active cores
    25500 MHz max turbo 1 active cores
uname -a
Linux arch 4.1.2-2-ARCH #1 SMP PREEMPT Wed Jul 15 08:30:32 UTC 2015 x86_64 GNU/Linux

Offline

#6 2015-07-29 13:44:26

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: Unable to set ondemand CPU governor

Intel doesn't use the acpi_cpufreq governors by default, it uses intel_pstate, which has two internal governors, powersave (equivalent to acpi_cpufreq ondemand) and performance.

Unless you have very good reason otherwise (intel_pstate is known to act up with some cpu/kernel combinations), don't change that.

Offline

#7 2015-07-29 16:30:44

freak07
Member
From: India
Registered: 2014-07-15
Posts: 19

Re: Unable to set ondemand CPU governor

but it is running at 1.2GHz at min continuously even in idle state

Offline

#8 2015-07-29 16:46:11

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: Unable to set ondemand CPU governor

No, it's not. Install turbostat and run it in debug mode (sudo turbostat --debug). Does Avg_MHz show a low number? Do the CPUs spend most of their time in the c6 state? If the answer to both is "yes", everything is fine.

If you think battery life should be longer than it is, you can disable intel_pstate, see if it makes a difference. It probably won't.

Offline

#9 2015-07-29 16:53:11

dice
Member
From: Germany
Registered: 2014-02-10
Posts: 413

Re: Unable to set ondemand CPU governor

CPU min MHz:           1200.0000
 hardware limits: 1.20 GHz - 2.40 GHz

This seems to be the minimum frequency of this cpu model.


I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do.  (Gune | Titan A.E.)

Offline

Board footer

Powered by FluxBB