Skip to content

Memory/Cpu limit for each distribution #8570

Description

I have Docker Desktop installed, and it includes two Linux distribution docker-desktop and docker-desktop-data.

With wsl --list, I can see totally 3 distributions.

C:\>wsl --list
Windows Subsystem for Linux Distributions:
Ubuntu-20.04 (Default)
docker-desktop-data
docker-desktop

I have 16G physical memory, and like to give Ubuntu-20.04 8G. But if I do it in .wslconfig, all 3 distributions are affected.
There are totally 24G committed(over-committed). After a while, when I compile some programs and do some developing work, the computer is extremely slow, with lots of page faults.

There should be an option to set the resource limit of each distribution.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions