LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

memtester

userspace utility for stress-testing memory subsystems

TLDR

Test 1GB of memory
$ sudo memtester [1G] [1]
copy
Test 512MB with 5 iterations
$ sudo memtester [512M] [5]
copy
Test memory at a physical address
$ sudo memtester -p [0x10000000] [256M] [1]
copy
Run infinite test until interrupted
$ sudo memtester [1G] [0]
copy
Test 2GB of memory for thorough checking
$ sudo memtester [2G] [3]
copy

SYNOPSIS

memtester [-p PHYSADDR] MEMORY [ITERATIONS]

DESCRIPTION

memtester is a userspace utility for stress-testing memory subsystems. It allocates the specified amount of memory and runs a series of pattern tests to detect faults in RAM, including stuck address bits, coupling faults, and bit flips.The tests include: stuck address, random value, compare XOR, compare SUB, compare MUL, compare DIV, compare OR, compare AND, sequential increment, solid bits, block sequential, checkerboard, bit spread, bit flip, walking ones, and walking zeroes.memtester runs in userspace and tests virtual memory. For testing physical RAM at specific addresses (e.g., to confirm hardware faults), use the -p option with the physical address.

PARAMETERS

MEMORY

Amount of memory to test (e.g., 100K, 256M, 1G).
ITERATIONS
Number of test loops. Use 0 for infinite testing.
-p PHYSADDR
Test memory starting at physical address PHYSADDR.

INSTALL

sudo apt install memtester
copy
sudo dnf install memtester
copy
sudo pacman -S memtester
copy
sudo apk add memtester
copy
brew install memtester
copy
nix profile install nixpkgs#memtester
copy

CAVEATS

Root privileges are typically required to lock memory pages and prevent swapping. Testing cannot use more memory than is available; the kernel may kill the process if memory is exhausted. memtester tests memory from userspace and may not detect all hardware faults that kernel-level tools like memtest86+ would find.

HISTORY

memtester was written by Charles Cazabon as a userspace alternative to boot-time memory testing tools. It allows memory testing without rebooting and can target specific memory regions, useful for diagnosing intermittent faults on running systems.

SEE ALSO

free(1), vmstat(8), stress(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid