原文https://wsgzao.github.io/post/linux-memory/
Linux 查看内存的插槽数,已经使用多少插槽,每条内存多大,已使用内存多大
dmidecode | grep -P -A5 "Memory\s+Device" | grep Size | grep -v Range
Size: 16384 MB
Size: No Module Installed
Size: No Module Installed
Size: 16384 MB
Size: No Module Installed
Size: No Module Installed
Size: 16384 MB
Size: No Module Installed
Size: No Module Installed
Size: 16384 MB
Size: No Module Installed
Size: No Module Installed
Size: 16384 MB
Size: No Module Installed
Size: 16384 MB
Size: No Module Installed
Size: 16384 MB
Size: No Module Installed
Size: 16384 MB
Size: No Module Installed
Linux 查看内存支持的最大内存容量
dmidecode | grep -P 'Maximum\s+Capacity' Maximum Capacity: 1536 GB
Linux 查看内存的频率
dmidecode | grep -A16 "Memory Device" | grep "Speed"
Speed: 1600 MHz (0.6 ns)
Speed: Unknown
Speed: Unknown
Speed: 1600 MHz (0.6 ns)
Speed: Unknown
Speed: Unknown
Speed: Unknown
Speed: Unknown
Speed: 1600 MHz (0.6 ns)
Speed: Unknown
Speed: Unknown
Speed: 1600 MHz (0.6 ns)
Speed: 1600 MHz (0.6 ns)
Speed: Unknown
Speed: Unknown
Speed: 1600 MHz (0.6 ns)
Speed: Unknown
Speed: Unknown
Speed: Unknown
Speed: Unknown
Speed: 1600 MHz (0.6 ns)
Speed: Unknown
Speed: Unknown
Speed: 1600 MHz (0.6 ns)
查看详细的主板信息
dmidecode | grep -A16 "System Information$"
查看详细的内存信息
dmidecode | grep -A16 "Memory Device$"
dmidecode -t memory