Created
August 18, 2020 05:31
-
-
Save ball6847/e0952b30bff3d45889926abec955f644 to your computer and use it in GitHub Desktop.
Reclaim wsl2 memory and release it to host
This file contains hidden or 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
# run this as root | |
echo 1 > /proc/sys/vm/drop_caches | |
echo 1 > /proc/sys/vm/compact_memory | |
sh -c "echo 1 > /proc/sys/vm/drop_caches; 1 > /proc/sys/vm/compact_memory" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment