Skip to content

Docker Desktop's "resource saver mode" causes WSL to "lock" when AutoMemoryReclaim is set to gradual #11066

Description

@jtabox

Windows Version

Microsoft Windows [Version 10.0.22621.3007]

WSL Version

2.0.14.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.133.1-1

Distro Version

Ubuntu 22.04

Other Software

Docker Desktop 4.26.1 (131620) - Windows version

Repro Steps

When Docker Desktop is running but is in "Resource Saver" mode, running any command that has to read from the disk will "hang" until I manually "wake up" Docker from its Resource Saver mode (by running a container for example).

I'm not really sure about the "read from disk" part, but it's been the common denominator of commands affected by this (e.g. apt, ls, lsof are all affected, while zsh scripts that are already running or top/htop aren't).

This issue happens when Docker Desktop is running in resource saver mode AND WSL's autoMemoryReclaim is set to gradual.

I've tried the following scenarios and they don't seem to cause the issue:

  • autoMemoryReclaim is set to dropcache
  • autoMemoryReclaim is disabled (commented out in .wslconfig)
  • Docker Desktop is running in its normal mode
  • Docker Desktop isn't running at all

For now I have autoMemoryReclaim set to dropcache, but if you want me to run additional tests or need some other info let me know.

Expected Behavior

Expected the normal command behavior.

Actual Behavior

I've taken a screen recording while the issue happens:

20240123_204049_explorer.mp4

Diagnostic Logs

Those are the corresponding WSL logs for the screen recording:

WslLogs-AutoMemReclaim-Gradual-2024-01-23_20-40-10.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions