voodish logo
Skip to: Content | Navigation | Site map

How to clear Linux caches

Simple method of clearing Linux cache, useful for dropping dentries and inodes from memory.

To free pagecache:

echo 1 > /proc/sys/vm/drop_caches

To free dentries and inodes:

echo 2 > /proc/sys/vm/drop_caches

To free pagecache, dentries and inodes:

echo 3 > /proc/sys/vm/drop_caches

Related Articles

Comments RSS Feed

No Comments Yet

You can be the first to comment!

Leave a comment