Skip to content

Instantly share code, notes, and snippets.

@tekk555
Created August 11, 2013 14:48
Show Gist options
  • Save tekk555/6205213 to your computer and use it in GitHub Desktop.
Save tekk555/6205213 to your computer and use it in GitHub Desktop.
ディスクのキャッシュをクリアする(但し、実際にはクリアされているという実感が無い)Ubuntu 12.04LTS
sync
sysctl -w vm.drop_caches=1
sysctl -w vm.drop_caches=2
sysctl -w vm.drop_caches=3
hdparm -f /dev/vda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment