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

wsl: Unknown key 'wsl2.autoMemoryReclaim' #10759

Closed
1 of 2 tasks
dhtzs opened this issue Nov 15, 2023 · 3 comments
Closed
1 of 2 tasks

wsl: Unknown key 'wsl2.autoMemoryReclaim' #10759

dhtzs opened this issue Nov 15, 2023 · 3 comments

Comments

@dhtzs
Copy link

dhtzs commented Nov 15, 2023

Windows Version

Microsoft Windows [Version 10.0.22631.2715]

WSL Version

2.0.9.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.133.1-1

Distro Version

Ubuntu 23.04

Other Software

No response

Repro Steps

  1. Create .wslconfig file with the following content:
[wsl2]
memory=24GB
autoMemoryReclaim=gradual
networkingMode=mirrored
dnsTunneling=true
firewall=true
autoProxy=true
  1. Terminate WSL using wsl.exe --shutdown
  2. Start WSL and get the following warning message:
    wsl: Unknown key 'wsl2.autoMemoryReclaim'](wsl: Unknown key 'wsl2.autoMemoryReclaim' in C:\Users\<user>\.wslconfig:3)

image

Expected Behavior

Actual Behavior

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:

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

@craigloewen-msft
Copy link
Member

the autoMemoryReclaim feature is still experimental, and not yet in the [wsl2] setting. You can access it by adjusting your existing .wslconfig like so:

[wsl2]
memory=24GB
networkingMode=mirrored
dnsTunneling=true
firewall=true
autoProxy=true
[experimental]
autoMemoryReclaim=gradual

@kinglionsz
Copy link

the autoMemoryReclaim feature is still experimental, and not yet in the [wsl2] setting. You can access it by adjusting your existing .wslconfig like so:

[wsl2]
memory=24GB
networkingMode=mirrored
dnsTunneling=true
firewall=true
autoProxy=true
[experimental]
autoMemoryReclaim=gradual
[experimental]
autoMemoryReclaim=gradual

That's the answer .

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

3 participants