注册 登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

无明

 
 
 

日志

 
 

memtester使用  

2011-12-21 17:14:10|  分类: 监控 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
抄录一段官方的解释:
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将 内存全部占用导致的。
http://ntt0729.blog.163.com/blog/static/1163775620107165172310/
  评论这张
 
阅读(1263)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018