How to free up memory that has been cached in Ubuntu and derived distributions.

Posted: September 24, 2013. At: 8:01 PM. This was 4 years ago. Post ID: 6336
Page permalink.
WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters. These cookies expire two weeks after they are set.

To clear the RAM cache in Linux, use this simple command as root.

Clear PageCache, dentries and inodes.

[email protected]:~# sync; echo 3 > /proc/sys/vm/drop_caches

This is a very useful command for clearing the RAM cache if a process has been eating away at your memory and you need to clear it quickly. This command must be run as root and not with sudo. Use sudo su - then run this command properly. This does work though, and will not interrupt your Linux operations.

No comments have been made. Use this form to start the conversation :)

Leave a Reply