Created
November 30, 2020 14:50
-
-
Save queil/2e3d456609f85ab546d8b47c56397bf7 to your computer and use it in GitHub Desktop.
Reclaim WSL2 memory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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