-
-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raspberry Pi | CPU frequency scaling does not work #5088
Comments
Many thanks for your report. Can you show the content of your cat /boot/config.txt |
|
It is not very likely on RPi 4, but in theory some running processes or the commands to check the CPU frequency themselves could cause maxing them out. Can you check And to check the actual time in pstates you can check: cat /sys/devices/system/cpu/cpufreq/policy0/stats/time_in_state Although that |
I've been checking CPU frequency on Raspberry OS with the same commands and, even if I spammed these commands in the terminal, the frequencies shown were 6-700 MHz.
I've read about that bug regarding |
Hi, same weird problem here. EDIT: so i think that in the new 7.9.3 version is something wrong with the installation process. Sorry for my bad english... i hope its understandable... |
Okay so we have it on an ARMv7 image and on an ARMv8 image, hence not architecture related. Strange, my RPi 2 is not affected, it scales as expected between 600 and 900 MHz, but my RPi Zero W is, which runs even on latest master firmware
This matches you Needs to be reported upstream. |
Reported: raspberrypi/firmware#1669 |
That shouldn't be possible, the new image is the old image with updated packages and should match the updated one nearly 100%, at least regarding all that is relevant here. Did you do a reboot after the update and checked back? |
Yep, rebooted many time cause I installed many services to complete my setup again. (Kodi, Adguard Home etc) I checked and it works. It's strange I know but this was the only solution for me 😅 |
Mysterious. I'm currently downgrading the kernel on RPi Zero, which was setup long before I updated our images the last time, so the specific image build cannot be the reason. EDIT: Issue persists, even when commenting all |
@whyisthisbroken @ayo-x vcgencmd get_config force_turbo
grep force_turbo /boot/config.txt |
Found it, it is a changed comment (!) in My goodness, I hope this did not void warranties for anyone. Will quickly redo the images and ship a live patch to remove that comment from all systems. Just to how how much this is a bug, here is the change in the comment, just a little wording change, which causes/solves the issue: a1d1cee |
Quick fix: sed -i '/^[[:blank:]]*#.*force_turbo=1/d' /boot/config.txt
reboot |
Fixed for new images with: 934459f |
A live patch has just been merged: #5091 Background: The RPi |
Thx for the quick solution 👍 |
Thanks back for reporting this, to both of you. I would have overseen it, while it is quite an important one. In case of high |
🤯 Wow.. I'm really glad you found where the actual problem was. Thank you for your time looking into this. |
I'll mark this as closed. Fixed for v8.0 and |
@MichaIng |
Luckily unrelated. |
Creating a bug report/issue
Required Information
DietPi version |
G_DIETPI_VERSION_CORE=7
G_DIETPI_VERSION_SUB=9
G_DIETPI_VERSION_RC=3
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
G_LIVE_PATCH_STATUS[0]='applied'
G_LIVE_PATCH_STATUS[1]='not applicable'
G_LIVE_PATCH_STATUS[2]='not applicable'
Distro version |
bullseye 0
Kernel version |
Linux DietPi 5.10.63-v7l+ #1488 SMP Thu Nov 18 16:15:28 GMT 2021 armv7l GNU/Linux
SBC model |
RPi 4 Model B (armv7l)
Power supply used | 5.1V 3A
SDcard used | SanDisk ultra 32GB / Kingston 32GB (testing)
Additional Information (if applicable)
Yes.
Steps to reproduce
initial_turbo
to pass.cpu
orcat /sys/devices/system/cpu/cpufreq/policy0/{scaling_min_freq,scaling_cur_freq}
.dietpi-config
/Performance options
/Overclocking
&CPU Governor
and choose any combo of OC profile and governor. Reboot.initial_turbo
passing, we'll check CPU frequencies again.Expected behaviour
Actual behaviour
Extra details
initial_turbo
to 0 doesn't change anything regardin scaling.Below are results using a few OC profile and governor combos.
energy-saving
+powersave
cpu
Architecture | armv7l
Temperature | 37 °C / 98 °F : Cool runnings
Governor | powersave
CPU0 | 1500 MHz 1500 MHz 1500 MHz
CPU1 | 1500 MHz 1500 MHz 1500 MHz
CPU2 | 1500 MHz 1500 MHz 1500 MHz
CPU3 | 1500 MHz 1500 MHz 1500 MHz
cat /sys/devices/system/cpu/cpufreq/policy0/{affected_cpus,scaling_governor,scaling_min_freq,scaling_cur_freq,cpuinfo_cur_freq,stats/time_in_state}
0 1 2 3
powersave
1500000
1500000
1500000
1500000 161598
───────────────────────────────────────────────────────────────────
default
+schedutil
cpu
Temperature | 37 °C / 98 °F : Cool runnings
Governor | schedutil
CPU0 | 1500 MHz 1500 MHz 1500 MHz
CPU1 | 1500 MHz 1500 MHz 1500 MHz
CPU2 | 1500 MHz 1500 MHz 1500 MHz
CPU3 | 1500 MHz 1500 MHz 1500 MHz
cat /sys/devices/system/cpu/cpufreq/policy0/{affected_cpus,scaling_governor,scaling_min_freq,scaling_cur_freq,cpuinfo_cur_freq,stats/time_in_state}
0 1 2 3
schedutil
1500000
1500000
1500000
1500000 18048
────────────────────────────────────────────────────────────────────
medium ARM
+ondemand
cpu
Architecture | armv7l
Temperature | 37 °C / 98 °F : Cool runnings
Governor | ondemand
Throttle up | 50% CPU usage
CPU0 | 1800 MHz 1800 MHz 1800 MHz
CPU1 | 1800 MHz 1800 MHz 1800 MHz
CPU2 | 1800 MHz 1800 MHz 1800 MHz
CPU3 | 1800 MHz 1800 MHz 1800 MHz
cat /sys/devices/system/cpu/cpufreq/policy0/{affected_cpus,scaling_governor,scaling_min_freq,scaling_cur_freq,cpuinfo_cur_freq,stats/time_in_state}
0 1 2 3
ondemand
1800000
1800000
1800000
1800000 8327
─────────────────────────────────────────────────────────────────────
high ARM
+conservative
cpu
Architecture | armv7l
Temperature | 41 °C / 105 °F : Optimal temperature
Governor | conservative
Throttle up | 50% CPU usage
CPU0 | 1900 MHz 1900 MHz 1900 MHz
CPU1 | 1900 MHz 1900 MHz 1900 MHz
CPU2 | 1900 MHz 1900 MHz 1900 MHz
CPU3 | 1900 MHz 1900 MHz 1900 MHz
cat /sys/devices/system/cpu/cpufreq/policy0/{affected_cpus,scaling_governor,scaling_min_freq,scaling_cur_freq,cpuinfo_cur_freq,stats/time_in_state}
0 1 2 3
conservative
1900000
1900000
1900000
1900000 12898
The text was updated successfully, but these errors were encountered: