Posted: . At: 8:01 PM. This was 11 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.


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


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

Clear PageCache, dentries and inodes.

root@jason-desktop:~# 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.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.