Sunday, April 24, 2011

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.

Cheers..
Ash

No comments:

Post a Comment

The Azure Synapse Resource Provider Error

  If you are get the error " The Azure Synapse resource provider (Microsoft.Synapse) needs to be registered with the selected subscript...