How to clear memory cache on Linux Mint

I have system cache used a lot of memory after a long time of work with system so I looked for something what might clear the cache.

So these are scripts (available in 2.6.16 Linux core or newer):

  • Clears pagecache
  • sync
    echo 1 > /proc/sys/vm/drop_caches
    
  • Clears dentrie and inode кэши:
  • sync
    echo 2 > /proc/sys/vm/drop_caches
    
  • Clears pagecache, dentrie and inode кэши:
  • sync
    echo 3 > /proc/sys/vm/drop_caches
    

I’m using the last one.

Leave a Reply

Your email address will not be published. Required fields are marked *