Fritz Thomas

25 Jun, 2010

Clear / free memory on Linux

Posted by: Fritz Thomas In: Linux|Open-Source

If you want to free the memory from all unused “crap” you can run this little one liner as root:

sync;echo 3 > /proc/sys/vm/drop_caches

The sync command flushes all buffers from memory to disk so you are safe that you do not loose anything. Keep also in mind that not everything from the cleared memory was crap. You dropped all caches – so expect that some things might run even slower.

  • Digg
  • del.icio.us
  • DZone
  • MisterWong
  • Reddit
  • Slashdot
  • Technorati
  • Google Bookmarks
  • Facebook
  • Twitter
  • Yahoo! Bookmarks
  • Yigg
  • LinkedIn
  • MySpace
  • PDF
  • RSS
Tags: ,

No Responses to "Clear / free memory on Linux"

Comment Form



Latest Tweets