一、下载安装

下载地址: http://pyropus.ca/software/memtester/
- 安装

$ wget http://pyropus.ca/software/memtester/old-versions/memtester-4.2.1.tar.gz
$ tar zxvf memtester-4.2.1.tar.gz
$ cd memtester-4.2.1
$ make

二、简单测试

$ memtester [MEMORY] [ITERATIONS]  

MEMORY是要测试的内存的大小, 单位是MB; ITERATIONS 是测试次数. 如果没有指定测试次数, 那么测试会一直进行, 直到用户终止. - 测试例子

./memtester 15G 3
memtester version 4.2.1 (64-bit)
Copyright (C) 2010 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).
pagesize is 4096
pagesizemask is 0xfffffffffffff000
want 15360MB (16106127360 bytes)
got 15360MB (16106127360 bytes), trying mlock …locked.
Loop 1/3:
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

Comments