Skip to content

Instantly share code, notes, and snippets.

@shawnbutts
Last active January 2, 2016 17:49
Show Gist options
  • Save shawnbutts/8339027 to your computer and use it in GitHub Desktop.
Save shawnbutts/8339027 to your computer and use it in GitHub Desktop.
flush cache and swap on linux
time sync; echo 3 > /proc/sys/vm/drop_caches
time swapoff -a
swapon -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment