linux check memory dimm status

檢查記憶體插槽狀態

# dmidecode -t memory

# dmidecode 2.12
SMBIOS 2.5 present.

Handle 0x1000, DMI type 16, 15 bytes
Physical Memory Array
	Location: System Board Or Motherboard
	Use: System Memory
	Error Correction Type: Multi-bit ECC
	Maximum Capacity: 65280 MB
	Error Information Handle: Not Provided
	Number Of Devices: 8

Handle 0x1100, DMI type 17, 28 bytes
Memory Device
	Array Handle: 0x1000
	Error Information Handle: Not Provided
	Total Width: 72 bits
	Data Width: 64 bits
	Size: 2048 MB
	Form Factor: FB-DIMM
	Set: 1
	Locator: DIMM1
	Bank Locator: Not Specified
	Type: DDR2 FB-DIMM
	Type Detail: Synchronous
	Speed: 667 MHz
	Manufacturer: 80CE808980CE
	Serial Number: 5344A0F0
	Asset Tag: 010822
	Part Number: M395T5750EZ4-CE65
	Rank: 2

Handle 0x1101, DMI type 17, 28 bytes
Memory Device
	Array Handle: 0x1000
	Error Information Handle: Not Provided
	Total Width: 72 bits
	Data Width: 64 bits
	Size: 2048 MB
	Form Factor: FB-DIMM
	Set: 1
	Locator: DIMM2
	Bank Locator: Not Specified
	Type: DDR2 FB-DIMM
	Type Detail: Synchronous
	Speed: 667 MHz
	Manufacturer: 80CE808980CE
	Serial Number: 5344A0F3
	Asset Tag: 010822
	Part Number: M395T5750EZ4-CE65
	Rank: 2

Handle 0x1102, DMI type 17, 28 bytes
Memory Device
	Array Handle: 0x1000
	Error Information Handle: Not Provided
	Total Width: 72 bits
	Data Width: 64 bits
	Size: 2048 MB
	Form Factor: FB-DIMM
	Set: 2
	Locator: DIMM3
	Bank Locator: Not Specified
	Type: DDR2 FB-DIMM
	Type Detail: Synchronous
	Speed: 667 MHz
	Manufacturer: 80CE808980CE
	Serial Number: 5344A0F2
	Asset Tag: 010822
	Part Number: M395T5750EZ4-CE65
	Rank: 2

Handle 0x1103, DMI type 17, 28 bytes
Memory Device
	Array Handle: 0x1000
	Error Information Handle: Not Provided
	Total Width: 72 bits
	Data Width: 64 bits
	Size: 2048 MB
	Form Factor: FB-DIMM
	Set: 2
	Locator: DIMM4
	Bank Locator: Not Specified
	Type: DDR2 FB-DIMM
	Type Detail: Synchronous
	Speed: 667 MHz
	Manufacturer: 80CE808980CE
	Serial Number: 5344A011
	Asset Tag: 010822
	Part Number: M395T5750EZ4-CE65
	Rank: 2

Handle 0x1104, DMI type 17, 28 bytes
Memory Device
	Array Handle: 0x1000
	Error Information Handle: Not Provided
	Total Width: 72 bits
	Data Width: 64 bits
	Size: No Module Installed
	Form Factor: FB-DIMM
	Set: 3
	Locator: DIMM5
	Bank Locator: Not Specified
	Type: DDR2 FB-DIMM
	Type Detail: Synchronous
	Speed: Unknown
	Manufacturer:
	Serial Number:
	Asset Tag:
	Part Number:
	Rank: Unknown

Handle 0x1105, DMI type 17, 28 bytes
Memory Device
	Array Handle: 0x1000
	Error Information Handle: Not Provided
	Total Width: 72 bits
	Data Width: 64 bits
	Size: No Module Installed
	Form Factor: FB-DIMM
	Set: 3
	Locator: DIMM6
	Bank Locator: Not Specified
	Type: DDR2 FB-DIMM
	Type Detail: Synchronous
	Speed: Unknown
	Manufacturer:
	Serial Number:
	Asset Tag:
	Part Number:
	Rank: Unknown

Handle 0x1106, DMI type 17, 28 bytes
Memory Device
	Array Handle: 0x1000
	Error Information Handle: Not Provided
	Total Width: 72 bits
	Data Width: 64 bits
	Size: No Module Installed
	Form Factor: FB-DIMM
	Set: 4
	Locator: DIMM7
	Bank Locator: Not Specified
	Type: DDR2 FB-DIMM
	Type Detail: Synchronous
	Speed: Unknown
	Manufacturer:
	Serial Number:
	Asset Tag:
	Part Number:
	Rank: Unknown

Handle 0x1107, DMI type 17, 28 bytes
Memory Device
	Array Handle: 0x1000
	Error Information Handle: Not Provided
	Total Width: 72 bits
	Data Width: 64 bits
	Size: No Module Installed
	Form Factor: FB-DIMM
	Set: 4
	Locator: DIMM8
	Bank Locator: Not Specified
	Type: DDR2 FB-DIMM
	Type Detail: Synchronous
	Speed: Unknown
	Manufacturer:
	Serial Number:
	Asset Tag:
	Part Number:
	Rank: Unknown