Created
December 21, 2012 02:08
-
-
Save matchy256/4350226 to your computer and use it in GitHub Desktop.
Linux のスワップとかキャッシュとかをクリアする
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
#!/bin/sh | |
# swap clear | |
/sbin/swapoff -a && /sbin/swapon -a | |
# disk sync | |
/bin/sync | |
/bin/sync | |
/bin/sync | |
# page cache, dirty cache & inode clear | |
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