1.查看内存槽位内存大小
sudo dmidecode|grep -P -A5 "Memory\s+Device"|grep Size|grep -v Range
可以看到内存的频率及槽位位置
dmidecode -t 17
2.查看服务器最大支持内存容量
sudo dmidecode|grep -P 'Maximum\s+Capacity'
Maximum Capacity: 1536 GB
sudo dmidecode -t 16
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 2.7 present.
Handle 0x1000, DMI type 16, 23 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: Multi-bit ECC
Maximum Capacity: 1536 GB
Error Information Handle: Not Provided
Number Of Devices: 24
3.查看内存速率
sudo dmidecode|grep -A16 "Memory Device"|grep 'Speed'
Speed: 1600 MT/s
Speed: 1600 MT/s
Speed: 1600 MT/s
Speed: 1600 MT/s
Speed: 1600 MT/s
Speed: 1600 MT/s
Speed: 1600 MT/s
Speed: 1600 MT/s
Speed: 1600 MT/s
Speed: 1600 MT/s
Speed: 1600 MT/s
Speed: 1600 MT/s
Speed: Unknown
Speed: Unknown
Speed: Unknown
Speed: Unknown
Speed: Unknown
Speed: Unknown
Speed: Unknown
Speed: Unknown
Speed: Unknown
Speed: Unknown
Speed: Unknown
Speed: Unknown