检查 Linux 上的 RAM 是否在双通道模式下工作

检查 Linux 上的 RAM 是否在双通道模式下工作

我为我的 Dell Latitude 5420 买了第二个 SO-DIMM,现在想检查 RAM 是否在双通道模式下工作。每个人都建议使用 dmidecode 来解决这个问题,但我的输出与其他人的不同。但它也与我之前拥有的单通道笔记本电脑不同,所以我不知道如何解释它。有人能帮忙吗?以下是 的输出sudo dmidecode -t memory

# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.2 present.

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

Handle 0x1100, DMI type 17, 92 bytes
Memory Device
        Array Handle: 0x1000
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 16 GB
        Form Factor: SODIMM
        Set: None
        Locator: DIMM B
        Bank Locator: BANK 0
        Type: DDR4
        Type Detail: Synchronous
        Speed: 3200 MT/s
        Manufacturer: 01980000802C
        Serial Number: CEB33182
        Asset Tag: 07213400
        Part Number: 9905744-077.A00G
        Rank: 2
        Configured Memory Speed: 3200 MT/s
        Minimum Voltage: Unknown
        Maximum Voltage: Unknown
        Configured Voltage: 1.2 V
        Memory Technology: DRAM
        Memory Operating Mode Capability: Volatile memory
        Firmware Version: Not Specified
        Module Manufacturer ID: Bank 2, Hex 0x98
        Module Product ID: Unknown
        Memory Subsystem Controller Manufacturer ID: Unknown
        Memory Subsystem Controller Product ID: Unknown
        Non-Volatile Size: None
        Volatile Size: 16 GB
        Cache Size: None
        Logical Size: None

Handle 0x1104, DMI type 17, 92 bytes
Memory Device
        Array Handle: 0x1000
        Error Information Handle: Not Provided
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 16 GB
        Form Factor: SODIMM
        Set: None
        Locator: DIMM A
        Bank Locator: BANK 0
        Type: DDR4
        Type Detail: Synchronous
        Speed: 3200 MT/s
        Manufacturer: 80AD000080AD
        Serial Number: 2371A7C9
        Asset Tag: 02211100
        Part Number: HMAA2GS6AJR8N-XN
        Rank: 1
        Configured Memory Speed: 3200 MT/s
        Minimum Voltage: Unknown
        Maximum Voltage: Unknown
        Configured Voltage: 1.2 V
        Memory Technology: DRAM
        Memory Operating Mode Capability: Volatile memory
        Firmware Version: Not Specified
        Module Manufacturer ID: Bank 1, Hex 0xAD
        Module Product ID: Unknown
        Memory Subsystem Controller Manufacturer ID: Unknown
        Memory Subsystem Controller Product ID: Unknown
        Non-Volatile Size: None
        Volatile Size: 16 GB
        Cache Size: None
        Logical Size: None

如您所见,这些摇杆位于同一个组中,但位于不同的定位器中。这是否意味着它们在单通道或双通道模式下运行?或者还有其他方法可以找出答案?

编辑:BIOS 照片- 嗯,这很简单。谢谢,戴尔!当然,还有 Mokubai,他为我指出了一个显而易见的解决方案 :)

答案1

打开终端并运行:

sudo dmidecode -t 17 | awk 'BEGIN { FS=":"; OFS="\t" } /Size|Channel/ { line = (line ? line OFS : "") $2 } /^$/ { print line; line="RAM" }' | grep -iv 'no'

情况1 :

(输出为)

RAM 4 GB 通道 A-DIMM0

RAM 4 GB 通道 B-DIMM0

-> 表示使用 2 个通道 A 和 B(如果您的系统使用更多通道,则可能包括通道C、通道D……

案例 2:

(无输出)

-> 意味着你的系统正在使用单通道

相关内容