You are not logged in.

#1 2016-10-01 17:21:49

silencer
Member
From: Buenos Aires / Argentina
Registered: 2006-09-01
Posts: 102
Website

[Solved] CPU always in high speed with with cpupower and powersave

Hi!

I have an i7 (Skylake) processor, I have the cpupower daemon enabled:

[root@myhostname silencer]# systemctl status cpupower
● cpupower.service - Apply cpupower configuration
   Loaded: loaded (/usr/lib/systemd/system/cpupower.service; enabled; vendor preset: disabled)
   Active: active (exited) since Sat 2016-10-01 14:02:57 UTC; 7min ago
  Process: 431 ExecStart=/usr/lib/systemd/scripts/cpupower (code=exited, status=0/SUCCESS)
 Main PID: 431 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 4915)
   CGroup: /system.slice/cpupower.service

Oct 01 14:02:56 myhostname systemd[1]: Starting Apply cpupower configuration...
Oct 01 14:02:57 myhostname systemd[1]: Started Apply cpupower configuration.

Set with the powersave governor:

[root@myhostname silencer]# 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:  Cannot determine or is not supported.
  hardware limits: 800 MHz - 3.50 GHz
  available cpufreq governors: performance powersave
  current policy: frequency should be within 800 MHz and 3.50 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency: 3.50 GHz (asserted by call to hardware)
  boost state support:
    Supported: yes
    Active: yes

But the current CPU frequency is always 3.50 GHz.

If I set the max frequency with -u, it changes and becomes the current CPU freq:

[root@myhostname silencer]# cpupower frequency-set -u 1.5GHz
Setting cpu: 0
Setting cpu: 1
Setting cpu: 2
Setting cpu: 3
Setting cpu: 4
Setting cpu: 5
Setting cpu: 6
Setting cpu: 7
[root@myhostname silencer]# 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:  Cannot determine or is not supported.
  hardware limits: 800 MHz - 3.50 GHz
  available cpufreq governors: performance powersave
  current policy: frequency should be within 800 MHz and 1.50 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency: 1.50 GHz (asserted by call to hardware)
  boost state support:
    Supported: yes
    Active: yes

I can't set the frequency with -f because I get this error:

[root@myhostname silencer]#  cpupower frequency-set -f 1000MHz
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?
[root@myhostname silencer]# 

But I don't know if that's related. I just want the powersave governor to change the CPU speed accordingly, but it's not doing that.
There's no obvious CPU usage to provoke this.

Do you know what can be happening?

Thank you! smile

Last edited by silencer (2016-10-01 20:51:13)

Offline

#2 2016-10-01 20:49:38

silencer
Member
From: Buenos Aires / Argentina
Registered: 2006-09-01
Posts: 102
Website

Re: [Solved] CPU always in high speed with with cpupower and powersave

I had tried rebooting, but it continued. I turned off my computer, turned it on again, and worked fine. Anyway, thanks guys! smile

Last edited by silencer (2016-10-01 20:49:57)

Offline

Board footer

Powered by FluxBB