Cache stealing all your linux box memory ??

At times you may see the memory of your linux boxes used by cache , even though you are not running many applications on it. (Output of free -g)

The below solution will help you to free up the memory during runtime without rebooting the host.

To Free PageCache
sync; echo 1 > /proc/sys/vm/drop_caches <- br="" most="" used="">
To free dentries and inodes:
# sync; echo 2 > /proc/sys/vm/drop_caches

To free pagecache, dentries and inodes:
# sync; echo 3 > /proc/sys/vm/drop_caches

Hope you find it useful.