Free Linux RAM

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

do not forget to use sync before using above command.


if you find any missing point in here, please let us know in comment section or tweet us at @linuxreaders. To get more articles like this, subscribe to our RSS feeds / Mails.

Article by Dhaval Thakar

Hi, I am Linux Admin. You'll find my articles small & without much descriptions.
Read 218 articles by
  • Pingback: Freeing memory manually: is this a good idea?

  • http://10sa.com Przemylaw

    Did you mean “sync” instead of Rsync?


    best regards

  • http://www.linuxreaders.com dhaval thakar

    it is sync.
    sync is the command used on Linux to synchronize data from RAM to HDD

Archives

Categories

Page optimized by WP Minify WordPress Plugin