Created
May 1, 2024 09:46
-
-
Save macel94/c7e7555c91f7fb4b1e62c1e411fd91fc to your computer and use it in GitHub Desktop.
Working example of wslconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Settings apply across all Linux distros running on WSL 2 | |
[wsl2] | |
# Limits VM memory to use no more than 4 GB, this can be set as whole numbers using GB or MB | |
memory=4GB | |
# Sets the VM to use two virtual processors | |
processors=2 | |
# Sets amount of swap storage space to none, default is 25% of available RAM | |
swap=0 | |
# Enable experimental features | |
[experimental] | |
sparseVhd=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~ | |
code .\.wslconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment