PVE 9.0 CPU Scaling Governor not working anymore

Philebos

New Member
Oct 21, 2023
5
0
1
Hello,

since upgrading to PVE 9.0 the CPU Scaling Governor doesn't seem to work anymore. The cpu-frequency stays the same no matter the chosen power profile (e.g., powersave vs. performance).

In PVE 8 it worked very well with a significant reduction in power-usage with “powersave”.

I did some experiments with different hardware and it's always the same: In PVE 8 and it works, PVE 9 and it doesn't.

Am I missing something

The commands I use:

changing the profile:
echo "powersave" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
verifying the active profile:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
 
Please ask the creators/maintainers of the script to fix their script. Those scripts are not provided nor supported by Proxmox and have their own place for issues and discussions: https://github.com/community-scripts/ProxmoxVE

WARNING: The post by ShaunRutherford below quoted my message but added their own spam link to it. Please ignore and/or report it.
 
Last edited:
  • Like
Reactions: Johannes S
@Philebos I'm not familiar with the script you mention or what it's function is. I am currently setting governor by just passing kernel boot parm `cpufreq.default_governor=ondemand`.
Are you saying (having confirmed the governor has been set successfully) that for a given governor, you see different frequency scaling behaviour under PVE9 cvompared to PVE8?
I've yet uo upgrade so haven't tested this myself.
 
Last edited:
The problem isn't with the script because it doesn't work with the terminal commands either.

Today I reverted to PVE 8.0 on my production machine. I guess I upgraded too early...
 
Downstream issue, all my VM's are now missing the cpu frequency details so alot of pass through virtualization is completely broken:

open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)

Seems related to Proxmox / Qemu / Kernal update, was fine before PVE 9
 
I don't think lowering the CPU frequency will save much power.
If you lower it, the virtual machines won't run.
I think it would be a waste of time.

If you don't know how to undo it, don't do it.

Code:
udevadm info --attribute-walk --path=/devices/system/cpu/cpu0 | grep 'scaling_min_freq'
touch /etc/udev/rules.d/99-cpufreq-scaling-min-freq.rules
nano /etc/udev/rules.d/99-cpufreq-scaling-min-freq.rules
SUBSYSTEM=="cpu", KERNEL=="cpu[0-9]|cpu[0-9][0-9]", ACTION=="add|change", RUN="/usr/bin/bash -c 'echo 550000 > /sys/devices/system/cpu/%k/cpufreq/scaling_min_freq'"
udevadm control --reload
udevadm trigger