PiGraham
Posts: 4767
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Overclocking

Thu Mar 09, 2017 1:54 pm

Some more Googling turned up this possible answer, which I assume will also apply to Zero W:
dom wrote:
hansotten wrote: To prevent misunderstandings:
Not a bug in the Zero, but in the overclocking sw. Fixed in next release, not next batch of the Zero.
Just to clarify this is purely an issue with raspi-config (and the GUI Pi config utility which uses raspi-config).
You are free to manually edit config.txt. "arm_freq=1100" will work just as it always has in the past.

User avatar
pi3g
Authorised Reseller
Authorised Reseller
Posts: 269
Joined: Mon Nov 05, 2012 9:58 pm
Location: Germany
Contact: Website

Overclocking for Pi 4 / Pi 400 / Pi 3B

Sat Nov 28, 2020 8:16 am

321 wrote:
Tue Mar 07, 2017 8:49 pm
Is there a definitive list of the most stable over/under clocking settings for the different pi models a bit like this? Image
I've built a web-based tool, which will allow you to select presets for Pi 4 / Pi 400 / Pi 3B:

Overclocking tool for Pi 4 / Pi 400 / Pi 3B
raspberry-pi-overclocking-webtool.jpg
raspberry-pi-overclocking-webtool.jpg (31.33 KiB) Viewed 1738 times
overclock-maximum-performance-pi400.jpg
overclock-maximum-performance-pi400.jpg (38.36 KiB) Viewed 1738 times
There are two presets, medium booster and maximum performance. The tool will also warn you if you're about to set the warranty bit.

You'll be able to download the presets as a file, and my page also explains how to add it to config.txt

Feedback on which settings to put into the tool for other Pis is very welcome :-)

Max
picockpit.com - tools to make your life with the Pi a little bit easier

User avatar
DougieLawson
Posts: 41431
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Overclocking

Sat Nov 28, 2020 10:24 am

What about the 2B V1.2 (with the BCM2837) and the 3B+?

The "warranty bit" has been eliminated from some of the later models.
viewtopic.php?t=283911#p1718810
Any language using left-hand whitespace for syntax is ridiculous

Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.

Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

User avatar
pi3g
Authorised Reseller
Authorised Reseller
Posts: 269
Joined: Mon Nov 05, 2012 9:58 pm
Location: Germany
Contact: Website

Re: Overclocking

Sat Nov 28, 2020 10:30 am

DougieLawson wrote:
Sat Nov 28, 2020 10:24 am
What about the 2B V1.2 (with the BCM2837) and the 3B+?

The "warranty bit" has been eliminated from some of the later models.
viewtopic.php?t=283911#p1718810
Thanks for your feedback!

Yes, I've read about the warranty bit not being of particular importance - still thought it's better to be 100 % safe than sorry ...

In my research it seems that the 3B+ is not particularly well suited for being overclocked, as it already has been clocked at it's limits.
Do you have a different overclocking experience with the 3B+?

Concerning the 2B: I wanted to do the most popular models first, and add additional overclocking further down the line - it seems most people are interested in the Pi 4 (and 400 by extension, I think).

I'll make a note of the 2B v1.2, and try to add it in the coming days.

Cheers,
Max
picockpit.com - tools to make your life with the Pi a little bit easier

User avatar
jahboater
Posts: 7162
Joined: Wed Feb 04, 2015 6:38 pm
Location: Wonderful West Dorset

Re: Overclocking

Sat Nov 28, 2020 10:34 am

pi3g wrote:
Sat Nov 28, 2020 10:30 am
In my research it seems that the 3B+ is not particularly well suited for being overclocked, as it already has been clocked at it's limits.
Do you have a different overclocking experience with the 3B+?
I agree. I only ever managed a truly stable overclock of 25MHz :) The 40nm node size was at its limit.

The Pi4 has an enormous margin by comparison, 600MHz or more.

User avatar
pi3g
Authorised Reseller
Authorised Reseller
Posts: 269
Joined: Mon Nov 05, 2012 9:58 pm
Location: Germany
Contact: Website

Re: Overclocking

Sat Nov 28, 2020 10:42 am

Do you have any experience with the Pi 2 v1.2?
picockpit.com - tools to make your life with the Pi a little bit easier

User avatar
jahboater
Posts: 7162
Joined: Wed Feb 04, 2015 6:38 pm
Location: Wonderful West Dorset

Re: Overclocking

Sat Nov 28, 2020 10:56 am

pi3g wrote:
Sat Nov 28, 2020 10:42 am
Do you have any experience with the Pi 2 v1.2?
No, sorry.

My guess is that it might approach Pi3 speeds.
Last edited by jahboater on Sat Nov 28, 2020 10:59 am, edited 2 times in total.

User avatar
pi3g
Authorised Reseller
Authorised Reseller
Posts: 269
Joined: Mon Nov 05, 2012 9:58 pm
Location: Germany
Contact: Website

Re: Overclocking

Sat Nov 28, 2020 10:58 am

Yes, right - since they're based on the same SoC that seems reasonable :-)
picockpit.com - tools to make your life with the Pi a little bit easier

User avatar
jahboater
Posts: 7162
Joined: Wed Feb 04, 2015 6:38 pm
Location: Wonderful West Dorset

Re: Overclocking

Sat Nov 28, 2020 10:59 am

pi3g wrote:
Sat Nov 28, 2020 10:58 am
Yes, right - since they're based on the same SoC that seems reasonable :-)
It hasn't got the fancy thermal management that the Pi3B+ (plus) has.

User avatar
pi3g
Authorised Reseller
Authorised Reseller
Posts: 269
Joined: Mon Nov 05, 2012 9:58 pm
Location: Germany
Contact: Website

Re: Overclocking

Sat Nov 28, 2020 11:02 am

Ah, I was thinking of the Pi 3B - that would be more comparable. Sorry for not being clear (Pi 3, for me, is Pi 3B, and Pi 3B+ is Pi 3B+)
picockpit.com - tools to make your life with the Pi a little bit easier

User avatar
pi3g
Authorised Reseller
Authorised Reseller
Posts: 269
Joined: Mon Nov 05, 2012 9:58 pm
Location: Germany
Contact: Website

Re: Overclocking

Mon Nov 30, 2020 8:09 am

I've now added more models, including Raspberry Pi 2 v1.2 as suggested to my Raspberry Pi overclocking tool.
overclock-raspberry-pi-new-options.jpg
overclock-raspberry-pi-new-options.jpg (37.54 KiB) Viewed 1584 times
picockpit.com - tools to make your life with the Pi a little bit easier

aBUGSworstnightmare
Posts: 3163
Joined: Tue Jun 30, 2015 1:35 pm

Re: Overclocking

Mon Nov 30, 2020 9:13 am

pi3g wrote:
Mon Nov 30, 2020 8:09 am
I've now added more models, including Raspberry Pi 2 v1.2 as suggested to my Raspberry Pi overclocking tool.

overclock-raspberry-pi-new-options.jpg
medium booster settings for Pi400 proposed by this tool don't work for me on my Pi400, neither running FKMS nor KMS on latest 5.10 kernel. Need to add that I have a DPI display connected to GPIO.
Image

ejolson
Posts: 7509
Joined: Tue Mar 18, 2014 11:47 am

Re: Overclocking

Mon Nov 30, 2020 4:06 pm

pi3g wrote:
Mon Nov 30, 2020 8:09 am
I've now added more models, including Raspberry Pi 2 v1.2 as suggested to my Raspberry Pi overclocking tool.

overclock-raspberry-pi-new-options.jpg
To be useful it would be nice if the over clocking tool had built-in diagnostics to check the system was somewhat stable after performing the adjustments.

User avatar
pi3g
Authorised Reseller
Authorised Reseller
Posts: 269
Joined: Mon Nov 05, 2012 9:58 pm
Location: Germany
Contact: Website

Re: Overclocking

Mon Nov 30, 2020 4:15 pm

aBUGSworstnightmare wrote:
Mon Nov 30, 2020 9:13 am
pi3g wrote:
Mon Nov 30, 2020 8:09 am
I've now added more models, including Raspberry Pi 2 v1.2 as suggested to my Raspberry Pi overclocking tool.

overclock-raspberry-pi-new-options.jpg
medium booster settings for Pi400 proposed by this tool don't work for me on my Pi400, neither running FKMS nor KMS on latest 5.10 kernel. Need to add that I have a DPI display connected to GPIO.
Image
Would you be able to test without the DPI display? (Unlikely that it has an effect, but maybe ...)
I'll also look into it again tomorrow morning, these medium settings are meant to be broadly compatible with most Pis, therefore your feedback is really valuable to me.

Thanks
Max
picockpit.com - tools to make your life with the Pi a little bit easier

User avatar
pi3g
Authorised Reseller
Authorised Reseller
Posts: 269
Joined: Mon Nov 05, 2012 9:58 pm
Location: Germany
Contact: Website

Re: Overclocking

Mon Nov 30, 2020 4:16 pm

ejolson wrote:
Mon Nov 30, 2020 4:06 pm
pi3g wrote:
Mon Nov 30, 2020 8:09 am
I've now added more models, including Raspberry Pi 2 v1.2 as suggested to my Raspberry Pi overclocking tool.

overclock-raspberry-pi-new-options.jpg
To be useful it would be nice if the over clocking tool had built-in diagnostics to check the system was somewhat stable after performing the adjustments.
Thanks for the feedback - I'll add it to my list of planned apps for PiCockpit. (Right now PiDoctor, as I've described on the page, already offers some support to monitor overclocking parameters).

What I'll do in any case is add instructions how to do it manually to the page :-) Great idea, thanks again for the feedback!
picockpit.com - tools to make your life with the Pi a little bit easier

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5763
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Overclocking

Mon Nov 30, 2020 4:54 pm

pi3g wrote:
Mon Nov 30, 2020 4:15 pm
Would you be able to test without the DPI display? (Unlikely that it has an effect, but maybe ...)
I'll also look into it again tomorrow morning, these medium settings are meant to be broadly compatible with most Pis, therefore your feedback is really valuable to me.
Remember that no overclock is 100% guaranteed on all chips with all temperatures and use cases.
If it were we would have have increased the default clock frequency.

I think the best you can do is say a medium overclock should work on, perhaps, 90% of chips.

aBUGSworstnightmare
Posts: 3163
Joined: Tue Jun 30, 2015 1:35 pm

Re: Overclocking

Mon Nov 30, 2020 5:44 pm

pi3g wrote:
Mon Nov 30, 2020 4:15 pm
Would you be able to test without the DPI display? (Unlikely that it has an effect, but maybe ...)
I'll also look into it again tomorrow morning, these medium settings are meant to be broadly compatible with most Pis, therefore your feedback is really valuable to me.
Thanks
Max
Will test tomorrow morning and report back! Now I need to think about how to solve the DSI issue ... (other story)

EDIT: just tested (FKMS) with a FHD monitor connected to HDMI and DPI disabled(disconnected: doesn't boot.
Did not test KMS as the result should be the same. Hence, my Pi400 is from the remaining 10% which don't like your settings.

mike.NY
Posts: 11
Joined: Mon Nov 30, 2020 6:07 pm

Re: Overclocking

Mon Nov 30, 2020 6:09 pm

Is there a recommended test to run on an overclocked RP4 to make sure it is stable? For windows, there is superPI which computes pi -- the number :D -- out to millions of decimal places and it compares the results to the known value so if the overclock is unstable, it shows you. I run Raspberry Pi OS 32-bit.

User avatar
pi3g
Authorised Reseller
Authorised Reseller
Posts: 269
Joined: Mon Nov 05, 2012 9:58 pm
Location: Germany
Contact: Website

Re: Overclocking

Tue Dec 01, 2020 7:02 am

mike.NY wrote:
Mon Nov 30, 2020 6:09 pm
Is there a recommended test to run on an overclocked RP4 to make sure it is stable? For windows, there is superPI which computes pi -- the number :D -- out to millions of decimal places and it compares the results to the known value so if the overclock is unstable, it shows you. I run Raspberry Pi OS 32-bit.
I'm researching this right now, and will publish the information along with detailed instructions on

https://picockpit.com/raspberry-pi/over ... pberry-pi/

(currently a work in progress!)

TL;DR:
* Linpack
* memtester
* cpuburn (as recommended by jahboater)
picockpit.com - tools to make your life with the Pi a little bit easier

User avatar
pi3g
Authorised Reseller
Authorised Reseller
Posts: 269
Joined: Mon Nov 05, 2012 9:58 pm
Location: Germany
Contact: Website

Re: Overclocking

Tue Dec 01, 2020 7:28 am

aBUGSworstnightmare wrote:
Mon Nov 30, 2020 5:44 pm
EDIT: just tested (FKMS) with a FHD monitor connected to HDMI and DPI disabled(disconnected: doesn't boot.
Did not test KMS as the result should be the same. Hence, my Pi400 is from the remaining 10% which don't like your settings.
Try to remove the gpu_freq=750 line, maybe that will help? (Ref:
https://github.com/raspberrypi/firmware ... -578681934
)
(I've tested on my Pi 400 and adding / removing the line makes no difference, it works)
picockpit.com - tools to make your life with the Pi a little bit easier

User avatar
pi3g
Authorised Reseller
Authorised Reseller
Posts: 269
Joined: Mon Nov 05, 2012 9:58 pm
Location: Germany
Contact: Website

Re: Overclocking

Tue Dec 01, 2020 7:29 am

dom wrote:
Mon Nov 30, 2020 4:54 pm

Remember that no overclock is 100% guaranteed on all chips with all temperatures and use cases.
If it were we would have have increased the default clock frequency.

I think the best you can do is say a medium overclock should work on, perhaps, 90% of chips.
Thanks, Dom, this is a good reminder :-) Would you mind if I quoted it on my overclocking tool's page to set a proper expectation?
picockpit.com - tools to make your life with the Pi a little bit easier

User avatar
jahboater
Posts: 7162
Joined: Wed Feb 04, 2015 6:38 pm
Location: Wonderful West Dorset

Re: Overclocking

Tue Dec 01, 2020 7:54 am

pi3g wrote:
Tue Dec 01, 2020 7:02 am
I'm researching this right now, and will publish the information along with detailed instructions on
As its name suggests cpuburn-a53 is best for the Pi's with Cortex-A53 cpu cores.
It does run on Pi4 with its Cortex-A72 cores but doesn't produce such a rapid rise in temperature.
On the original Pi3, in its early days, it would crash the Pi in less than ten seconds!

There is also stress-ng. For example:

Code: Select all

stress-ng --cpu 4 --cpu-method fft
Install it with "sudo apt install stress-ng". Details from "man stress-ng"

For a trivial CPU load without installing anything, try "yes >/dev/null"

Code: Select all

yes >/dev/null & yes >/dev/null & yes>/dev/null & yes >/dev/null &

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5763
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Overclocking

Tue Dec 01, 2020 10:37 am

pi3g wrote:
Tue Dec 01, 2020 7:29 am
Thanks, Dom, this is a good reminder :-) Would you mind if I quoted it on my overclocking tool's page to set a proper expectation?
That's fine.

ejolson
Posts: 7509
Joined: Tue Mar 18, 2014 11:47 am

Re: Overclocking

Tue Dec 01, 2020 5:21 pm

jahboater wrote:
Tue Dec 01, 2020 7:54 am
pi3g wrote:
Tue Dec 01, 2020 7:02 am
I'm researching this right now, and will publish the information along with detailed instructions on
As its name suggests cpuburn-a53 is best for the Pi's with Cortex-A53 cpu cores.
While general reliability can be important and certainly most important for me, a common use of over clocking is to get a specific application that just wasn't quite fast enough already to run faster.

For example, if a machine emulator for historic hardware doesn't run as fast as the original, over clocking may help. In this case, there is only one binary with a fixed sequence of machine instructions that needs to run without crashing. As a result one can push the clock speeds much further, for example totally breaking all floating point, in order that the specific program of interest runs faster.

Such frequency optimisation that breaks general operations while still allowing a particular program to run is also common for video games. In the extreme case, you could also analyse the operating system to remove troublesome sequences of instructions that lead to a crash. For a start, the CPU-optimised memory copy subroutines in the kernel can be slowed down so overall clock speeds can be increased while maintaining stability.

In my opinion, there are very few cases where the benefit versus cost tradeoff favours over clocking. However, there are obviously some cases where it makes sense and it's nice to have a tool which provides guidance when doing so.

User avatar
jahboater
Posts: 7162
Joined: Wed Feb 04, 2015 6:38 pm
Location: Wonderful West Dorset

Re: Overclocking

Tue Dec 01, 2020 6:35 pm

ejolson wrote:
Tue Dec 01, 2020 5:21 pm
While general reliability can be important and certainly most important for me, a common use of over clocking is to get a specific application that just wasn't quite fast enough already to run faster.

For example, if a machine emulator for historic hardware doesn't run as fast as the original, over clocking may help. In this case, there is only one binary with a fixed sequence of machine instructions that needs to run without crashing. As a result one can push the clock speeds much further, for example totally breaking all floating point, in order that the specific program of interest runs faster.
That's a good point. But not something I have explored.
ejolson wrote:
Tue Dec 01, 2020 5:21 pm
In my opinion, there are very few cases where the benefit versus cost tradeoff favours over clocking. However, there are obviously some cases where it makes sense and it's nice to have a tool which provides guidance when doing so.
Every now and again a CPU comes on the market that has huge reserves of stability. That it is, it will usually run with a much lower supply voltage than specified and/or run at a very much higher clock speed than specified.

By the looks of it, the Pi4 has such a CPU. Its stock speed is 1.5GHz, yet most examples are happy running at 2.0 or 2.1 GHz.
The Pi4 in front of me now is unconditionally stable at 2.1GHz and never throttles. I actually run it at 2GHz to give it a safety margin.

This cost me nothing, so the benefit versus cost tradeoff seems favourable.

Return to “Advanced users”