Linux查看内存大小和插槽
Linux查看内存大小和插槽
相信大家更换自己笔记本电脑的内存时一定是得心应手,即便是一名新手也可以很轻松的动手实现,其实服务器的内存更换也很简单,关机->挪盖->按指定顺序插拔。不过这里有一个很重要的共性前提,需要清楚了解当前硬件所匹配的内存大小型号和插槽数量等依赖关系,接下来是小编为大家收集的Linux查看内存大小和插槽,欢迎大家阅读:
Linux查看内存大小和插槽
实践过程
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
看了“Linux查看内存大小和插槽”还想看: