Home >> Linux >> how to clear cached memory in ubuntu

how to clear cached memory in ubuntu

Sometimes, when i see my system got slower, then i open the phpsysinfo. My using memory almost full. Even ubuntui restart my PC, the cached memory size still big. I want to clear cached memory but i’m hard to find to solution because i’m scar if it will cause my ubuntu crash.
After browse in many site ( thanks to ubuntuforum ) , I get the solution. It will clear cached memory with no bad effect to your system

To Check cached memory , use this command :

# free

To Clean the cached memory use this command, but Make sure you have root privileges :

sudo su

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

My cached memory size decrease from 38 % to 10%. it make my OS performance increase autamotically

One comment

  1. dear ,
    whenever i m trying to “echo 3 > /proc/sys/vm/drop_caches”apply this founding access denied, plz tell me what to do?

Leave a Reply

Your email address will not be published. Required fields are marked *