How to overclock, speed up your Raspberry Pi 5 with an SSD


Key Takeaways

  • Overclocking the Raspberry Pi 5 can improve your CPU and GPU performance by about 15%.
  • Installing an SSD for your Pi offers faster data transfer, boot times, and app loading.
  • Follow the guide to set up your Raspberry Pi to boot from an NVMe SSD for improved speed and overclock your Raspberry Pi’s processor.


If, like me, you’re not very math-y but still quite tech-y, you might prefer a tech project over a math one to celebrate Pi day. And what better way to celebrate Pi day, I thought, than to supercharge my Raspberry Pi 5 by overclocking it and rigging it up with a superfast SSD?

Because I’m not one to keep such secrets to myself, I documented the process and have given you a step-by-step guide for how to speed up your own Raspberry Pi 5.

Related

Raspberry Pi 5 vs 4: Is the extra power worth the cost?

These two tiny computers pack a punch, and we’ve put them head-to-head to see which one comes out on top.

Don’t worry, either, because Raspberry Pi OS actually makes it quite simple to squeeze more performance out of your Pi. Read on to find out how.


Pimoroni NVMe Base next to Raspberry Pi 5Why speed up your Raspberry Pi 5?

In my Raspberry Pi 5 review and comparison of the Raspberry Pi 5 vs 4, I contended that the Pi 5 is a great desktop PC in its own right and can serve as a cheap home desktop replacement. Its upgraded hardware makes it snappy enough for pretty much any everyday task. The question is: If it’s already fast enough to serve as a desktop PC, why speed it up?


The simple answer is that a little extra performance never hurts. And by speeding up your Raspberry Pi 5, you can squeeze out some extra snappiness for more CPU or I/O-intensive workloads and improve your boot and app load times.

Plus, setting aside general overclocking and focusing just on the storage upgrade we’ll be undertaking, there are other benefits of installing an SSD for use with your Pi than straight-up performance.

While SD cards are cheap and portable, they’re prone to data corruption. SSDs are less so, and while a USB SSD resolves this problem to some extent, NVMe SSDs are faster and more reliable than USB ones.

Raspberry Pi OS file transfer


How much performance will you gain?

It’s a respectable jump

How much performance you’ll gain and how much quicker your Raspberry Pi 5 will be after installing an SSD and overclocking the Pi’s chip depends on several factors (the SSD you choose, how much you overclock your chip, and, to an extent, the silicone lottery).

I can, however, tell you how much my performance increased after speeding up my Pi:

  • The GeekBench 6 benchmark showed a 15% improvement in overall performance
  • The MotionMark benchmark showed a 13% improvement in GPU performance
  • The VSCode app loaded one second faster (from 5s to 4s)
  • A 1GB folder transferred 34% faster over USB
  • File compression was 35% faster
  • Startup boot time was 2 seconds faster (from 20s to 18s)

It’s a testament to the Raspberry Pi 5 and Raspberry Pi OS that the general desktop experience was already snappy before making any changes, but after installing an SSD and overclocking the CPU and GPU I felt things became slightly snappier — opening apps, switching between them, navigating the file explorer, and so on.

Related

9 tips I wish I knew before starting my first Raspberry Pi project

Find your new Raspberry Pi daunting? These tips should have your Raspberry Pi projects up and running in no time.

What you’ll need

If you just want to overclock your Raspberry Pi 5 and don’t want to install an SSD, you’ll just need the active cooler, but if you want to hook an SSD up to your Pi you’ll need the following:


  • Raspberry Pi 5 and accessories (power supply, mouse and keyboard, monitor, HDMI cable)
  • Active cooler for the Pi 5
  • Either a spare SD card and an SD-to-USB adapter, or an SD card with Raspberry Pi OS already installed
  • A Pimoroni NVMe Base for the Raspberry Pi 5
  • A compatible NVMe SSD. (I bought this one on Amazon, but you can purchase one packaged with the NVMe Base, along with view a list of compatible drives.)
  • An NVMe to USB adapter or enclosure
  • A screwdriver

Pimoroni NVMe Base and its components next to Raspberry Pi 5How to use an SSD with your Raspberry Pi 5

Installing an SSD using the Pimoroni NVMe base requires a bit of software preparation and then some pretty simple connecting and screwing in. First, you must get the Pi ready to boot from an NVMe SSD, then you can physically install the SSD.

Raspberry Pi OS showing boot order in configuration tool


Software installation

If you don’t have Raspberry Pi OS already installed on an SD card, download and install the Raspberry Pi Imager, connect a spare SD card to your PC with an SD-to-USB adapter, and install Raspberry Pi OS onto the SD card using the Imager.

There’s no option to install an NVMe bootloader Image onto an SD card via the Raspberry Pi Imager, so you’ll need to install and run Raspberry Pi OS on the SD card to set NVMe as the first boot device in the bootloader.

Now, plug the SD card into your Raspberry Pi, boot up, and do the following:

  1. Open the Terminal with Ctrl + Alt + T
  2. Enter sudo rpi-eeprom-update -a to ensure the bootloader is up-to-date
  3. Enter sudo raspi-config to load up the Raspberry Pi configuration tool
  4. Go to Advanced Options -> Boot Order
  5. Select NVME/USB Boot and hit Enter
  6. Press Esc until you’re out of the configuration tool

Alternatively, you can edit the boot configuration file to do the same thing:


  1. Open the Terminal with Ctrl + Alt + T
  2. Enter sudo rpi-eeprom-update -a to ensure the bootloader is up-to-date
  3. Enter sudo rpi-eeprom-config –edit
  4. Change BOOT_ORDER to BOOT_ORDER=0xf416
  5. Add PCIE_PROBE=1 to the bottom of the file
  6. Save with Ctrl + O
  7. Exit with Ctrl + X

Before you assemble the NVMe Base, you’ll need to flash Pi OS onto your SSD. To do that, use an NVME-to-USB adapter or NVME USB enclosure, to connect the drive to your computer. Then, use the Raspberry Pi Imager to install Raspberry Pi OS onto your NVMe SSD. Make sure you select Raspberry Pi 5 from the list of options, followed by Pi OS 64-bit.

Hardware installation

After you’ve installed Pi OS on your SSD, and made changes to the boot configuration, it’s time to put the entire assembly together and start running your Pi 5 from an SSD.

If you haven’t installed the active cooler onto your Raspberry Pi yet, do so, otherwise your performance will be throttled by high temperatures.


For a more detailed guide on how to set up your Raspberry Pi 5 with an SSD using the Pimoroni NVMe Base, check out Pimoroni’s guide. Here’s the shortened version:

  1. Push four of the (small, wide-headed) screws upwards through the mounting holes of the Pimoroni Base and screw the standoffs on top
  2. Screw the smaller screw upwards through the hole for your respective drive size(probably 2280) and screw a small nut on top
  3. Slide the SSD into the M.2 slot on the NVMe Base
  4. Fix down the SSD by sandwiching the end in between the screw and nut, and a second nut on top of the SSD
  5. Lift the cover Protecting the PCIe sloton the Raspberry Pi
  6. Slide the smaller end of the ribbon cable into the Raspberry Pi’s PCIe slot, with the copper connectors facing inwards towards the Pi
  7. Hold the ribbon cable steady and close the latch on the Pi’s PCIe port
  8. Connect the ribbon cable to the NVMe Base in the same way, keeping its copper connectors facing downwards towards the (black) component side of the NVMe Base
  9. Carefully fold over the Base so that the SSD is sandwiched between the NVMe Base and the Raspberry Pi
  10. Align the holes on the Raspberry Pi 5 with the NVMe Base standoffs, and screw in the four remaining (small, wide-headed) screws to keep it in place.


Once you’re done, be careful not to nudge the ribbon cable too much, as it could come loose or snap. If you’ve installed everything correctly and set up the Pi to boot from an NVMe drive, it should now boot into the Raspberry Pi OS installed on your SSD.

Raspberry Pi 5 being held in front of a screen with Raspberry Pi OS on

How to overclock your Raspberry Pi 5

It’s super easy to overclock your Raspberry Pi 5 — easier than using most computers and operating systems, in fact. All you need to do is add a few commands to a configuration file.

The Raspberry Pi 5 should now have the configuration file located at
/boot/firmware/config.txt
. Other guides referring to /boot/config.txt are outdated.


  1. Open the Terminal with Ctrl + Alt + T
  2. Enter sudo nano -w /boot/firmware/config.txt
  3. At the bottom of the file, enter dtparam=pciex1_gen=3 to tell the Pi it can use PCIe Gen 3 rather than Gen 2 (Gen 3 is quicker)
  4. On a new line, enter arm_freq=2800 to boost your CPU frequency from 2400MHz to 2800MHz
  5. On a new line, enter gpu_freq=900 to boost your GPU frequency from 800MHz to 900MHz
  6. Press Ctrl + O to save and Ctrl + X to exit
  7. Reboot your Raspberry Pi 5

The overclocked CPU and GPU numbers I picked are, in fact, a little conservative, but they’re what I achieved the above performance results with. Other users have had success with, for example, setting the CPU frequency to 2900MHz or 3000MHz and the GPU frequency to 900MHz.

Your mileage may vary based on how lucky you were in the silicone lottery (how fast of a chip was plucked from the batch) — you may be able to achieve a higher overclock than the conservative one I recommended here.

You might want to try out arm_freq=2900 and gpu_freq=950 and see how your Raspberry Pi performs.

Read next

5 DIY beginner projects for the new Raspberry Pi 5

The Raspberry Pi 5 is here, and it’s snappier than ever. Here are some exciting, DIY projects any novice can do with it.



Source link

Previous articleSelf-proclaimed bitcoin inventor is not ‘Satoshi Nakamoto’, UK judge rules
Next articleLG Gram laptops are heavily discounted — up to $700 off