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

Adding autoMemoryReclaim to .wslconfig disables cgroupv1 #10515

Closed
1 of 2 tasks
zcobol opened this issue Sep 20, 2023 · 1 comment
Closed
1 of 2 tasks

Adding autoMemoryReclaim to .wslconfig disables cgroupv1 #10515

zcobol opened this issue Sep 20, 2023 · 1 comment
Labels

Comments

@zcobol
Copy link

zcobol commented Sep 20, 2023

Windows Version

Microsoft Windows [Version 10.0.23545.1000]

WSL Version

2.0.0.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

No response

Other Software

No response

Repro Steps

Enable autoMemoryReclaim in [experimental]. Restart wsl service.

Expected Behavior

cgoupv1 working

Actual Behavior

wsl starts with cgroup_no_v1=all preventing docker from working.

Diagnostic Logs

Kernel args with autoMemoryReclaim setting:

initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=4 bonding.max_bonds=0 dummy.numdummies=0 fb_tunnels=none swiotlb=force cgroup_no_v1=all console=hvc0 debug pty.legacy_count=0

and from dmesg output:

[Wed Sep 20 10:45:24 2023] cgroup: Disabled controller 'cpuset'
[Wed Sep 20 10:45:24 2023] cgroup: Disabled controller 'misc'
[Wed Sep 20 10:45:24 2023] cgroup: Disabled controller 'freezer'
[Wed Sep 20 10:45:24 2023] cgroup: Disabled controller 'perf_event'
[Wed Sep 20 10:45:24 2023] cgroup: Disabled controller 'hugetlb'
[Wed Sep 20 10:45:24 2023] cgroup: Disabled controller 'net_cls'
[Wed Sep 20 10:45:24 2023] cgroup: Disabled controller 'devices'
[Wed Sep 20 10:45:24 2023] cgroup: Disabled controller 'memory'
[Wed Sep 20 10:45:24 2023] cgroup: Disabled controller 'cpu'
[Wed Sep 20 10:45:24 2023] cgroup: Disabled controller 'rdma'
[Wed Sep 20 10:45:24 2023] cgroup: Disabled controller 'blkio'
[Wed Sep 20 10:45:24 2023] cgroup: Disabled controller 'pids'

Kernel args without:

initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=4 bonding.max_bonds=0 dummy.numdummies=0 fb_tunnels=none swiotlb=force console=hvc0 debug pty.legacy_count=0

@OneBlue
Copy link
Collaborator

OneBlue commented Sep 20, 2023

This is by design. See this blog post

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

No branches or pull requests

2 participants