Ask Your Question
1

cpupower.service not running

asked 2019-01-22 19:46:57 -0500

SteveEbey73701 gravatar image

updated 2019-01-24 08:35:57 -0500

Ok, this is a desktop so I am not worried about battery life, and I have tried to set performance policy to set the low and high for my cpu, but on every reboot, it shows only the low speed cpu setting in the performance governor. I have followed various guides, to modify the perfomance on system boot, with systemd services, but it does not work. when I run sudo cpupower --frequency-info i get

  current policy: frequency should be within 1.40 GHz and 1.40 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.

I then use

sudo cpupower -c all frequency-set -g performance --max=4.0Ghz --min=1.4Ghz

and I get

  current policy: frequency should be within 1.40 GHz and 4.00 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.

but when i reboot, I have to do it all over again, despite having cpupower.service as shown here enabled and started.

[Unit]
Description=CPU powersave

[Service]
Type=oneshot
ExecStart=/usr/bin/cpupower -c all frequency-set -g performance --max=4.0Ghz --min=4.0Ghz

[Install]
WantedBy=multi-user.target

Does anyone else have something to try, to see if I can run at max from boot?

UPDATE: I am running an AMD FX 8350, and I apologize for leaving that off. The posted answer works on intel platform only. I need something that supports AMD. My motherboard is an Asus M5a97 if that helps also. Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2019-01-23 04:25:07 -0500

updated 2019-01-23 04:41:00 -0500

Dear @SteveEbey73701 - Have a nice day! I do not know if this will help, but I hope you can refer to it.

I am deeply involved in the energy-related field of server operation. Because there is an energy setting field in Dell or IBM like a server, you can set it through hardware in BIOS setting. For the server settings that the operating system can control, various settings can be adjusted, which can be adjusted by the user.

Please refer to this document.

https://www.kernel.org/doc/Documentation/cpu-freq/intel-pstate.txt
https://www.reddit.com/r/Fedora/comments/a0qsrf/cpupower_frequencyset_g_performance_has_no_effect

I checked the status on my experimental stable work-HP F29 server.

[root@masi ~]# dnf install kernel-tools-libs-devel
[root@masi ~]# cpupower frequency-set -g performance --max=3.2Ghz --min=2.0Ghz
Setting cpu: 0
 ~
Setting cpu: 7

[root@masi cpu]# cpupower frequency-info
  available cpufreq governors: conservative userspace powersave ondemand performance schedutil
  current policy: frequency should be within 2.00 GHz and 3.17 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.

[root@masi ~]# dmesg|grep governor
[    0.981552] cpuidle: using governor menu

[root@masi ~]# systemctl status cpupower -l
● cpupower.service - Configure CPU power related settings
 Loaded: loaded (/usr/lib/systemd/system/cpupower.service; enabled; vendor preset: disabled)
  Active: active (exited) since Wed 2019-01-23 19:11:31 KST; 17min ago
  Main PID: 861 (code=exited, status=0/SUCCESS)

[root@masi ~]# systemctl list-units --type service|grep cpupower
cpupower.service                 loaded active exited  Configure CPU power related settings

Even if the power control is controlled by the operating system or the hardware, it may not be fully controlled. Please refer to your kernel issue because it focuses on saving power normally.

edit flag offensive delete link more

Comments

Sorry, but nothing you suggest has worked for me, when I restart, I am back to the low speed setting. Is there something in the policy settings, and if so, how do I change it?

SteveEbey73701 gravatar imageSteveEbey73701 ( 2019-01-24 08:19:08 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-01-22 19:46:57 -0500

Seen: 91 times

Last updated: Jan 24