Skip to content

Instantly share code, notes, and snippets.

@jimfilippou
Created October 15, 2017 12:22
Show Gist options
  • Save jimfilippou/2b0e1c55ec2ac0f83a183ea9b7f11b42 to your computer and use it in GitHub Desktop.
Save jimfilippou/2b0e1c55ec2ac0f83a183ea9b7f11b42 to your computer and use it in GitHub Desktop.
Clear cached ram
# To free pagecache:
# echo 1 > /proc/sys/vm/drop_caches
# To free dentries and inodes:
# echo 2 > /proc/sys/vm/drop_caches
# To free pagecache, dentries and inodes:
# echo 3 > /proc/sys/vm/drop_caches
sudo sync && sudo sysctl -w vm.drop_caches=3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment