memtester is a user-space utility for testing the memory subsystem in a computer to determine if it is faulty. It does a good job of finding intermittent faults and non-deterministic faults. It has many tests to help catch borderline memory. memtester should compile and run on any 32- or 64-bit Unix or Unix-like system.
Download latest version of memtester from http://pyropus.ca/software/memtester/ and install it.
# wget http://pyropus.ca/software/memtester/old-versions/memtester-4.2.1.tar.gz
# tar xvzf memtester-4.2.1.tar.gz
# cd memtester*
# make
# make install
Before testing memory, identify your memory by free -m,
# free -m
total
used
free
shared
buffers
cached
Mem:
3991
3868
123
0
28
375
-/+ buffers/cache:
3464
527
Swap:
1023
0
1023
We have 4000 MB RAM.
Finally test your RAM by running memtester 4000 in terminal,
Note: This will throw an error code when detecting problem to RAM.

Related Articles: