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
使用:
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/