前言
相信大家更换自己笔记本电脑的内存时一定是得心应手,即便是一名新手也可以很轻松的动手实现,其实服务器的内存更换也很简单,关机->挪盖->按指定顺序插拔。不过这里有一个很重要的共性前提,需要清楚了解当前硬件所匹配的内存大小型号和插槽数量等依赖关系,这样我们在更换内存时才会更加游刃有余哈。
更换内存前会用到的实用小技巧
更新历史
2015年06月05日 - 初稿
阅读原文 - http://wsgzao.github.io/post/linux-memory/
扩展阅读
- MacBook Pro:如何拆卸或安装内存 - https://support.apple.com/zh-cn/HT1270
实践过程
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
时间: 2024-10-09 15:46:16