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
- dmidecode|grep-P-A5"Memory\s+Device"|grepSize|grep-vRange
- Size:2048MB
- Size:2048MB
- Size:NoModuleInstalled
- Size:NoModuleInstalled
- Size:NoModuleInstalled
- Size:NoModuleInstalled
- Size:NoModuleInstalled
- Size:NoModuleInstalled
2. Check the maximum memory capacity supported by the memory in Linux.
- dmidecode|grep-P'Maximum\s+Capacity'
- MaximumCapacity:64GB
3. Linux memory viewing frequency
- dmidecode|grep-A16"MemoryDevice"
- dmidecode|grep-A16"MemoryDevice"|grep'Speed'
- Speed:667MHz(1.5ns)
- Speed:667MHz(1.5ns)
- Speed:667MHz(1.5ns)
- Speed:667MHz(1.5ns)
- Speed:667MHz(1.5ns)
- Speed:667MHz(1.5ns)
- Speed:667MHz(1.5ns)
- Speed:667MHz(1.5ns)