Open source memory test tool:Memtester
Liaoye@2015/9/10
About memtestermemtester is a utility for testing the memory subsystem in a computer to determine if it is faulty. the source code can download from the website:http://pyropus.ca/software/memtester/
Build in android
Download the source code pakage from the website, and extract it in android path: external/memtester, then create a Android.mk for build.
1 LOCAL_PATH :=$(call my-dir)
2
3 include $(CLEAR_VARS)
4
5 LOCAL_MODULE := memtester
6
7 LOCAL_SRC_FILES += \
8 memtester.c \
9 tests.c
10
11 include $(BUILD_EXECUTABLE)
then execute build command make it: mm, we will see a binary executable file(memtester) created.
Usage
push memtester in android device's path: /system/bin and execute command:chmod 777 /system/bin/memtester.
do memory test, at least 12 hours:
memtester [memory] [run times]
example: memtester 128M 1000
Test results
Pass: No crash/No memory read/write error or failure reported in logs.
Fail: Crash/memory read/write error or failure reported in logs.
Example failure output logs
Loop 2/10000:
Stuck Addreok testing 3
Random Value : ok
Compare XOR : ok
Compare SUB : ok
….
Bit Spread : testing 0
FAILURE: 0xfffffffa != 0xaaaaaaaa at offset 0x009fe3fc.
FAILURE: 0x00000005 != 0x55555555 at offset 0x009fe400.
FAILURE: 0xfffffffa != 0xaaaaaaaa at offset 0x009fe404.
FAILURE: 0x00000005 != 0x55555555 at offset 0x009fe408.
FAILURE: 0xfffffffa != 0xaaaaaaaa at offset 0x009fe40c.
end.