Clear linux system buffers

Here is a way how to clear the linux system buffers. You will need to run this command as root.

To clear the  pagecache, dentries and inodes

echo 3 > /proc/sys/vm/drop_caches

To clear just the pagecache, use the following command

echo 1 > /proc/sys/vm/drop_caches

Similarly, to delete just the dentries and inodes :

echo 2 > /proc/sys/vm/drop_caches

This is a non-destructive operation and will only free things that are completely unused.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>