内存测试工具memtester
Memtester是用户态工具,用于测试内存子系统的故障。非常方便,支持32位 或64位Unix-like系统。对于硬件开发开发者来说,memtester可以定位到物理地址。
1. 安装
下载地址http://pyropus.ca/software/memtester/
获取memtester-4.2.2.tar.gz源码包。
| #tar –zxvf memtester-4.2.2.tar.gz #make #make install | 
2.测试
./memtester [-p physaddrbase] <mem>[B|K|M|G] [loops]
其中:
Physaddrbase: 需要测试的物理地址;
<mem>[B|K|M|G]:测试内存的大小;
[loops]:测试次数
案例:
| [root@RedHat memtester-4.2.2]# ./memtester -p 0x0a0000 4k 1 memtester version 4.2.2 (32-bit) Copyright (C) 2010 Charles Cazabon. Licensed under the GNU General Public License version 2 (only). 
 pagesize is 4096 pagesizemask is 0xfffff000 want 0MB (4096 bytes) Loop 1/1: Stuck Address : testing 0FAILURE: possible bad address line at physical address 0x000a0000. Skipping to next test... 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 
 Done. [root@RedHat memtester-4.2.2]# | 
 
                    
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号