Skip to content

Instantly share code, notes, and snippets.

@kelverarruda
Created February 2, 2023 13:43
Show Gist options
  • Save kelverarruda/443ea00d6ef42c4de1e230db94ffa1f4 to your computer and use it in GitHub Desktop.
Save kelverarruda/443ea00d6ef42c4de1e230db94ffa1f4 to your computer and use it in GitHub Desktop.
limit memory and cpu 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment