-
WSL consumes massive amounts of RAM
-
Define .wslconfig within
C:\Users\<User Name>\.wslconfig
-
memory: Limits maximum memory assigned to WSL2
-
swap: Sets the size of swap space for WSL2 (It temporarly saves data if the RAM is full )
-
processors: Limits the number of processors available to WSL2
-
shmsize: Sets the maximum size of shared memory (It is a memory space that processes can access to share data)
[wsl2]
memory=16GB
swap=8GB
processors=12
shmsize=8GB