memtester
userspace utility for stress-testing memory subsystems
TLDR
Test 1GB of memory
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.
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.
