Linux: view memory size and slot; linux: view memory size

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.