Raspberry Pi RAM Test

From Repair Wiki
Raspberry Pi RAM Test
Type Troubleshooting/Diagnostics
Device(s) Raspberry Pi
Difficulty ◉◌◌◌ Easy

This article is a stub. You can help Repair Wiki grow by expanding it

To test that the RAM is working correctly, the memtester package can be installed:

sudo apt update && sudo apt install memtester

Check how much RAM is available with the free command:

free

This produces the following output:

                total        used        free      shared  buff/cache   available
Mem:          945292       64212      609464         696      271616      824816
Swap:         102396           0      102396

In the above example, 824MB are available. To test those 824MB two times, run the following command:

sudo memtester 824M 2
  • If the command gets killed by the OOM killer, try testing a smaller amount of RAM.
  • To test more than 3GB of RAM, a 64 bit version of Raspberry Pi OS must be used.
  • To increase the amount of available RAM, close all other programs. You can also boot the Pi in console mode (sudo raspi-config, choose options 1, S5, and B2) to test the maximum amount of RAM possible.