How to Clear RAM Memory Cache, Swap Space and Buffer on Ubuntu 16.04 | 18.04 | 20.04 - TechBeginner

Welcome to TechBeginner.in, Tech Beginner provides technical blog for Online Linux Tutorials, Ubuntu Tutorials, Redhat Tutorials and CentOS 7, Configuration of server like Web Server, Application server, Database server, Window server, networking, html, css, java script, php, wordpress, opencart, magento, joomla and etc.

How to Clear RAM Memory Cache, Swap Space and Buffer on Ubuntu 16.04 | 18.04 | 20.04

Share This


As you know that while using internet browser keeps a reserve of the sites you visit so consequent visits will be stacked rapidly. Linux, similar to your program, likewise keeps a framework store – application reserve, adept store, and so on – so consequent stacking of the application will be quick.
While the idea of a reserve is no uncertainty acceptable from a client experience perspective, it continues eating your framework's memory. Eventually you have to ensure that you erase all the pointless or garbage documents, normally as the store, to keep your framework new and less stacked down.


In this post, we will clear cache memory, Swap Space and Buffer on Ubuntu 16.04 | 18.04 | 20.04


Step 1: Clear PageCache

You need to use the given command to clear PageCache, With Root privileges.

Note :- These command do not interrupting any processes and services.

$ sudo -i


# sync; echo 1 > /proc/sys/vm/drop_caches


Step 2: Clear inodes and dentries

Use the following command for that.

# sync; echo 2 > /proc/sys/vm/drop_caches


Step 3: Clear PageCache, inodes and dentries

Execute the following command for that.

# sync; echo 3 > /proc/sys/vm/drop_caches


No comments:

Post a Comment