Linux Pathfinder: Linux Howtos and Tutorials

How to Clear Memory Cache in Linux

How to Clear Memory Cache in Linux
How to Clear Memory Cache in Linux

How to Clear Memory Cache in Linux

Linux Systems have three options to clear cache without interrupting any processes or services. Follow the steps How to Clear Memory Cache in Linux.

Clear PageCache only

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

Clear Dentries and Inodes

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

Clear PageCache, Dentries and Inodes

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

 

Share this article:

Asif Khan's picture
I am an experienced Linux System and Network Administrator with having more than 10 years of experience. My primary responsibilities are to keep up and running Linux system environment, backups important data with scripting and configuration management on AWS Linux server environments. My aim is to help people, in finding their path towards a solution to their problems. Well, I believe helping others can good for both parties, to them and to you as well. That day and today is the day that thousands of people seek help from my website to help people find answers to their questions. I am sure that everyone will get all the answers to their questions related to software and operating system, and this website will help you keep your system updated.

Add new comment

Image CAPTCHA

Enter the characters shown in the image.