Shop with Confidence at Permude - Unbeatable Prices, Unmatched Quality

How to speed up, overclock 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.


The Raspberry Pi 5 is the fastest Pi yet. But what if I told you there was a quick, easy and relatively inexpensive way to make it even faster? Well, you can supercharge a Raspberry Pi 5 by overclocking it and rigging it up with a superfast SSD instead of using a microSD card to run the operating system from.

I recently went through the process on my Pi 5, and 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. 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.


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.

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?

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.

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.


Benchmark

Improvement

GeekBench 6

15% overall performance

MotionMark

13% (GPU performance)

VSCode app loading time

1 second faster (5s to 4s)

USB file transfer

34% faster

File compression

35% faster

Startup boot time

2 seconds faster (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 an 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 viewing a list of compatible drives.)
  • An NVMe to USB adapter or enclosure (unless you install the OS onto the SSD after the fact while running Raspberry Pi OS on the SD card)
  • 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.

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.

If you have an NVME-to-USB adapter or NVME USB enclosure, use that 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.

If you don’t have an adapter, install the SSD using the steps below but leave the SD card plugged into your Pi. Then download and boot up the Raspberry Pi Imager from within the Raspberry Pi OS and install Raspberry Pi OS onto your NVMe SSD. Finally, turn off your Pi, remove the SD card, and boot up.

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 slot on 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 1000MHz.

Your mileage may vary based on how lucky you were in the silicone lottery (how powerful 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 beginner DIY projects for the new Raspberry Pi 5

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

Trending Products

0
Add to compare
Corsair 5000D Airflow Tempered Glass Mid-Tower ATX PC Case – Black

Corsair 5000D Airflow Tempered Glass Mid-Tower ATX PC Case – Black

$168.05
0
Add to compare
CORSAIR 7000D AIRFLOW Full-Tower ATX PC Case, Black

CORSAIR 7000D AIRFLOW Full-Tower ATX PC Case, Black

$269.99
0
Add to compare
Corsair iCUE 4000X RGB Mid-Tower ATX PC Case – White (CC-9011205-WW)

Corsair iCUE 4000X RGB Mid-Tower ATX PC Case – White (CC-9011205-WW)

$144.99
.

We will be happy to hear your thoughts

Leave a reply

Permude
Logo
Register New Account
Compare items
  • Total (0)
Compare
0
Shopping cart