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

setting max RAM limit in .wslconfig doesn't work #11151

Closed
1 of 2 tasks
danieleCTM opened this issue Feb 13, 2024 · 2 comments
Closed
1 of 2 tasks

setting max RAM limit in .wslconfig doesn't work #11151

danieleCTM opened this issue Feb 13, 2024 · 2 comments

Comments

@danieleCTM
Copy link

Windows Version

Windows 11 Pro 23H2 (10.0.22631.3007)

WSL Version

0.0.0.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.10.16.3

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

  • Shutdown all wsl instances using wsl --shutdown
  • then i execute: Write-output "[wsl2] memory=48GB" >> "${env:USERPROFILE}.wslconfig"
  • A .wslconfig file with the content "[wsl2] memory=48GB" is created inside the user folder
  • i run wsl, then htop

Expected Behavior

To have the max RAM limit set to 48, not the standard 32GB (%50 of the avaiable ram?)

Actual Behavior

Memory limit is always 32GB (i have 64GB on my system)

Diagnostic Logs

No response

Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@danieleCTM
Copy link
Author

solved

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