下載地址:http://pyropus.ca/software/memtester/ 有源碼安裝包、deb包、rpm包等。
源碼已經編譯好,只要make一下就好了。
使用方法:
Usage: memtester [-p physaddrbase] <mem>[B|K|M|G] [loops]
如:
memtester 28G 3 #測試28G的內存3次。
因為系統運行和本工具運行都需要內存,所以不能把所有的內存都
測試到。可以先用free 命令查看系統剩余多少內存空間再測試。
高級點的可以用-p參數從內存地址開始測試。
memtester version 4.2.0 (64-bit) Copyright (C) 2010 Charles Cazabon. Licensed under the GNU General Public License version 2 (only). pagesize is 4096 pagesizemask is 0xfffffffffffff000 want 28672MB (30064771072 bytes) got 28672MB (30064771072 bytes), trying mlock ...locked. Loop 1/3: Stuck Address : testing 0memtester version 4.2.0 (64-bit) Copyright (C) 2010 Charles Cazabon. Licensed under the GNU General Public License version 2 (only). pagesize is 4096 pagesizemask is 0xfffffffffffff000 want 28672MB (30064771072 bytes) got 28672MB (30064771072 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 |
結果全部為OK則內存正常。