Linux下查看内存条数的命令举例

发布时间:2019-12-29编辑:脚本学堂
本文介绍下,在linux中,使用命令查看内存条数的方法,有需要的朋友,参考下。

linux系统中,查看内存条数,不用像windows那样借助cpu-z等工具,可以使用命令:
 

复制代码 代码示例:
# dmidecode |grep -A16  "Memory Device$"

实例参考:
 

复制代码 代码示例:
[root@svn bin]# dmidecode | grep -A16 "Memory Device$"
Memory Device
        Array Handle: 0x1000
        Error Information Handle: No Error
        Total Width: 64 bits
        Data Width: 64 bits
        Size: No Module Installed
        Form Factor: DIMM
        Set: None
        Locator: DIMM_1
        Bank Locator: Not Specified
        Type: DDR
        Type Detail: Synchronous
        Speed: 533 MHz (1.9 ns)
        Manufacturer: FFFFFFFFFFFFFFFF
        Serial Number: FFFFFFFF
        Asset Tag: Not Specified
        Part Number:                 
--
Memory Device
        Array Handle: 0x1000
        Error Information Handle: No Error
        Total Width: 72 bits
        Data Width: 64 bits
        Size: 256 MB
        Form Factor: DIMM
        Set: None
        Locator: DIMM_3
        Bank Locator: Not Specified
        Type: DDR
        Type Detail: Synchronous
        Speed: 533 MHz (1.9 ns)
        Manufacturer: CE00000000000000
        Serial Number: 71018FDB
        Asset Tag: Not Specified
        Part Number: M3 91T3253FZ3-CD5
--
Memory Device
        Array Handle: 0x1000
        Error Information Handle: No Error
        Total Width: 64 bits
        Data Width: 64 bits
        Size: No Module Installed
        Form Factor: DIMM
        Set: None
        Locator: DIMM_2
        Bank Locator: Not Specified
        Type: DDR
        Type Detail: Synchronous
        Speed: 533 MHz (1.9 ns)
        Manufacturer: FFFFFFFFFFFFFFFF
        Serial Number: FFFFFFFF
        Asset Tag: Not Specified
        Part Number:                 
--
Memory Device
        Array Handle: 0x1000
        Error Information Handle: No Error
        Total Width: 72 bits
        Data Width: 64 bits
        Size: 256 MB
        Form Factor: DIMM
        Set: None
        Locator: DIMM_4
        Bank Locator: Not Specified
        Type: DDR
        Type Detail: Synchronous
        Speed: 533 MHz (1.9 ns)
        Manufacturer: CE00000000000000
        Serial Number: 71018FD8
        Asset Tag: Not Specified
        Part Number: M3 91T3253FZ3-CD5