Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can not allocate ram memory for WSL2 #9786

Closed
1 of 2 tasks
joseailtoncruz opened this issue Mar 14, 2023 · 1 comment
Closed
1 of 2 tasks

I can not allocate ram memory for WSL2 #9786

joseailtoncruz opened this issue Mar 14, 2023 · 1 comment

Comments

@joseailtoncruz
Copy link

Windows Version

Microsoft Windows [versão 10.0.22621.1344]

WSL Version

Versão do WSL: 1.1.3.0 Versão do kernel: 5.15.90.1 Versão do WSLg: 1.0.49 Versão do MSRDC: 1.2.3770 Versão do Direct3D: 1.608.2-61064218 Versão do DXCore: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows versão: 10.0.22621.1344

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Versão do kernel: 5.15.90.1

Distro Version

ubuntu 22.04

Other Software

No response

Repro Steps

I can't allocate ram memory to my wsl2, I've already made the recommendations that are available on the site (Advanced settings configuration in WSL | Microsoft Learn), in which I created a .wslconfig file in the path C:\Users.wslconfig . With the following specifications;

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=12GB

#Sets amount of swap storage space to 8GB, default is 25% of available RAM swap=2GB And even so I can't increase the amount of ram used by wsl2. In this case, he is using only 7gb of ram, and I would like him to use 12gb.

My notebook has 16gb of ram. In this case, he is using only 7gb of ram, and I would like him to use 12gb. I've also tried to download the amount of ram used by wsl2, but it doesn't change. In other words, I used the command memory=5GB, and even so, he continued using 7gb. O meu notbook tem 16gb de memoria ram.

Expected Behavior

In this case, he is using only 7gb of ram, and I would like him to use 12gb. I've also tried to download the amount of ram used by wsl2, but it doesn't change. In other words, I used the command memory=5GB, and even so, he continued using 7gb. O meu notbook tem 16gb de memoria ram.

Actual Behavior

Whenever I define the amount of ram used by wsl2 using the .wslconfig file, nothing changes in the amount of ram, if I define 12gb or 4gb, it always remains 7gb of ram

Diagnostic Logs

No response

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant