2 ms·
In Windows dev machines, under wsl2, I always set CPU and RAM limits by creating a file in %USERPROFILE%/.wslconfig with something like: [wsl2] memory=10GB
by hu3 4y ago
In Windows dev machines, under wsl2, I always set CPU and RAM limits by creating a file in %USERPROFILE%/.wslconfig with something like:
[wsl2]
memory=10GB
processors=4
swap=2GB
By limiting wsl2 I also limit the docker containers that run inside wsl2.