Linux---查看内存型号

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 显卡型号

你可能感兴趣的:(dmidecode)