[Raspberry Pi 4] Overclocking core_freq alone decreases performance
Is this the right place for my bug report? This repository contains the GPU firmware used on the Raspberry Pi. This software is the closed source part of the Raspberry Pi system, it includes booting (including network booting and USB booting), low-level power and clock control, FKMS and legacy HDMI control (not full KMS that is in the linux kernel), hardware legacy codecs (MPEG2, H264 and VC1), encode hardware including the ISP (image sensor pipeline) and camera control, audio output (analogue and HDMI audio).
If you believe that the issue you are seeing is within this area, this is the right place. If not, we have other repositories for the linux kernel at github.com/raspberrypi/linux and Raspberry Pi userland applications at github.com/raspberrypi/userland. If you have problems with the Raspbian distribution packages, report them in the github.com/RPi-Distro/repo. If you simply have a question, then the Raspberry Pi forums are the best place to ask it.
Describe the bug
When overclocking the core_freq alone on Raspberry Pi 4, e.g. to 600 or 700 MHz, while leaving gpu_freq untouched, the actual GPU performance, according to glmark2 is roughly halved.
To reproduce
- Remove all overclocking settings
- Run
glmark2 - Set only
core_freq=600 - Run
glmark2 - Set only
gpu_freq=600orgpu_freq=600+core_freq=600
Expected behaviour
As the default is 500 MHz, with 4k enabled 550 MHz, one would expect overall GPU performance to be increased instead of dramatically reduced.
Actual behaviour Here are some benchmarks: https://dietpi.com/forum/t/core-freq-700-halves-graphics-performance-on-the-pi4/17221/4?u=michaing
An idea I have is that a misalignment between core and video block frequencies may cause the issue. On RPi 4, by default, the max/load clocks of all GPU blocks are the same, hence changing core_freq implies a misalignment. I am not technically versed to know whether those can affect each other this significantly, but it is the only idea I have. The official docs explicitly suggest to raise individual block frequencies rather than gpu_freq, so if the behaviour is expected, the docs should be changed or extended to explain the possible negative effect.
System Copy and paste the results of the raspinfo command in to this section. Alternatively, copy and paste a pastebin link, or add answers to the following questions:
- Which model of Raspberry Pi? Raspberry Pi 4 Model B
- Which OS and version (
cat /etc/rpi-issue)? - Which firmware version (
vcgencmd version)? - Which kernel version (
uname -a)?
Apr 25 2023 18:26:03
Copyright (c) 2012 Broadcom
version d7f9c2b4ef7e4a8c0b04374a879ce89d7a948453 (clean) (release) (start)
Linux debian 6.1.34-v8+ #1657 SMP PREEMPT Fri Jun 16 12:36:29 BST 2023 aarch64 GNU/Linux
Logs https://dietpi.com/forum/t/core-freq-700-halves-graphics-performance-on-the-pi4/17221/4?u=michaing
Additional context
This was tested on Debian Bookworm userland, but kernel/firmware from Bullseye suite of archive.raspberrypi.org. It should not have an effect, but I am awaiting a test on RPi OS 64-bit Bullseye.
I can confirm this happens on RPi OS 64-bit Bullseye, too.