无法从 Linux 获取双通道内存状态——为什么?

无法从 Linux 获取双通道内存状态——为什么?

我有一块插槽 A3+ 主板(Gigabyte ATX GA990ZA-UD3-R5),配有 AMD FX-8320E CPU 和两根 8Gb 内存条(相同,作为套件一起购买)。我按照手册上的说明安装了内存,以便使用双通道内存,但据我所知,我无法向系统查询有关内存的信息(使用 Linux):

lshw什么也没说:

$ sudo lshw -C memory
  *-memory                
       description: System memory
       physical id: 0
       size: 15GiB

dmidecode没有提到交错:

$ sudo dmidecode --type memory
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.

Handle 0x0008, DMI type 5, 24 bytes
Memory Controller Information
    Error Detecting Method: 64-bit ECC
    Error Correcting Capabilities:
        None
    Supported Interleave: One-way Interleave
    Current Interleave: One-way Interleave
    Maximum Memory Module Size: 2048 MB
    Maximum Total Memory Size: 8192 MB
    Supported Speeds:
        70 ns
        60 ns
    Supported Memory Types:
        DIMM
        SDRAM
    Memory Module Voltage: 3.3 V
    Associated Memory Slots: 4
        0x0009
        0x000A
        0x000B
        0x000C
    Enabled Error Correcting Capabilities:
        None

Handle 0x0009, DMI type 6, 12 bytes
Memory Module Information
    Socket Designation: DIMM0
    Bank Connections: 0 1
    Current Speed: 60 ns
    Type: DIMM SDRAM
    Installed Size: 536870912 MB (Single-bank Connection)
    Enabled Size: 536870912 MB (Single-bank Connection)
    Error Status: OK

Handle 0x000A, DMI type 6, 12 bytes
Memory Module Information
    Socket Designation: DIMM1
    Bank Connections: 2 3
    Current Speed: 60 ns
    Type: DIMM SDRAM
    Installed Size: 536870912 MB (Single-bank Connection)
    Enabled Size: 536870912 MB (Single-bank Connection)
    Error Status: OK

Handle 0x000B, DMI type 6, 12 bytes
Memory Module Information
    Socket Designation: DIMM2
    Bank Connections: 4 5
    Current Speed: 60 ns
    Type: DIMM SDRAM
    Installed Size: 536870912 MB (Single-bank Connection)
    Enabled Size: 536870912 MB (Single-bank Connection)
    Error Status: OK

Handle 0x000C, DMI type 6, 12 bytes
Memory Module Information
    Socket Designation: DIMM3
    Bank Connections: 6 7
    Current Speed: 60 ns
    Type: DIMM SDRAM
    Installed Size: 536870912 MB (Single-bank Connection)
    Enabled Size: 536870912 MB (Single-bank Connection)
    Error Status: OK

Handle 0x002C, DMI type 16, 23 bytes
Physical Memory Array
    Location: System Board Or Motherboard
    Use: System Memory
    Error Correction Type: None
    Maximum Capacity: 32 GB
    Error Information Handle: Not Provided
    Number Of Devices: 4

Handle 0x002E, DMI type 17, 34 bytes
Memory Device
    Array Handle: 0x002C
    Error Information Handle: Not Provided
    Total Width: Unknown
    Data Width: 64 bits
    Size: No Module Installed
    Form Factor: DIMM
    Set: None
    Locator: Node0_Dimm0
    Bank Locator: Node0_Bank0
    Type: Unknown
    Type Detail: Synchronous
    Speed: Unknown
    Manufacturer: Dimm0_Manufacturer
    Serial Number: Dimm0_SerNum
    Asset Tag: Dimm0_AssetTag
    Part Number: Dimm0_PartNum
    Rank: Unknown
    Configured Clock Speed: Unknown

Handle 0x0030, DMI type 17, 34 bytes
Memory Device
    Array Handle: 0x002C
    Error Information Handle: Not Provided
    Total Width: 64 bits
    Data Width: 64 bits
    Size: 8192 MB
    Form Factor: DIMM
    Set: None
    Locator: Node0_Dimm1
    Bank Locator: Node0_Bank0
    Type: DDR3
    Type Detail: Synchronous Unbuffered (Unregistered)
    Speed: 933 MHz
    Manufacturer: Kingston          
    Serial Number: 4D384FFC    
    Asset Tag: Dimm1_AssetTag
    Part Number: KHX1866C10D3/
    Rank: 2
    Configured Clock Speed: 933 MHz

Handle 0x0032, DMI type 17, 34 bytes
Memory Device
    Array Handle: 0x002C
    Error Information Handle: Not Provided
    Total Width: Unknown
    Data Width: 64 bits
    Size: No Module Installed
    Form Factor: DIMM
    Set: None
    Locator: Node0_Dimm2
    Bank Locator: Node0_Bank0
    Type: Unknown
    Type Detail: Synchronous
    Speed: Unknown
    Manufacturer: Dimm2_Manufacturer
    Serial Number: Dimm2_SerNum
    Asset Tag: Dimm2_AssetTag
    Part Number: Dimm2_PartNum
    Rank: Unknown
    Configured Clock Speed: Unknown

Handle 0x0034, DMI type 17, 34 bytes
Memory Device
    Array Handle: 0x002C
    Error Information Handle: Not Provided
    Total Width: 64 bits
    Data Width: 64 bits
    Size: 8192 MB
    Form Factor: DIMM
    Set: None
    Locator: Node0_Dimm3
    Bank Locator: Node0_Bank0
    Type: DDR3
    Type Detail: Synchronous Unbuffered (Unregistered)
    Speed: 933 MHz
    Manufacturer: Kingston          
    Serial Number: 6B39AD31    
    Asset Tag: Dimm3_AssetTag
    Part Number: KHX1866C10D3/
    Rank: 2
    Configured Clock Speed: 933 MHz

(内存条的速度为 1866MHz,我不确定为什么它显示为 933MHz。BIOSdmidecode将其报告为 1866MHz。)

此主板不显示 POST 消息。它显示启动画面,然后提示进入设置。之后,它什么都不打印,直到引导加载程序介入。我搜索了所有设置选项,也没有看到任何与双通道是否激活相关的信息。

我不确定这是否相关,但我有 IOMMU已启用在 BIOS 中,我在启动时将选项传递iommu=soft给 Linux 内核。

我如何确定双通道是否正常工作?另外,为什么lshwdmidecode告知双通道?

答案1

尝试这个:

dmidecode -t 17 |grep 频道

对于双通道,您应该看到通道 A/B 如下:

Locator: ChannelA-DIMM0
Locator: ChannelA-DIMM1
Locator: ChannelB-DIMM0
Locator: ChannelB-DIMM1

答案2

我们看到很多回复,因为我们有相同的问题,所以在很多地方都有回复。关于 dmidecode 输出有一些争议,好像它显示了位置,但没有说明特定插槽是否在使用组合带宽。

如果您在主板上安装了与双通道配置不兼容的内存条,它仍会显示相同的定位器,但不会组合带宽。

对于 Windows,许多应用程序显示它是否处于双通道、三通道或四通道模式;而对于 Linux,我们很难找到任何模式。

另一方面,老式但非常有效的 memtest86+ 将显示内存访问带宽 - 分别为单通道、双通道、三通道和四通道 64、128、196、256 位。

在下图中,我们有一块具有三通道功能的主板,它以三通道模式运行。

在此处输入图片描述

相关内容