Skip to content

Instantly share code, notes, and snippets.

@asizikov
Created February 3, 2021 09:58
Show Gist options
  • Select an option

  • Save asizikov/a6ff67d8ce4b18acf77e14ca32771a32 to your computer and use it in GitHub Desktop.

Select an option

Save asizikov/a6ff67d8ce4b18acf77e14ca32771a32 to your computer and use it in GitHub Desktop.

Revisions

  1. asizikov created this gist Feb 3, 2021.
    7 changes: 7 additions & 0 deletions .wslconfig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #C:\Users\<yourUserName>\.wslconfig
    # https://blog.cloud-eng.nl/2021/02/03/wsl2-limits-vmmem/
    [wsl2]
    memory=6GB # How much memory to assign to the WSL 2 VM.
    processors=4 # How many processors to assign to the WSL 2 VM.
    swap=1GB # How much swap space to add to the WSL 2 VM, 0 for no swap file.
    localhostForwarding=true # ports bound to wildcard or localhost in the WSL 2 VM should be connectable from the host via localhost:port.