WSL: WSL2 mounted host drive access hangs after a short while

Version

Microsoft Windows [Version 10.0.22621.1265]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.15.79.1-microsoft-standard-WSL2

Distro Version

docker-desktop

Other Software

Docker Desktop

Repro Steps

Use Docker Desktop to build some software using ninja -j9 in an Ubuntu 20.04 LTS container.

Expected Behavior

The build runs fast.

Actual Behavior

The build gets slower and slower until it eventually hangs.

Once it hangs, running df -ah in the WSL2 instance hangs right before it shows the /mnt point of the drive.

wsl --shutdown also hangs.

Diagnostic Logs

No response

About this issue

Most upvoted comments

Your CMD window title is wsl -d docker-desktop. The Docker distros docker-desktop and docker-desktop-data are not to be invoked directly.

Same issue after sometime with heavy read, WSL2 mounted host disk access hangs !!! HELP!