Dropping The Caches

This is originally from: http://linux-mm.org/Drop_Caches

I am copying the info here so I can find it easily. I always seem to loose the bookmark to the above site…

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