- May 22, 2012
- 32
In this tutorial, we will see how to use the terminal to clean up unused memory that was not released properly after being used by your system. No need to use any third-party software, just a few commands will do the job pretty easily.
Check Memory Usage in Real-Time
You can check your current memory usage using this command:
This command will also display in real-time your system memory usage:
Unused Memory
You can free up unused memory under Ubuntu/Linux Mint using this command:
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.
Here is another command that can help you free up memory either used or cached (page cache, inodes, and dentries):
NOTE: You can use cron jobs to schedule the commands above to run at specific time intervals.
If you have more useful commands for releasing/flushing memory in Ubuntu/Linux Mint, use the comment form below.
Source :Leet Tips
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
Unused Memory
You can free up unused memory under Ubuntu/Linux Mint using this command:
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.
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
NOTE: You can use cron jobs to schedule the commands above to run at specific time intervals.
If you have more useful commands for releasing/flushing memory in Ubuntu/Linux Mint, use the comment form below.
Source :Leet Tips