Linux: How to clear the cache from memory

Linux has a supposedly good memory management feature that will use up any “extra” RAM you have to cache stuff. This section of the memory being used is SUPPOSED to be freely available to be taken over by any other process that actually needs it, but unfortunately my Linux (three distros now, Mandriva 32 bit, and Mandriva 64 bit, and Opensuse 11 64 bit) thinks that cache memory is too important to move over for anything else that actually needs it.

Simply run the following command as root and the cache will be cleared out.

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

8 thoughts on “Linux: How to clear the cache from memory”

    1. sure but for that you need to give a link back to my site.

      Also tell me your blog or domain name where you given the link back?

  1. Greetings! I’ve been reading your weblog for some time now and finally got the
    courage to go ahead and give you a shout out from Atascocita
    Texas! Just wanted to tell you keep up the excellent job!

  2. Greetings, I believe your blog could possibly be having internet browser compatibility issues.
    Whenever I take a look at your website in Safari, it looks fine however, if opening in I.E., it has
    some overlapping issues. I merely wanted to give you a quick heads up!
    Besides that, wonderful blog!

  3. Thanks for another informative website. Where else may just I get that type of information written
    in such a perfect manner? I’ve a venture that I am just now working on, and I have
    been on the look out for such information.

Leave a Reply

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