View the number of Linux memory sticks with the command method to clean up memory

  • 2020-05-13 04:18:22
  • OfStack

1. Check current memory usage status

free-m or free-g (-m for MB, -g for GB)

Clean up memory

echo 1 > /proc/sys/vm/drop_caches

3. Check the number of memory sticks:

dmidecode |grep -A16 "Memory Device$"


Related articles: