![](/style/images/good.png)
![](/style/images/bad.png)
Linux 查看内存大小和插槽
source link: https://wsgzao.github.io/post/linux-memory/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
相信大家更换自己笔记本电脑的内存时一定是得心应手,即便是一名新手也可以很轻松的动手实现,其实服务器的内存更换也很简单,关机 -> 挪盖 -> 按指定顺序插拔。不过这里有一个很重要的共性前提,需要清楚了解当前硬件所匹配的内存大小型号和插槽数量等依赖关系,这样我们在更换内存时才会更加游刃有余哈。
更换内存前会用到的实用小技巧
2015 年 06 月 05 日 - 初稿
阅读原文 - https://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
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK