Skip to main content

Free up Linux memory

By September 26, 2009Server Admin

Free Clear Purge System memory ( RAM ) in Linux.

Its best to leave the memory management to linus kernel but if you must clear up some memory then this is how you do it.
Execute this command as root:

sync; echo 3 > /proc/sys/vm/drop_caches

What does it do ?
sync; will write all the unwritten data to disk so that nothing is lost.
echo 3 > /proc/sys/vm/drop_caches; will drop all the cached data from memory.

0 0 votes
Article Rating

Author Dhillon

More posts by Dhillon

Leave a Reply

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x