Raspberry pi 4 CPU idle frequency at max (1500 MHz) on Ubuntu Server 20.04 LTS with scaling_governor set to "ondemand"
Posted: Sun May 17, 2020 11:20 am
Hey!
I couldn't find a post relating to my problem / observation, so I decided to finally register to the forum and post it myself. Hope it's in right place!
I recently installed 64-bit version of Ubuntu Server 20.04 LTS on my one week old Raspberry Pi 4B (4Gb) using the Raspberry Pi Imager-software. The installation and setup went smoothly, and everything seems to be working really well in general (including running ts3server with qemu-user-static). Before installation I upgraded the firmware with rpi-eeprom to the latest active version (a5e1b95f320810c69441557c5f5f0a7f2460dfb8 (release)).
However, today I started investigating the cpu frequency in both load and idle with command
and noticed the current frequency to be same as the set maximum frequency, which is 1500 MHz, even when cpu load was < 2 % with all cores. To be sure, I also compiled the userland for arm64, and got the same results using
which showed the same result.
After excessive googling, I found a post relating to RP3 overclocking issues (mine is not overclocked), where they ran different tests with changed values for scaling_governor. I also tested different settings as follows:
And the frequency goes:
as it should be with.
If I set scaling_governor back to "ondemand", the cpu frequency jumps back up to 1500 MHz...
I found a workaround for this, by setting
which drops the idle frequency to 600 MHz, and seems to respond to cpu load changes quite well.
My question here really is, has anyone else experienced this while using 64bit Ubuntu Server 20.04 LTS on their RP4? And do you know, if there are any drawbacks when using. Of note, no matter if the idle frequency was 1500 or 600 MHz, the SoC temperature seemed to stay ~the same (which sounds quite logical as there is no real load).
Cheers and thanks in advance!
I couldn't find a post relating to my problem / observation, so I decided to finally register to the forum and post it myself. Hope it's in right place!
I recently installed 64-bit version of Ubuntu Server 20.04 LTS on my one week old Raspberry Pi 4B (4Gb) using the Raspberry Pi Imager-software. The installation and setup went smoothly, and everything seems to be working really well in general (including running ts3server with qemu-user-static). Before installation I upgraded the firmware with rpi-eeprom to the latest active version (a5e1b95f320810c69441557c5f5f0a7f2460dfb8 (release)).
However, today I started investigating the cpu frequency in both load and idle with command
Code: Select all
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freqCode: Select all
vcgencmd measure_clock armAfter excessive googling, I found a post relating to RP3 overclocking issues (mine is not overclocked), where they ran different tests with changed values for scaling_governor. I also tested different settings as follows:
Code: Select all
echo "powersave" |sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
powersaveCode: Select all
vcgencmd measure_clock arm
frequency(48)=600169920If I set scaling_governor back to "ondemand", the cpu frequency jumps back up to 1500 MHz...
I found a workaround for this, by setting
Code: Select all
echo "conservative" |sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governorMy question here really is, has anyone else experienced this while using 64bit Ubuntu Server 20.04 LTS on their RP4? And do you know, if there are any drawbacks when using. Of note, no matter if the idle frequency was 1500 or 600 MHz, the SoC temperature seemed to stay ~the same (which sounds quite logical as there is no real load).
Cheers and thanks in advance!