linux内存测试工具memtester使用详解

memtester官网:http://pyropus.ca/software/memtester/


linux安装:

下载安装包:

1).wget  http://pyropus.ca/software/memtester/old-versions/memtester-4.3.0.tar.gz

2).tar -xzvf memtester-4.3.0.tar.gz

3).cd memtester-4.3.0
4).make && make install


使用:

 运行memteste非常简单,作为root
./ memtester <memory> [runs]
<memory>:内存大小,单位M [runs]:运行次数

1900M指测试时memtest占用的内存量

[root@localhost ~]# ./memtester 1900M 10
memtester version 4.2.2 (64-bit)
Copyright (C) 2010 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).


pagesize is 4096
pagesizemask is 0xfffffffffffff000
want 1900MB (1992294400 bytes)
got  1900MB (1992294400 bytes), trying mlock ...locked.
Loop 1/10:
  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          : testing  10
[root@localhost ~]# 


参考链接:

http://hao360.blog.51cto.com/5820068/1587165/


  • 2
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值