Raspberry Pi RAM Test: Difference between revisions

From Repair Wiki
(Created from migrating)
 
No edit summary
 
Line 1: Line 1:
{{Stub}}{{Explanatory Guide|Device=Raspberry Pi|Difficulty=1. Easy}}To test that the RAM is working correctly, the <code>memtester</code> package can be installed:
{{Explanatory Guide
|Device=Raspberry Pi
|Type=Troubleshooting/Diagnostics
|Difficulty=1. Easy
}}
{{Stub}}To test that the RAM is working correctly, the <code>memtester</code> package can be installed:
  sudo apt update && sudo apt install memtester
  sudo apt update && sudo apt install memtester
Check how much RAM is available with the <code>free</code> command:
Check how much RAM is available with the <code>free</code> command:

Latest revision as of 20:44, 13 January 2024

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.