linux内存测试工具memtester使用

1.ubuntu下安装memtester

sudo apt-get install memtester

2.sudo 或者su root切换到root下运行

./memtester 10G 10

memtester [-p PHYSADDR] [ITERATIONS]
参数说明:
MEMORY 申请测试内存的数量,单位默认是megabytes(兆),也可以是B K M G。
ITERATIONS 测试的次数,默认是无限。

 

3.运行示例

#  ./memtester 2900M 1
memtester version 4.3.0 (64-bit)
Copyright (C) 2001-2012 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).

pagesize is 4096
pagesizemask is 0xfffffffffffff000
want 2900MB (3040870400 bytes)
got  2900MB (3040870400 bytes), trying mlock ...locked.
Loop 1/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

 

你可能感兴趣的:(软件配置,操作系统)