打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
memtester使用
抄录一段官方的解释:
A userspace utility for testing the memory subsystem for faults. It's portable and should compile and work on any 32- or 64-bit Unix-like system. (Yes, even weird, proprietary Unices, and even Mac OS X.) For hardware developers, memtester can be told to test memory starting at a particular physical address as of memtester version 4.1.0.

操作步骤如下:
[root@localhost ~]# wget http://pyropus.ca/software/memtester/old-versions/memtester-4.2.0.tar.gz
[root@localhost ~]# tar -xvf memtester-4.2.0.tar.gz
[root@localhost ~]# cd memtester-4.2.0
[root@localhost ~]# make && make install
[root@localhost memtester-4.2.0]# vi README
 Using memtester

    Usage is simple for the basic case.  As root, run the resulting memtester binary with the following commandline:

      memtester <memory> [runs]

    An optional "-p physaddr" argument available to cause memtester to test
    memory starting at a specific physical memory address (by mmap'ing
    /dev/mem starting at an offset of `physaddr`, which is given in hex).
#以上是节选,直接跟要测试的内存的大小就可以,默认单位是M,也可以手动指定为B, K, M, or G; -p参数是指定内存物理地址的。
  For example, if you want to test a bank of RAM or device which is 64kbytes in size and starts at physical
    address 0x0C0000, you would run memtester as follows:

      memtester -p 0x0c0000 64k [runs]


[root@localhost memtester-4.2.0]# memtester 256
memtester version 4.2.0 (32-bit)
Copyright (C) 2010 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).

pagesize is 4096
pagesizemask is 0xfffff000
want 256MB (268435456 bytes)
got  256MB (268435456 bytes), trying mlock ...locked.
Loop 1:
  Stuck Address       : ok
  Random Value        : ok
  Compare XOR         : ok
  Compare SUB         : ok
  Compare MUL         : ok
  Compare DIV         : ok
  Compare OR          : ok
  Compare AND         : ok
  Sequential Increment: ok
  Solid Bits          : ok
  Block Sequential    : ok
  Checkerboard        : ok
  Bit Spread          : ok
  Bit Flip            : ok
  Walking Ones        : ok
  Walking Zeroes      : ok
  8-bit Writes        : ok
  16-bit Writes       : ok


注:测试结果仅仅截取了一部分。我测试的过程中,使用的机器内存为1G,swap分区为4G。首次测试时,将测试的内存大小指为1G,机器死机。个人认为是由于memtester将内存全部占用导致的。
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
嵌入式里如何给内存做压力测试?不妨试试memtester
记录&分享 ? Blog Archive ? 将MySQL数据映射到Memcached中
运维人员常用的Linux命令总结
如何使linux扩展使用 大内存
在linux下常用的硬件测试软件。
全志科技A40i国产开发板——性能参数综合测试
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服