使用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的虚拟机。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值