Last active
March 31, 2020 22:21
-
-
Save remlapmot/d5769ddbae892715c3f9e4db36b919e2 to your computer and use it in GitHub Desktop.
WSL 2 configuration file - to limit the amount of RAM the Vmmem process uses. File location: %userprofile%
This file contains hidden or 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
[wsl2] | |
# kernel=<path> # An absolute Windows path to a custom Linux kernel. | |
memory=4GB # How much memory to assign to the WSL2 VM. | |
# processors=<number> # How many processors to assign to the WSL2 VM. | |
swap=0GB # How much swap space to add to the WSL2 VM. 0 for no swap file. | |
# swapFile=<path> # An absolute Windows path to the swap vhd. | |
# localhostForwarding=<bool> # Boolean specifying if ports bound to wildcard or localhost in the WSL2 VM should be connectable from the host via localhost:port (default true). | |
# <path> entries must be absolute Windows paths with escaped backslashes, for example C:\\Users\\Ben\\kernel | |
# <size> entries must be size followed by unit, for example 8GB or 512MB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment