Skip to content

Instantly share code, notes, and snippets.

Last active July 15, 2020 20:40
What would you like to do?
Spring clean memory on Linux systems
# SPDX-License-Identifier: Unlicense
# Author: Derrick Lyndon Pallas <>
sync &&
echo 3 > /proc/sys/vm/drop_caches &&
echo 1 > /proc/sys/vm/compact_memory &&
Copy link

pallas commented Jun 12, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment