這是本文件的舊版!


在 PVE(Debian) 下使用 memtester 檢測記憶體

因為最近更換電腦, 透過線上購物買記憶體安裝, 開機後都正常, 但想完整測試記憶體是否都沒問題, 但透過 PVE 安裝開機 USB 的 memtest 選項卻無法正常進行測試, 所以在安裝好 PVE 後, 找在 PVE 底下測試記憶體的方式.

  • 測試環境 :
    • PVE 5 :
      Kernel Version Linux 4.15.18-21-pve #1 SMP PVE 4.15.18-48 (Fri, 20 Sep 2019 11:28:30 +0200)
      PVE Manager Version pve-manager/5.4-13/aee6f0ec
    • PVE 6 :
      Kernel Version Linux 5.0.15-1-pve #1 SMP PVE 5.0.15-1 (Wed, 03 Jul 2019 10:51:57 +0200)
      PVE Manager Version pve-manager/6.0-4/2a719255
  • 安裝 memtester
    apt-get install memtester
  • 檢測記憶體 Exp. 檢測 2G 重複 3 次
    memtester 2048 3

    <xtermrtf>

root@xpc:~# memtester 2048 3 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 2048MB (2147483648 bytes) got 2048MB (2147483648 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

Loop 2/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          : setting 111             

</xtermrtf>

  • 如果記憶體有問題, 在前面幾個測試項目就會出現
  • tech/pvetips/memtester.1573871919.txt.gz
  • 上一次變更: 2019/11/16 10:38
  • jonathan_tsai