Purge Memory

February 20, 2008

Purge MemoryLinux does a good job when it comes to memory allocation. If memory isn’t being used or hasn’t been used for awhile it gets put into a cache where it can readily pulled. At times though this cache can become pretty big (especially for a program that has a memory leak). If a good number of programs are being used or if memory is limited then Linux will begin using hard disk swap which can really bog down performance. In these instances, it may help to purge the memory.

Note: This tip is entirely safe but sed authour in not accountable if computer sees Pigs on a Wing.

In the terminal type free -m to see memory usage. Now flush the filesystem buffers and drop extra caches.

sudo sync
sudo echo 3 | sudo tee /proc/sys/vm/drop_caches

Look once more and memory usage should be improved. Freeing memory is most effective by shutting down whatever programs can be. To be really effective shutdown X server first.

Original Tip: Howto: Clear filesystem memory cache 

Entry Filed under: Linux. .

3 Comments Add your own

  • 1. Vadim P.  |  February 21, 2008 at 10:55 pm

    Sweet, thanks.

  • 2. Dirk Gently  |  February 22, 2008 at 12:37 pm

    thanks dog

  • 3. Membersihkan Memory RAM s&hellip  |  July 8, 2008 at 3:20 am

    [...] karena link yang diberikan google di awal pencarian belum banyak yang terjelajahi. Ternyata ada cara lain yang menurut saya “lebih elegan”. Saya anggap begitu karena tidak harus menunggu agak [...]

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Welcome to Tidbits.

Thanks for visiting. Helpful Linux Tidbits is a place for common bits of Linux knowledge and error fixes. Linux is an operating system that is growing at a fantastic rate and is exciting to be a part of - everyone can contribute to it. For the time being my posting will be limited as I try to find means to a new computer, unfortunately this may not be until October or November 2008.

I Enjoy the visit. Comments very very welcome.

Top Posts

Links

Subscribe

Atom Rss2

Creative Commons License