Created
October 29, 2011 22:23
-
-
Save petasittek/1325171 to your computer and use it in GitHub Desktop.
Free page cache, inodes and dentries cache
This file contains hidden or 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
# flush file system buffers (cache > disk) | |
sudo sync | |
# free page cache | |
sudo -s "echo 1 > /proc/sys/vm/drop_caches" | |
# free inodes and dentries cache | |
sudo -s "echo 2 > /proc/sys/vm/drop_caches" | |
# free page cache, inodes and dentries cache | |
sudo -s "echo 3 > /proc/sys/vm/drop_caches" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment