1.查看内存槽位内存大小
sudodmidecode|grep-P-A5"Memory\s+Device"|grepSize|grep-vRange
可以看到内存的频率及槽位位置
dmidecode-t17
2.查看服务器最大支持内存容量
sudodmidecode|grep-P'Maximum\s+Capacity'
MaximumCapacity:1536GB
sudodmidecode-t16
#dmidecode3.3
GettingSMBIOSdatafromsysfs.
SMBIOS2.7present.
Handle0x1000,DMItype16,23bytes
PhysicalMemoryArray
Location:SystemBoardOrMotherboard
Use:SystemMemory
ErrorCorrectionType:Multi-bitECC
MaximumCapacity:1536GB
ErrorInformationHandle:NotProvided
NumberOfDevices:24
3.查看内存速率
sudodmidecode|grep-A16"MemoryDevice"|grep'Speed'
Speed:1600MT/s
Speed:1600MT/s
Speed:1600MT/s
Speed:1600MT/s
Speed:1600MT/s
Speed:1600MT/s
Speed:1600MT/s
Speed:1600MT/s
Speed:1600MT/s
Speed:1600MT/s
Speed:1600MT/s
Speed:1600MT/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