Tuesday, March 11, 2014

Memory imformation using dmidecode on Linux

There are times when we would need to increase the physical memory of our Oracle server, or the NameNode of a Hadoop cluster. To do that, we would need to know the maximum memory that can be added to the server, and the available slots/banks.

dmidecode gives all the information that is needed to do exactly that.

dmidecode give us information like the
Size: 4096 MB, etc.
Form Factor eg. DIMM, LRDIMM, Micro-DIMM, etc.
Locator eg DIMM01, DIMM02, etc.
Bank Locator eg. BANK01, BANK02, etc.
Speed eg. 800 MHz, 333 MHz, etc.
Manufacturer eg. Hynix, 014F00000000, etc.

Below we see that the Linux system can have a Maximum Capacity of 288 GB and has 18 Memory banks (highlighted in green).
 Currently the system is using 16 of the banks, and each bank has 4 GB of DIMM (highlighted in yellow).
ie. Current Total Memory = 4 GB x 16 = 64 GB

The banks highlighted with red are the once that aren't being used by the system. So we know that to achieve the Maximum capacity we need 16 GB DIMMs in each of the 18 banks.
ie. 16 GB x 18 = 288 GB

[root@isvx3 match]# dmidecode > dmidecode.out

Below is the Memory/DMI information from the dmidecode output redirected to dmidecode.out

 Handle 0x0009, DMI type 16, 15 bytes
Physical Memory Array
    Location: System Board Or Motherboard
    Use: System Memory
    Error Correction Type: Single-bit ECC
    Maximum Capacity: 288 GB
    Error Information Handle: Not Provided
    Number Of Devices: 18
Handle 0x000A, DMI type 6, 12 bytes
Memory Module Information
    Socket Designation: DIMM01
    Bank Connections: 0 0
    Current Speed: 1 ns
    Type: DIMM
    Installed Size: 4096 MB (Single-bank Connection)
    Enabled Size: 4096 MB (Single-bank Connection)
    Error Status: OK

Handle 0x000B, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0009
    Error Information Handle: Not Provided
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 4096 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM01
    Bank Locator: BANK01
    Type: Other
    Type Detail: Unknown
    Speed: 800 MHz
    Manufacturer: Hynix
    Serial Number: 72DC350E
    Asset Tag: Unknown
    Part Number: HMT151R7BFR4C-H9

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

Handle 0x000D, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0009
    Error Information Handle: Not Provided
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 4096 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM02
    Bank Locator: BANK02
    Type: Other
    Type Detail: Unknown
    Speed: 800 MHz
    Manufacturer: Hynix
    Serial Number: 53DCC50E
    Asset Tag: Unknown
    Part Number: HMT151R7BFR4C-H9

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

Handle 0x000F, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0009
    Error Information Handle: Not Provided
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 4096 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM03
    Bank Locator: BANK03
    Type: Other
    Type Detail: Unknown
    Speed: 800 MHz
    Manufacturer: Hynix
    Serial Number: 5DDC250E
    Asset Tag: Unknown
    Part Number: HMT151R7BFR4C-H9
Handle 0x0010, DMI type 6, 12 bytes
Memory Module Information
    Socket Designation: DIMM04
    Bank Connections: 0 0
    Current Speed: 1 ns
    Type: DIMM
    Installed Size: 4096 MB (Single-bank Connection)
    Enabled Size: 4096 MB (Single-bank Connection)
    Error Status: OK

Handle 0x0011, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0009
    Error Information Handle: Not Provided
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 4096 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM04
    Bank Locator: BANK04
    Type: Other
    Type Detail: Unknown
    Speed: 800 MHz
    Manufacturer: Hynix
    Serial Number: 71DC950E
    Asset Tag: Unknown
    Part Number: HMT151R7BFR4C-H9

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

Handle 0x0013, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0009
    Error Information Handle: Not Provided
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 4096 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM05
    Bank Locator: BANK05
    Type: Other
    Type Detail: Unknown
    Speed: 800 MHz
    Manufacturer: Hynix
    Serial Number: 60DC350E
    Asset Tag: Unknown
    Part Number: HMT151R7BFR4C-H9

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

Handle 0x0015, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0009
    Error Information Handle: Not Provided
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 4096 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM06
    Bank Locator: BANK06
    Type: Other
    Type Detail: Unknown
    Speed: 800 MHz
    Manufacturer: Hynix
    Serial Number: 44DC950E
    Asset Tag: Unknown
    Part Number: HMT151R7BFR4C-H9

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

Handle 0x0017, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0009
    Error Information Handle: Not Provided
    Total Width: Unknown
    Data Width: Unknown
    Size: No Module Installed
    Form Factor: Unknown
    Set: None
    Locator: DIMM07
    Bank Locator: BANK07
    Type: Unknown
    Type Detail: Unknown
    Speed: Unknown
    Manufacturer: Not Specified
    Serial Number: Not Specified
    Asset Tag: Not Specified
    Part Number: Not Specified

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

Handle 0x0019, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0009
    Error Information Handle: Not Provided
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 4096 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM08
    Bank Locator: BANK08
    Type: Other
    Type Detail: Unknown
    Speed: 800 MHz
    Manufacturer: Hynix
    Serial Number: 54DC150E
    Asset Tag: Unknown
    Part Number: HMT151R7BFR4C-H9

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

Handle 0x001B, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0009
    Error Information Handle: Not Provided
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 4096 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM09
    Bank Locator: BANK09
    Type: Other
    Type Detail: Unknown
    Speed: 800 MHz
    Manufacturer: Hynix
    Serial Number: 41DCA50E
    Asset Tag: Unknown
    Part Number: HMT151R7BFR4C-H9

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

Handle 0x001D, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0009
    Error Information Handle: Not Provided
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 4096 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM10
    Bank Locator: BANK10
    Type: Other
    Type Detail: Unknown
    Speed: 800 MHz
    Manufacturer: Hynix
    Serial Number: 5DDC350E
    Asset Tag: Unknown
    Part Number: HMT151R7BFR4C-H9

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

Handle 0x001F, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0009
    Error Information Handle: Not Provided
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 4096 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM11
    Bank Locator: BANK11
    Type: Other
    Type Detail: Unknown
    Speed: 800 MHz
    Manufacturer: Hynix
    Serial Number: 70DC650E
    Asset Tag: Unknown
    Part Number: HMT151R7BFR4C-H9

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

Handle 0x0021, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0009
    Error Information Handle: Not Provided
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 4096 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM12
    Bank Locator: BANK12
    Type: Other
    Type Detail: Unknown
    Speed: 800 MHz
    Manufacturer: Hynix
    Serial Number: 5EDC850E
    Asset Tag: Unknown
    Part Number: HMT151R7BFR4C-H9

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

Handle 0x0023, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0009
    Error Information Handle: Not Provided
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 4096 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM13
    Bank Locator: BANK13
    Type: Other
    Type Detail: Unknown
    Speed: 800 MHz
    Manufacturer: Hynix
    Serial Number: 47DCB50E
    Asset Tag: Unknown
    Part Number: HMT151R7BFR4C-H9

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

Handle 0x0025, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0009
    Error Information Handle: Not Provided
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 4096 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM14
    Bank Locator: BANK14
    Type: Other
    Type Detail: Unknown
    Speed: 800 MHz
    Manufacturer: Hynix
    Serial Number: 45DC150E
    Asset Tag: Unknown
    Part Number: HMT151R7BFR4C-H9

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

Handle 0x0027, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0009
    Error Information Handle: Not Provided
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 4096 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM15
    Bank Locator: BANK15
    Type: Other
    Type Detail: Unknown
    Speed: 800 MHz
    Manufacturer: Hynix
    Serial Number: 42DC250E
    Asset Tag: Unknown
    Part Number: HMT151R7BFR4C-H9

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

Handle 0x0029, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0009
    Error Information Handle: Not Provided
    Total Width: Unknown
    Data Width: Unknown
    Size: No Module Installed
    Form Factor: Unknown
    Set: None
    Locator: DIMM16
    Bank Locator: BANK16
    Type: Unknown
    Type Detail: Unknown
    Speed: Unknown
    Manufacturer: Not Specified
    Serial Number: Not Specified
    Asset Tag: Not Specified
    Part Number: Not Specified

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

Handle 0x002B, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0009
    Error Information Handle: Not Provided
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 4096 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM17
    Bank Locator: BANK17
    Type: Other
    Type Detail: Unknown
    Speed: 800 MHz
    Manufacturer: Hynix
    Serial Number: 60DC150E
    Asset Tag: Unknown
    Part Number: HMT151R7BFR4C-H9

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

Handle 0x002D, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x0009
    Error Information Handle: Not Provided
    Total Width: 72 bits
    Data Width: 64 bits
    Size: 4096 MB
    Form Factor: DIMM
    Set: None
    Locator: DIMM18
    Bank Locator: BANK18
    Type: Other
    Type Detail: Unknown
    Speed: 800 MHz
    Manufacturer: Hynix
    Serial Number: 53DC950E
    Asset Tag: Unknown
    Part Number: HMT151R7BFR4C-H9

No comments: