使用Linux操作系统命令检查服务器主板上每个内存插槽的内存大小

[root@rhel63single ~]# uname -r
2.6.32-279.el6.x86_64
[root@rhel63single ~]# uname -a
Linux rhel63single 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@rhel63single ~]# 
[root@rhel63single ~]# dmidecode -t 17
# dmidecode 2.11
SMBIOS 2.4 present.

Handle 0x00E3, DMI type 17, 27 bytes
Memory Device
 Array Handle: 0x00E2
 Error Information Handle: No Error
 Total Width: 32 bits
 Data Width: 32 bits
 Size: 2048 MB  ---------------->>>注意此处,2048M的内存
 Form Factor: DIMM
 Set: None
 Locator: RAM slot #0
 Bank Locator: RAM slot #0
 Type: DRAM
 Type Detail: EDO
 Speed: Unknown
 Manufacturer: Not Specified
 Serial Number: Not Specified
 Asset Tag: Not Specified
 Part Number: Not Specified

Handle 0x00E4, DMI type 17, 27 bytes
Memory Device
 Array Handle: 0x00E2
 Error Information Handle: No Error
 Total Width: 32 bits
 Data Width: 32 bits
 Size: 128 MB  ---------------->>>注意此处,128M的内存
 Form Factor: DIMM
 Set: None
 Locator: RAM slot #1
 Bank Locator: RAM slot #1
 Type: DRAM
 Type Detail: EDO
 Speed: Unknown
 Manufacturer: Not Specified
 Serial Number: Not Specified
 Asset Tag: Not Specified
 Part Number: Not Specified

Handle 0x00E5, DMI type 17, 27 bytes
Memory Device
 Array Handle: 0x00E2
 Error Information Handle: No Error
 Total Width: 32 bits
 Data Width: 32 bits
 Size: 16 MB  ---------------->>>注意此处,16M的内存
 Form Factor: DIMM
 Set: None
 Locator: RAM slot #2
 Bank Locator: RAM slot #2
 Type: DRAM
 Type Detail: EDO
 Speed: Unknown
 Manufacturer: Not Specified
 Serial Number: Not Specified
 Asset Tag: Not Specified
 Part Number: Not Specified

Handle 0x00E6, DMI type 17, 27 bytes
Memory Device
 Array Handle: 0x00E2
 Error Information Handle: No Error
 Total Width: 32 bits
 Data Width: 32 bits
 Size: 4 MB ---------------->>>注意此处,4M的内存
 Form Factor: DIMM
 Set: None
 Locator: RAM slot #3
 Bank Locator: RAM slot #3
 Type: DRAM
 Type Detail: EDO
 Speed: Unknown
 Manufacturer: Not Specified
 Serial Number: Not Specified
 Asset Tag: Not Specified
 Part Number: Not Specified

Handle 0x00E7, DMI type 17, 27 bytes
Memory Device
 Array Handle: 0x00E2
 Error Information Handle: No Error
 Total Width: Unknown
 Data Width: Unknown
 Size: No Module Installed  ---------------->>>该插槽没有安装内存
 Form Factor: DIMM
 Set: None
 Locator: RAM slot #4
 Bank Locator: RAM slot #4
 Type: DRAM
 Type Detail: Unknown
 Speed: Unknown
 Manufacturer: Not Specified
 Serial Number: Not Specified
 Asset Tag: Not Specified
 Part Number: Not Specified
以下输出略去。

也许你有疑问,你的4个内存插槽上,安装的内存大小不一样?其实这个主机是基于vmware workstation的虚拟机。

 

你可能感兴趣的:(使用Linux操作系统命令检查服务器主板上每个内存插槽的内存大小)