LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Cache memory clear (https://www.linuxquestions.org/questions/linux-server-73/cache-memory-clear-781410/)

snjksh 01-11-2010 03:14 AM

Cache memory clear
 
Please let me know how to clear cache memory ( RHEL 5.1 ) as it consumes almost 100% physical memory.

Regards,
snj.

syg00 01-11-2010 03:29 AM

Go here and learn.

johnsfine 01-11-2010 08:33 AM

Quote:

Originally Posted by syg00 (Post 3822166)
Go here and learn.

That is a very nice presentation. The main point "Don't Panic! Your ram is fine!" is absolutely correct.

The info there is a bit over simplified (especially regarding the interaction with swapping). That simplification may be best for the beginners who tend to get worried about this issue. But I'm not sure.

To the OP: You can easily clear the Linux cache. The correct command is trivial to find in a simple search with google or here at LQ.

If you want to clear the cache to make results in some benchmark more reproducible, that is a valid purpose and worth knowing the command.

If you want to clear the cache to free up memory to get better performance, you are flat out wrong.

kutty_prasad 01-13-2010 02:23 AM

As root, run the following

# echo 1 > /proc/sys/vm/drop_caches

But as sysg00 and johnsfine said, decide if you really want to clear the cache (for some weird reason, which I do sometimes).

More info at http://www.linuxinsight.com/proc_sys...op_caches.html

snjksh 07-27-2013 10:34 AM

Thanks.

manglesh.vyas 03-10-2014 07:52 AM

Thanks
 
Nice post, it Has clear all my doubts

Thanks

Manglesh


All times are GMT -5. The time now is 12:41 PM.