Tuesday 12 March 2024

Constrain WSL2 resource consumption

 Add a file named .wslconfig to %UserProfile% with the follows. Adjust the parameters as suitable.

[wsl2]

memory=12GB

processors=4