How to view memory information in Linux

Source: Internet
Author: User

When we run the free command to view the idle memory of the machine, we will find that the free value is very small. This is mainly because there is such an idea in linux, the memory does not need to be white, so it tries its best to cache and buffer some data. The following is a command to view the memory for your reference.
 

1. in Linux, check the number of memory slots, the number of slots used, the size of each memory, and the size of memory used
 

 
 
  1. dmidecode|grep-P-A5"Memory\s+Device"|grepSize|grep-vRange  
  2. Size:2048MB  
  3. Size:2048MB  
  4. Size:NoModuleInstalled  
  5. Size:NoModuleInstalled  
  6. Size:NoModuleInstalled  
  7. Size:NoModuleInstalled  
  8. Size:NoModuleInstalled  
  9. Size:NoModuleInstalled  

2. Check the maximum memory capacity supported by the memory in Linux.
 

 
 
  1. dmidecode|grep-P'Maximum\s+Capacity'  
  2. MaximumCapacity:64GB  


3. Linux memory viewing frequency
 

 
 
  1. dmidecode|grep-A16"MemoryDevice"  
  2. dmidecode|grep-A16"MemoryDevice"|grep'Speed'  
  3. Speed:667MHz(1.5ns)  
  4. Speed:667MHz(1.5ns)  
  5. Speed:667MHz(1.5ns)  
  6. Speed:667MHz(1.5ns)  
  7. Speed:667MHz(1.5ns)  
  8. Speed:667MHz(1.5ns)  
  9. Speed:667MHz(1.5ns)  
  10. Speed:667MHz(1.5ns)  

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.