how to make a raspberry pi run faster

8 Easy Tips & Tricks to Increase Your Raspberry Pi’s Speed

If you click our links and make a purchase, we may earn an affiliate commission. Learn more

The Raspberry Pi is not the fastest computer, but recent models are powerful enough to be used in many situations. I don’t spend much time trying to optimize mine, but I will share a few great tips I know with you in this article. We’ll see just how easy it is to optimize the Raspberry Pi’s performance.

The hardware, operating system, and installed applications are the most common reasons for a slow Raspberry Pi. The easiest ways to optimize a Raspberry Pi are by using better components, overclocking, installing a 64-bit OS, or removing unused apps and services.

In this article, I will start by giving you the tips you are looking for and explain why they will make a difference. Then we’ll check the performance improvement we can get by applying them.

If you’re new to Raspberry Pi or Linux, I’ve got something that can help you right away!
Download my free Linux commands cheat sheet – it’s a quick reference guide with all the essential commands you’ll need to get things done on your Raspberry Pi. Click here to get it for free!

Tips to Make a Slow Raspberry Pi Run Faster

These are simple tips you can apply to get the most out of your Raspberry Pi, whatever the model you use. Try to apply a few of them (or all at once) to see which results you can get.

Get Rid of Unused Apps and Services

If you are anything like me, you may like installing and testing new apps on your Raspberry Pi. After awhile, this can drastically decrease the Raspberry Pi’s performance, as it has to run not only the apps you are using but also apps that are still running in the background.

For example, if you try to install Webmin one day, Pi-Hole another day, and a few other services like that, they will continue to run on your system even if you don’t use them anymore. After a few weeks or months, your Raspberry Pi may spend much of its resources on services you don’t use.

To make your Raspberry Pi run faster, list the installed applications and services and remove the ones you don’t need anymore. You can do this with a package manager like Synaptic, or from the command line:
sudo dpkg -l

If you don’t know how to uninstall apps on Raspberry Pi, click on this link to read my detailed tutorial about this.

Tip: Using a lightweight operating system like DietPi allows you to select the apps you want during installation. It won’t install anything you don’t choose. That’s the best way to start with a fast OS. DietPi is really close to Raspberry Pi OS, so you shouldn’t be lost. Learn more about it here.

Prefer reading without ads and popups?
Members get an ad-free version of every guide, plus exclusive project support.
Join the Community | Sign In

Check the Process List to Identify Resource Hogs

All apps and services are not created equal. The next step is to look for apps that require the most memory or CPU resources. You can do this easily by displaying the process list when you find that your Raspberry Pi is slow.

If you have a desktop environment, you should have an app to find this quickly.
On Raspberry Pi OS, you can find it under main menu > Accessories > Task Manager:

You’ll quickly see if your CPU and memory are overused, and which apps or services are using the most of them.

Lost in the terminal? Grab My Pi Cheat-Sheet!
Download the free PDF, keep it open, and stop wasting time on Google.
Download now

To do the same from a terminal, my favorite is the “htop” tool:
htop

You can see the programs running and the resources they take up (CPU% and MEM%). It should help you find which processes are slowing down your Raspberry Pi and optimize them or get rid of them if you don’t need them anymore.

Quick note: If you find it hard to remember all these commands, I’ve put them all on a one-page cheat sheet. You can download it for free here so you have it handy whenever you're working on a project.

Use a Better SD Card

This is probably the most common reason for a slow Raspberry Pi. Many users are using the SD card included with their Raspberry Pi kit, but it’s rarely the best one. Manufacturers include an SD card as a gift, and they often provide the cheapest option they can source.

sandisk extreme pro fast sd card

There’s often a huge difference in performance between a low-end SD card and a faster one. As the best micro-SD cards are not overly expensive, it might be a good idea to look for something better to use on your Raspberry Pi.

I have a complete benchmark of the most popular SD cards here, so I won’t go into detail in this article. Read the other article, select the best one for you and see if you can get better results.

Upgrade to an SSD

On more recent Raspberry Pi models and operating systems, it’s possible to replace the SD card with an SSD instead. The performance boost you can get with this upgrade is spectacular. I’ll show you the difference in the second part of this article, but you should probably consider it.

SSDs are no longer prohibitively expensive. The favorite that I have been recommending for years is this one from SanDisk (check the price on Amazon), but even with cheaper options (like this one from Kingston) you will drastically improve the boot speed and responsiveness of your system.

Some cases let you plug in an M2 SSD (like the Argon One, check my review here).

Using an SSD has other advantages. I consider them safer than SD cards, as they will last longer and have lower chances to be lost or accidentally broken. Also, if you don’t have an SD card reader on your PC, it’s easy to plug it into a USB port and quickly transfer files in one way or another.

If you don’t know how to switch from your SD card to an SSD disk, I have an entire module in the video lessons for community members, explaining how to do this step by step. It’s not complicated, once you know the fastest method to do it, you can get access to it there.

Use a 64-bit Operating System (When Supported)

After many years of waiting, there are now several operating systems for the Raspberry Pi with a 64-bit version.

Lost in the terminal? Grab My Pi Cheat-Sheet!
Download the free PDF, keep it open, and stop wasting time on Google.
Download now

A 64-bit operating system is intended to better use the power of a 64-bit CPU, and improve the overall performance for several reasons. You can expect an overall boost of about 25% in performance with a 64-bit operating system on a compatible device. And some apps will benefit even more from it.

Me

Raspberry Pi OS has a stable 64-bit version (now suggested by default), so you might want to try it and see if you can get better results. I explain the differences and how to install it in this tutorial.
Other operating systems like Manjaro, Fedora, or Ubuntu also offer a stable 64-bit version.

Whatever your system choice, you should be able to get a performance boost with a 64-bit OS if the applications are also optimized.

Experiment with Overclocking

Overclocking a Raspberry Pi has been a sport forever. I didn’t list it first because the results you can expect are less and less interesting with new models. But it can still bring an interesting boost if you’re doing this right.

Overclocking is easy to try, but can also cause damage to your installation, or even worse, to your hardware.
Make sure you know what you are doing before trying anything.

On your SD card, there is a configuration file where you can specify values to boost your Raspberry Pi performance. This file is /boot/firmware/config.txt, and the most common changes are done by playing with:

  • over_voltage: scale voltage up for overclocking.
  • arm_freq: CPU frequency in MHz.
  • gpu_freq: change different settings related to the Raspberry Pi CPU performances.

I will give you the values later in this article but it is something to have in mind if you are looking to improve the Raspberry Pi’s desktop performance or boost gaming emulation performance. Default values are set for the best compromise between performance and safety/temperature, but you can adjust them if you want.

Don’t Forget to Keep It Cool

The CPU temperature for a Raspberry Pi should stay under 70 °C. Depending on your Raspberry Pi model and the apps you use, you might quickly reach this threshold. In this case, it’s a good practice to use on the cooling solution. It could be heat sinks, a fan, a passive case or anything else.

Some models like the Raspberry Pi 3B+ have thermal protections in place. Over 60 °C, the CPU clock speed will start to slow down, and so the performances will decrease. If you want to avoid throttling, you need a good cooling solution.

I have tested many of them on this website. It depends on your preference and use, so I’ll let you determine the solution that seems the most interesting for you:

Get a Proper Power Supply

This is a bonus tip, which may have some importance if your Raspberry Pi doesn’t get enough power to run everything. When looking for performance, and especially if you try overclocking it, you need a good power supply.

You can’t plug your Raspberry Pi into the USB port of your computer and expect maximum performance.

Lost in the terminal? Grab My Pi Cheat-Sheet!
Download the free PDF, keep it open, and stop wasting time on Google.
Download now

Check this: 15 Easy Projects for Raspberry Pi Beginners

I have an entire article on how to power a Raspberry Pi, so I won’t give many details about it here. In short, make sure to use a compatible power supply for your Raspberry Pi model (each model has specific requirements).

Experiment: Results You Can Get with These Tips

In this second part of the article, I will show you what you can expect by applying all these tips. I have tested them on my Raspberry Pi 4 (4 GB) and will share my results with you.

Baseline Performance on a Standard Installation

Let’s start with the initial performance I get with my basic installation. I’m using Raspberry Pi OS (Full) installed on a SanDisk Extreme Pro SD card (which is one of the best currently, so I won’t test the tip about the SD card). I have done all the updates and have almost nothing installed (so no apps/services running).

I did a few experiments, and here are the results I got:

  • Boot time: about 28 seconds.
  • Sysbench: 9.20ms per request on average.
  • Speedometer (web browser performances): 10.
  • CPU temperature: around 52 °C during the tests.

Results After Overclocking

Then, I only changed the settings in my /boot/firmware/config.txt file to overclock the CPU.
Here are the values I tested:

over_voltage=6
arm_freq=2140
gpu_freq=750

Disclaimer: The following recommendations are what I tested on my Raspberry Pi 4 with 4 GB RAM. These values have to be adapted depending on the model and cooling system you use. I cannot be held responsible for any damage to your system or hardware.

And the results I got by only making this change:

  • Boot time: no improvement.
  • Sysbench: 6.53ms per request on average.
  • Speedometer: 13.36.
  • CPU temperature: around 65 °C during the tests.

It seems like a nice 30% boost in performance for the tasks using the CPU. Not bad for a single change, let’s see what we can get by pushing this further.

The Best Results You Can Get for a Similar Installation

If you add an SSD to this setup and maybe switch to a faster OS like Manjaro, you can also expect another boost in performance.

Switching to SSD storage will speed up the boot time and the overall responsiveness of your operating system. Each access to the disk will be way faster.

Lost in the terminal? Grab My Pi Cheat-Sheet!
Download the free PDF, keep it open, and stop wasting time on Google.
Download now

Manjaro got me a 30% boost without SSD or overclocking, so combining everything will almost double the performance.

You don’t need to change everything, but you can apply a few of the tips I gave in this article. As you can see, it’s already a great improvement. It’s not complicated, and you can get the most out of your Raspberry Pi after a few changes.

Video

That’s all for today! If you need more help pinpointing the source of the problem, check out our related article: 7 Simple Linux Commands to See What’s Slowing You Down.


🛠 This tutorial doesn't work anymore? Report the issue here, so that I can update it!

Stuck on this project? Ask me or other Pi users in the RaspberryTips Community. We help each other out and you'll get answers quick. Join and fix it together.

FAQ

How do I check the current clock speed?

There are two important values to check for the current clock speed on Raspberry Pi.
The maximum can be obtained with the command:
vcgencmd get_config arm_freq

While the current clock speed can be found in this file (divide the value by 1000):
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq

How do I find out the CPU temperature of my Raspberry Pi?

There are two ways to know the CPU temperature of Raspberry Pi. A widget named “CPU Temperature” can be added to the top panel to display its value all the time on a desktop environment.

The alternative is to issue the following command from a terminal:
vcgencmd measure_temp

How do I properly cool a Raspberry Pi?

The best cooling system for your Raspberry Pi depends on your model and CPU usage. In most cases, Raspberry Pi doesn’t need a cooling system, but solutions like heat sinks, passive cases, or fans can help to keep them cool in an intense environment.

Related: Raspberry Pi Temperature: Limits, Monitoring, Cooling, and More

How do I know if my Raspberry Pi is throttling?

A Raspberry Pi can throttle itself to protect from heat issues or insufficient power.
To know if your Raspberry Pi is throttling, type this command:
vcgencmd get_throttled

Any non-zero result tells us that there is an issue (under voltage or overheating).

Whenever you’re ready, here are other ways I can help you:

Test Your Raspberry Pi Level (Free): Not sure why everything takes so long on your Raspberry Pi? Take this free 3-minute assessment and see what’s causing the problems.

The RaspberryTips Community: Need help or want to discuss your Raspberry Pi projects with others who actually get it? Join the RaspberryTips Community and get access to private forums, exclusive lessons, and direct help.

Master your Raspberry Pi in 30 days: If you are looking for the best tips to become an expert on Raspberry Pi, this book is for you. Learn useful Linux skills and practice multiple projects with step-by-step guides.

Master Python on Raspberry Pi: Create, understand, and improve any Python script for your Raspberry Pi. Learn the essentials step-by-step without losing time understanding useless concepts.

You can also find all my recommendations for tools and hardware on this page.

Similar Posts