How to Clear RAM Cache, Buffers, and Swap in Linux Without Reboot
"Like any other operating system, GNU/Linux has implemented memory management efficiently and even more than that. However, if any process is eating away your memory and you want to clear it, Linux provides a way to flush or clear the RAM cache. In general, it is not a good idea to manually free up Buffer and Cache in Linux which might be used by the Linux kernel, which is designed to manage these resources efficiently, and manually clearing them can disrupt system performance."
So, you can choose to apply any of these commands, and they won't do any harm, but the closing thought is that you should not normally really need to do so. Linux will use available RAM anyway so do not think that if it only uses 20% of RAM that is better than 80%.
See
https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux#
technology #
Linux #
opensource