Linux: view memory size and slot; linux: view memory size
Preface
I believe that everyone must be comfortable with changing the memory of their laptops. Even a newbie can easily implement it. In fact, it is very easy to replace the memory of the server, shutdown-> cover-> plugging in the specified order. However, there is a very important common premise here. We need to clearly understand the memory size and model matching the current hardware, the number of slots, and other dependencies, so that we can be more comfortable with changing the memory.
Useful tips before Memory Replacement
Update history
April June 05, 2015-first draft
Http://wsgzao.github.io/post/linux-memory/
Additional reading
- MacBook Pro: how to remove or install memory-https://support.apple.com/zh-cn/HT1270
Practice Process
In Linux, check the number of memory slots, the number of slots used, the size of each memory, and the size of memory used.
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: view the maximum memory capacity supported by memory
dmidecode | grep -P 'Maximum\s+Capacity' Maximum Capacity: 1536 GB
Linux memory viewing frequency
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)
View detailed motherboard Information
dmidecode | grep -A16 "System Information$"
View detailed memory information
dmidecode | grep -A16 "Memory Device$"dmidecode -t memory