Sunday, 7 April 2013

How to Free up Unused Memory in Ubuntu/Linux Mint

 

ubuntu-logo

Check Memory Usage in Real-Time

  • You can check your current memory usage using this command:



                       watch -n 1 free -m




  • This command will also display in real-time your system memory usage:


                           watch -n 1 cat /proc/meminfo

Free Up Unused Memory


   Command 1

                                       sudo sysctl -w vm.drop_caches=3

NOTE: this action won't make your system faster nor it will affect its stability and performance, it will just clean up memory used by the Linux Kernel on caches.

Command 2
Here is another command that can help you free up memory either used or cached (page cache, inodes, and dentries):

sudo sync && echo 3 | sudo tee /proc/sys/vm/drop_caches

 

VIDEO :



No comments:

Post a Comment