Browse over 10,000 Electronics Projects

Learn the 3 most up-to-date ways to significantly boost your Raspberry Pi performance

Learn the 3 most up-to-date ways to significantly boost  your Raspberry Pi performance
Use your ← → (arrow) keys to browse

Checkup Before Overclocking

Before we start to overclock our Raspberry Pi, we have to prepare and check some conditions.

Monitor the CPU frequency

To learn the current frequency the CPU is setup and running, we have to read out the proc files cpuinfo_min_freq, cpuinfo_max_freq and cpuinfo_cur_freq from the /sys/devices/system/cpu/cpu0/cpufreq/ directory, where:

  • cpuinfo_min_freq – is the minimum frequency for the “idle” mode
  • cpuinfo_max_freq – is the maximum frequency
  • cpuinfo_cur_freq – is the current running frequency for Raspberry Pi

Monitor the CPU temperature

To know the current temperature of CPU, we can run the vcgencmd measure_temp command. To watch the temperature every second, we can run it in a “while” loop like this:

$ while true ; do vcgencmd measure_temp ; sleep 1 ; done

 

This loop is running until we terminate it with CTL+C.



Advertisement


Setup the default speed

The default CPU configuration for the Raspberry Pi board, which goes in idle mode with no task is the following:

  • arm_freq=600MHz
  • core_freq=250MHz

If processes are running, the frequency goes up to:

  • arm_freq=1200
  • core_freq=400 (which is the maximum default values for the Raspberry PI 3).

To prevent the idle mode from damaging, we have to set these lines in your /boot/config.txt:

  • force_turbo=1
  • boot_delay=1

After that, reboot your Raspberry Pi and check the current running frequency again. It should now be set to 1200000 KHz.

Performance test without overclocking

For the first performance test, we run the following command.

$ sysbench --test=memory --cpu-max-prime=2000 --num-threads=4 run

 

This gives us the following results as an output:

 

 

Keep that in mind for the test at the end with the overclocked Raspberry Pi 3.

Use your ← → (arrow) keys to browse
 


Top