Skip to content

Instantly share code, notes, and snippets.

@queil
Created November 30, 2020 14:50
Show Gist options
  • Save queil/2e3d456609f85ab546d8b47c56397bf7 to your computer and use it in GitHub Desktop.
Save queil/2e3d456609f85ab546d8b47c56397bf7 to your computer and use it in GitHub Desktop.
Reclaim WSL2 memory
# source https://devblogs.microsoft.com/commandline/memory-reclaim-in-the-windows-subsystem-for-linux-2/
# as root
echo 1 > /proc/sys/vm/drop_caches
echo 1 > /proc/sys/vm/compact_memory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment