Open source memory test tool:Memtester

Memtester是一款开源的内存测试工具,用于检测计算机内存子系统的故障。该工具可通过http://pyropus.ca/software/memtester/下载源代码。在Android平台上构建Memtester需要下载源代码包并放置于指定路径,然后创建Android.mk文件进行编译。测试过程至少需要12小时,通过命令行调用memtester并指定测试内存大小及次数。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Open source memory test tool:Memtester

Liaoye@2015/9/10

About memtester
memtester 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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值