Linux---查看内存型号

本文记录了如何使用dmidecode命令来查看Linux系统的内存型号和详细信息,包括内存类型、速度、容量等。作者在尝试扩展笔记本内存时,发现该工具能提供系统硬件信息,如CPU、主板和显卡等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.dmidecode

sudo dmidecode -t memory 
  • 这里也可以把查询的信息输出到特定的文件上去,下面是折腾出来的记录

这里写图片描述

这里写图片描述

# dmidecode 2.12
SMBIOS 2.6 present.

Handle 0x0019, DMI type 16, 15 bytes
Physical Memory Array
    Location: System Board Or Motherboard
    Use: System Memory
    Error Correction Type: None
    Maximum Capacity: 16 GB
    Error Information Handle: No Error
    Number Of Devices: 2

Handle 0x001A, DMI type 17, 28 bytes
Memory Device
    Array Handle: 0x0019
    Error Information Handle: 0x001C
    Total Width: 64 bits
    Data Width: 64 bits
    Size: 2048 MB
    Form Factor: SODIMM
    Set: None
    Locator: DIMM0
    Bank Locator: BANK 0
    Type: DDR3
    Type Detail: Synchronous
    Speed: 1067 MHz
    Manufacturer: Not Specified
    Serial Number: 2C91FA51
    Asset Tag: Unknown
    Part Number: HMT125S6BFR8C-G7  
    Rank: Unknown

Handle 0x001B, DMI type 6, 12 bytes
Memory Module Information
    Socket Designation: DIMM0
    Bank Connections: None
    Current Speed: Unknown
    Type: DIMM
    Installed Size: 2048 MB (Single-bank Connection)
    Enabled Size: 2048 MB (Single-bank Connection)
    Error Status: OK

Handle 0x001E, DMI type 17, 28 bytes
Memory Device
    Array Handle: 0x0019
    Error Information Handle: Not Provided
    Total Width: 8 bits
    Data Width: 8 bits
    Size: No Module Installed
    Form Factor: DIMM
    Set: None
    Locator: DIMM1
    Bank Locator: BANK 1
    Type: DDR3
    Type Detail: Synchronous
    Speed: 1067 MHz
    Manufacturer: Not Specified
    Serial Number: 00000000
    Asset Tag: Unknown
    Part Number: Not Specified
    Rank: Unknown

Handle 0x001F, DMI type 6, 12 bytes
Memory Module Information
    Socket Designation: DIMM1
    Bank Connections: None
    Current Speed: Unknown
    Type: DIMM
    Installed Size: Not Installed
    Enabled Size: Not Installed
    Error Status: OK

Handle 0x0021, DMI type 17, 28 bytes
Memory Device
    Array Handle: 0x0019
    Error Information Handle: 0x0023
    Total Width: 64 bits
    Data Width: 64 bits
    Size: 2048 MB
    Form Factor: SODIMM
    Set: None
    Locator: DIMM1
    Bank Locator: BANK 2
    Type: DDR3
    Type Detail: Synchronous
    Speed: 1067 MHz
    Manufacturer: Not Specified
    Serial Number: 2CC1FA4E
    Asset Tag: Unknown
    Part Number: HMT125S6BFR8C-G7  
    Rank: Unknown

Handle 0x0022, DMI type 6, 12 bytes
Memory Module Information
    Socket Designation: DIMM1
    Bank Connections: None
    Current Speed: Unknown
    Type: DIMM
    Installed Size: 2048 MB (Single-bank Connection)
    Enabled Size: 2048 MB (Single-bank Connection)
    Error Status: OK

Handle 0x0025, DMI type 17, 28 bytes
Memory Device
    Array Handle: 0x0019
    Error Information Handle: Not Provided
    Total Width: 8 bits
    Data Width: 8 bits
    Size: No Module Installed
    Form Factor: DIMM
    Set: None
    Locator: DIMM3
    Bank Locator: BANK 3
    Type: DDR3
    Type Detail: Synchronous
    Speed: 1067 MHz
    Manufacturer: Not Specified
    Serial Number: 00000000
    Asset Tag: Unknown
    Part Number: Not Specified
    Rank: Unknown

Handle 0x0026, DMI type 6, 12 bytes
Memory Module Information
    Socket Designation: DIMM3
    Bank Connections: None
    Current Speed: Unknown
    Type: DIMM
    Installed Size: Not Installed
    Enabled Size: Not Installed
    Error Status: OK

Handle 0x002A, DMI type 5, 20 bytes
Memory Controller Information
    Error Detecting Method: None
    Error Correcting Capabilities:
        Unknown
        None
    Supported Interleave: One-way Interleave
    Current Interleave: One-way Interleave
    Maximum Memory Module Size: 8192 MB
    Maximum Total Memory Size: 16384 MB
    Supported Speeds:
        Other
    Supported Memory Types:
        Other
    Memory Module Voltage: Unknown
    Associated Memory Slots: 2
        0x001B
        0x0022
    Enabled Error Correcting Capabilities:
        None


个人记录
想要扩展一下笔记本电脑的内存,于是想到写这个记录的
联想笔记本电脑Y550P
DDR3 1066 2GB内存,两个内存插槽,问了一下客服,只支持window操作系统的服务,顿时表示很有压力


风暴出来其它的想法
- dmidecode命令可以实现
- System Information 服务器品牌
- Base Board Information 主板型号/主板信息
- Processor Information CPU信息/CPU型号/CPU主频
- Cache Information 硬件和CPU缓存情况
- Physical Memory Array 主板最大支持内存
- Memory Array Mapped Address 目前的内存
- On Board Device Information 显卡型号

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值