Created
January 27, 2015 20:45
-
-
Save alexcheng1982/0adfcf9cc4497ac5d3c1 to your computer and use it in GitHub Desktop.
Flush Linux system memory cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
free -m && sync && echo 3 > /proc/sys/vm/drop_caches && free -m | |
Flush daily using crontab: | |
0 0 * * * sudo free -m && sync && echo 3 > /proc/sys/vm/drop_caches && free -m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment