Answers for "wsl2 release memory"

1

wsl2 release memory

STEP 1
alias drop_cache="sudo sh -c \"echo 3 >'/proc/sys/vm/drop_caches' && swapoff -a && swapon -a && printf '\n%s\n' 'Ram-cache and Swap Cleared'\""
STEP 2
source ~/.bashrc
STEP 3
drop_cache
Posted by: Guest on September-29-2021
0

wsl2 taking much memory

[wsl2]
# https://docs.microsoft.com/en-us/windows/wsl/wsl-config (Docs)
# https://github.com/microsoft/WSL/issues/4166 (Topic)
memory=4GB
swap=16GB
localhostForwarding=true
Posted by: Guest on May-16-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language