microsoft / microsoft/WSL

WSL sometimes freezes and the disk usage stuck at 100%.

Open
#13,251 18 comments 5 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

### Windows Version

Microsoft Windows [版本 10.0.26100.4652] (Microsoft Windows [Version 10.0.26100.4652])

### WSL Version

2.5.9.0

### Are you using WSL 1 or WSL 2?

- [x] WSL 2
- [ ] WSL 1

### Kernel Version

6.6.87.2-1

### Distro Version

Debian GNU/Linux (sid)

### Other Software

Microsoft Visual Studio Code 1.101.2 with `WSL` extension 0.99.0

### Repro Steps

This bug is hard to reproduce. It happens if I suspend my system (especially suspend for more than 12h) and working on VSCode for a period of time. Resume the system and continue to work on VSCode will cause this problem probability.
Only restart WSL will not relieve the problem. Reboot Windows can relieve it.

### Expected Behavior

Don't freezes witth the disk usage stuck at 100%.

### Actual Behavior

It happens in two forms:

1. WSL freezes and the disk usage stuck at 100%. It lasts for a period of time then resume.

Image

2. WSL freezes and the disk usage stuck at 100% forever until `wsl --shutdown`.

Image

If this occured, every window and even mouse will nearly freezed. It's hard to capture the screenshot above.

In short, it’s hard to reproduce and difficult to capture, but once it happens, it has a significant impact.

### Diagnostic Logs

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the reported WSL 2, Windows, kernel, Debian, and VS Code versions, then investigate the suspend/resume scenario described in the issue. Diagnostic logs are not provided, so reproducing the freeze and collecting relevant evidence is necessary; done means identifying and fixing the cause of the sustained 100% disk usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, vscode
Domain
devtools, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.