BIOS 检测到 RAM,但 Linux 并未使用全部 RAM

BIOS 检测到 RAM,但 Linux 并未使用全部 RAM

我的主板上的插槽 1 和 2 中安装了 2 个 4gb RAM 模块,服务器运行的是 Ubuntu 20.04.1 LTS。看起来 BIOS 可以看到这两个模块:

sudo dmidecode --type 17
Handle 0x0011, DMI type 17, 34 bytes
Memory Device
        Array Handle: 0x000F
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 4096 MB
        Form Factor: DIMM
        Set: None
        Locator: A1_DIMM0
        Bank Locator: A1_BANK0
        Type: DDR3
        Type Detail: Synchronous Unbuffered (Unregistered)
        Speed: 667 MT/s
        Manufacturer: Corsair
        Serial Number: 00000000
        Asset Tag: A1_AssetTagNum0
        Part Number: CMZ12GX3M3A1600C9
        Rank: 2
        Configured Memory Speed: 667 MT/s

Handle 0x0013, DMI type 17, 34 bytes
Memory Device
        Array Handle: 0x000F
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 4096 MB
        Form Factor: DIMM
        Set: None
        Locator: A1_DIMM1
        Bank Locator: A1_BANK1
        Type: DDR3
        Type Detail: Synchronous Unbuffered (Unregistered)
        Speed: 667 MT/s
        Manufacturer: Corsair
        Serial Number: 00000000
        Asset Tag: A1_AssetTagNum1
        Part Number: CMZ12GX3M3A1600C9
        Rank: 2
        Configured Memory Speed: 667 MT/s

但如果我运行 htop,它会显示总内存为 3.8GB。

有谁知道如何解决这个问题吗?

相关内容