wslg: High CPU load (Virtual Machine Worker Process + System) when session is IDLE
Version
Win: 10.0.22622.575 WSL: 0.66.2.0 Kernel: 5.15.57.1
WSL Version
- WSL 2
- WSL 1
Kernel Version
5.15.57.1
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
Install WSL2/Ubuntu and start a session. Obeserve in Windows Task manager high load on both “Virtual Machine Worker Process” and “System”. Both taking 15% CPU each for a combined 30+% CPU load. After wsl --shutdown the issue is gone.
Expected Behavior
No significant CPU usage when Linux/WSL is IDLE.
Actual Behavior
This is on my Surface Pro X (aarch64) - other ARM machine users for instance with the new Thinkpad X13S have reported similar obervations.
Both “Virtual Machine Worker Process” and “System”. Each taking roughly 15% CPU for a combined 30% CPU load.
Linux System is idle:
wsl --system -d Ubuntu Top
PID USER PR NI VIRT RES %CPU %MEM TIME+ S COMMAND
1 root 20 0 2.1m 1.5m 0.0 0.0 0:00.02 S /init
2 root 20 0 2.2m 1.6m 0.0 0.0 0:00.01 S - /init 27 root 20 0 2.3m 0.1m 0.0 0.0 0:00.00 S
- /init
28 root 20 0 2.3m 0.1m 0.0 0.0 0:00.07 S - /init 30 wslg 20 0 9.5m 4.4m 0.0 0.1 0:00.09 S
- -bash
7 root 20 0 2.1m 0.2m 0.0 0.0 0:00.00 S - /init 8 root 20 0 45.9m 7.3m 0.0 0.1 0:00.01 S
- /usr/bin/WSLGd
11 wslg 20 0 674.9m 34.3m 0.0 0.4 0:00.55 S - /usr/bin/weston --backend=rdp-backend.so --modules=wslgd-notify.so --xwa+ 15 wslg 20 0 18.5m 7.2m 0.0 0.1 0:00.03 S
- /usr/libexec/weston-rdprail-shell
31 wslg 20 0 44.7m 17.7m 0.0 0.2 0:00.04 S - /usr/bin/Xwayland :0 -rootless -core -listen 37 -wm 38 -terminate -n+ 16 wslg 20 0 2.0m 1.5m 0.0 0.0 0:00.00 S
- /init /mnt/c/Program Files/WindowsApps/MicrosoftCorporationII.WindowsSub+
17 message+ 20 0 7.8m 3.3m 0.0 0.0 0:00.02 S - /usr/bin/dbus-daemon --syslog --nofork --nopidfile --system 18 wslg 20 0 230.1m 7.2m 0.0 0.1 0:00.06 S
- /usr/bin/pulseaudio --log-target=file:/mnt/wslg/pulseaudio.log --load=mo+
22 wslg 20 0 7.6m 0.3m 0.0 0.0 0:00.00 S - /usr/bin/dbus-daemon --syslog --fork --print-pid 6 --print-address 8 --session 93 root 20 0 2.1m 0.1m 0.0 0.0 0:00.00 S
- /init
94 root 20 0 2.1m 0.1m 0.0 0.0 0:00.00 S - /init 95 wslg 20 0 6.4m 2.1m 0.0 0.0 0:00.02 R
- top
Diagnostic Logs
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 1
- Comments: 26 (6 by maintainers)
Is there deployment ETA for the normal Win 11 build? Still an issue on Pro X.
Seems to have been fixed!
Now we understood the issue and the fix is being made. The fix will be at Windows OS side (not WSL/WSLg), thus ETA for fix is still unknown, once I know more, will post here, thanks!
Issue still present! “guiApplications=false” doesn’t help
Same here on a Surface Pro X SQ1/16GB, running Windows 11 22H2
martijnd@SurfX:~$ uptime
19:57:35 up 0 min, 0 users, load average: 0.00, 0.00, 0.00
PS C:\Users\mderh> wsl --shutdown
From the trace it looks like Weston is crashing (probably repeatedly). Moving this to the WSLg repo so they can take a look.
Same issue here. Qualcomm 8cx gen3 (Thinkpad X13s)