Open
Description
Windows Version
Microsoft Windows [Version 10.0.22621.2428]
WSL Version
2.0.5.0
Are you using WSL 1 or WSL 2?
- WSL 2
- WSL 1
Kernel Version
5.15.133.1-1
Distro Version
Debian 12 + Arch Linux
Other Software
Visual Studio Code (Latest version) with C# extension
.NET Core SDK 6.0/7.0
Docker Desktop 4.24.2 (124339)
Repro Steps
- Update to latest WSL pre-release version by running
wsl --update --pre-release
- Enable systemd support in wsl.conf
- Set autoMemoryReclaim=gradual in .wslconfig
- Restart WSL to apply settings
- Do something such as updating packages or writing apps in WSL, or open Docker Desktop, then WSL will allocate a lot of
buff/cache
memory - After that, place WSL distro command line windows aside for several minutes, to avoid WSL terminating distro automatically, and to allow WSL reclaiming memory
- Then, execute arbitrary of commands, such as
sudo pacman -Syu
sudo apt update
systemctl status
.
Expected Behavior
This command will be executed instantly.
Actual Behavior
You will find that this command may hangs for a very long time. After kernel re-allocating buff/cache
memory, everything works again.
Disabling systemd support also works.
I think it is maybe a mechanism in Linux kernel.
Screenshots:
Diagnostic Logs
Metadata
Metadata
Assignees
Labels
No labels