Horje
wsl2 release memory Code Example
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
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




Shell

Related
merge rar parts ubuntu Code Example merge rar parts ubuntu Code Example
move file from one directory to another sftp Code Example move file from one directory to another sftp Code Example
how to edit bashrc Code Example how to edit bashrc Code Example
crypto is installed but showing error Code Example crypto is installed but showing error Code Example
pip install pycryptodome error Code Example pip install pycryptodome error Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12