We now have a new Raspberry4 gibt, which in contrast to the previous versions becomes quite hot. So everybody is interested in the effectiveness of either passive or active cooling and whether this cooling suppresses CPU throtteling.
I wrote a small script check_throttled.sh which reads the current throttling states of the Raspberry with
vcgencmd get_throttled and if throtteling happens or already happend the meaning of the throttling bits is reported.
Example output check_throttled.sh:
pi@raspberrypi-buster:~ $ ./check_throttled.sh
Throttling in hex (bits reset on boot): 0x20000
Bit 17 set: Arm frequency capped has occurred
Throttling in hex: 0x20002 (bits reset every call)
You can see the Raspberry was throttled at least once since reboot but currently there is no throtteling.
In addition i Wrote a small script temp_test.sh which allows to determine the max CPU temperature which a Raspberry reaches if there is a 100% CPU utilization. In addition you can display the increasing CPU temperature in a configurable interval.
Example output temp_test.sh:
pi@raspberrypi-buster:~ $ ./temp_test.sh -i 5
Generate 100% CPU utilization and measure CPU temperature ...
CPU watch interval: 5s
Starting run 1: +0s:temp=56.4'C