Skip to content

Instantly share code, notes, and snippets.

@AbhimanyuAryan
Created September 24, 2022 20:54
Show Gist options
  • Save AbhimanyuAryan/ea51c249ce90b736e8eb35908a44c5cf to your computer and use it in GitHub Desktop.
Save AbhimanyuAryan/ea51c249ce90b736e8eb35908a44c5cf to your computer and use it in GitHub Desktop.
# Settings apply across all Linux distros running on WSL 2
# Can see memory in wsl2 with "free -m"
# Goes in windows home directory as .wslconfig
[wsl2]
# Limits VM memory to use no more than 48 GB, defaults to 50% of ram
memory=8GB
# Sets the VM to use 8 virtual processors
processors=4
# Sets the amount of swap storage space to 8GB, default is 25% of available RAM
swap=16GB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment