Skip to content

Instantly share code, notes, and snippets.

@macel94
Created May 1, 2024 09:46
Show Gist options
  • Save macel94/c7e7555c91f7fb4b1e62c1e411fd91fc to your computer and use it in GitHub Desktop.
Save macel94/c7e7555c91f7fb4b1e62c1e411fd91fc to your computer and use it in GitHub Desktop.
Working example of wslconfig
# 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
cd ~
code .\.wslconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment