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. .

2 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

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. For the time being my posting will be limited as I try to find means to a new computer. My old pc went kaput, and I am looking for a means to replace it. If you can help, please let me know. I'm looking for a laptop that can access the internet and can run linux.

T.R.
816 MacFarlane Rd.
Portage, WI 53901

or email me at: part9282@yahoo.com

Top Posts


Links

Subscribe

Atom Rss2

Creative Commons License