Skip to content

Instantly share code, notes, and snippets.

@joesoeph
Last active May 19, 2022 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joesoeph/079c400ef1fb435fe6836b04cc04d51d to your computer and use it in GitHub Desktop.
Save joesoeph/079c400ef1fb435fe6836b04cc04d51d to your computer and use it in GitHub Desktop.
Example configuration file WSL2 to prevent consuming massive memory on your computer. For more detail about this snippet, please visit links in this file script.
[wsl2]
# https://docs.microsoft.com/en-us/windows/wsl/wsl-config (Docs)
# https://github.com/microsoft/WSL/issues/4166 (Topic)
# Example save location: C:\Users\lenovo
memory=4GB
swap=16GB
localhostForwarding=true
@sevensix-76
Copy link

hi may i know where to create this file? eg:
c:\User(username)>
or in wls login

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment