-
Notifications
You must be signed in to change notification settings - Fork 840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 24.04 on WSL2 makes Windows 11 super slow #11522
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Open similar issues:
Closed similar issues:
|
Debugging logs:Ubuntu 22.04 (The PC runs normally): WslLogs-2024-04-26_22-34-57.zipUbuntu 24.04 (The PC runs super slow): WslLogs-2024-04-26_22-36-30.zipFor both tests, I did the following:
The PC becomes really slow after launching Ubuntu 24.04 terminal. Even setting username/password of the new user took few minutes to complete. |
Diagnostic information
|
I have absolutely the same problem. And I want to note that this problem appears both after updating from 22.04>23.10>24.04 and after clean installation of 24.04 from Microsoft Store. I had to go back to 22.04 for now, it is more stable. |
This must be an issue with the store version of Ubuntu 24.04. If an image from https://cloud-images.ubuntu.com/wsl/releases/24.04/ is being used there are no system slowdowns.
|
That doesn't help, unfortunately.
Ubuntu starts, but still slows down the system. BTW, |
I have same problem. When I run WSL 2 Ubuntu 24.04 my Windows 11 Pro freezing! |
sysinfo.txt |
Here are the logs for me running across the same lockup/extreme slowdown problem: |
Is the slow down only noticeable at installation/registration or at any time? |
It happens during both installation and start up wsl. |
The problem occurs right after installation during startup. When trying to open Task Manager or CMD, they freeze. I was unable to uninstall using |
@rmanzman Your experiment suggests that the problem is clearly in the Ubuntu 24.04 image (whether we downloaded it or transferred it as a file). Thank you. |
Happens both on my laptop and desktop, AMD cpus |
@magpte If you can run CMD, unregister Ubuntu 24.04 by using the command |
I am having the exact same issue. Booting up wsl with Ubuntu24.04 makes the windows 11 system unresponsive. Running a i7 14700k with latests win updates and WSL 2.2.4.0 . (installed via Switching back to Ubuntu22.04 solves the issue but that should not be the goal. The issue lies in the 24.04 image. |
I met exactly the same problem. |
I've had a similar problem and narrowed it down to systemd - could you try removing |
Indeed. Changing |
Could someone affected by the slowness run System manager output on my setup:
and host info:
|
Also,
|
More debugging:
|
Preventing
|
Well well, I think I found the root cause for this issue. It is Kaspersky's fault. Once I shutdown "Kaspersky Premium", everything works smoothly (with enabling Does anybody know how to configure Kaspersky to prevent this issue? Edit: If we disable "System Watcher", the issue disappears. Not a perfect solution though. I will stick with disabling |
I'm using Kaspersky Small Office Security. Debugging with System Watcher enabled:
Debugging with System Watcher disabled:
|
I've got a feedback from the kaspersky support: "Kaspersky for Windows": https://support.kaspersky.com/kaspersky-for-windows/21.17/43520
Restrictions: Windows Subsystem for Linux 2 (WSL2) is not supported. |
If it's not supported, their task would be not to interfere with any related WSL2 process so I can use WSL2 without Kaspersky. |
Received a feedback from Kaspersky Lab Support: Dear user, the issue will be fixed in version (21.19). The new version is expected to be released in about 4 months. |
So this is now a Kaspersky problem and not a WSL2 with Ubuntu 24.04 problem? Am I misunderstanding something here? |
I am facing the same issue, it is really dreadful - though in the particular PC that this is encountered I have ESET installed rather than Kaspersky. Disabling it seems to not really work but the issue is exacerbated when resuming from sleep. The log output for the
Masking the services as indicated above, again does not work... Geneally speaking system snappyness is severely affected overal - this has to be a bug of some sorts. edit: removing Ubuntu 24.04 distribution fixes the slugginess - Ubuntu 22.04 works as expected... this is a MAJOR pain.... |
Same Issue. I have a computer with a commercial version of Kaspersky installed, and it got stuck when booting Ubuntu 24.04 LTS using WSL2. Switching to Ubuntu 22.04 worked for me |
The issue still persists for me... even with the latest updates. |
Adding these files to Kaspersky exclusion helps me a lot.
It still slows down a bit during start up compared to no Kaspersky, but at least the system is not complete unusable like before. Advice from Kaspersky forum: |
Has this been resolved? Ubuntu 24.04.1 LTS was released Aug 29 2024, two weeks after the most recent comment here, in case that has any bearing. |
@mxkpp Good day. I tried it again a couple weeks ago. It seems to have solved the problem. I am now using Ubuntu 24.04 on Windows 11 Pro (WSL2) and everything works. I have an Intel CPU (just in case there is a difference for AMD). |
@mxkpp, In my case, disabling the antivirus helped |
I use Kaspersky antivirus (last version). Everything works fine without any additional antivirus manipulation. |
@artyomboyko, I use kaspersky too. Disabling it solved the problem. Other people have also complained about it. |
@mrjbom Really? That's weird. It's working for me without any modifications. |
It worked without disabling Kaspersky too, the problem was some operations became very slow, especially during the initial startup of WSL 2. Now, if it isn't slowing down for you now, then great. But my permanent solution is to delete Kaspersky from my computer, not worth the headache. |
@artyomboyko In my case, I tried reinstalling WSL and Hyper-V, tried running WSL without Hyper-V, tried installing the latest version of WSL, tried different versions of Ubuntu, but only disabling Kaspersky helped. |
I have not tried it, had a very bad experience last time and lost quite a bit of time setting up the distribution then having to remove it. I'll wait a bit until there is enough feedback that this works and try again aftwards. |
It seems to have been fixed. |
Kaspersky Internet Security v 21.3.10.391 (m) Today (25/10/2024) update my wsl ubuntu to 22.04.5 LTS from microsoft store. UPDATE: migration to kasperskiy standart solved my problem |
Hey, this is way out of my knowledge base, but could any of this be related to this? My WSL Ubuntu kernel is cgroupv1. It is maddening because both "systemd-analyze blame" and "systemd-analyze critical-chain" START at 30s elapsed, and I cannot help but wonder if this is why? I am not an expert, so could any expert take a look? systemd/systemd#32998 |
Well, I used this trick mentioned over here, and it removes the 30s delay but now I have trouble running snaps and flatpaks in WSL. https://github.com/spurin/wsl-cgroupsv2?tab=readme-ov-file#configure-wsl-to-use-cgroupsv2 .wslconfig: |
While the Ubuntu 24 lts is a very stable OS. its WSL version is a bit buggy with high slowness. this behavior is not so stable. meaning sometimes everything runs smoothly. and sometimes it act very crazy. |
Windows Version
Microsoft Windows [Version 10.0.22631.3527]
WSL Version
2.1.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.146.1-2
Distro Version
Ubuntu 24.04 LTS
Other Software
No response
Repro Steps
Just install Ubuntu 24.04 from Microsoft Store.
Expected Behavior
It should work as with Ubuntu 22.04 LTS
Actual Behavior
Both Windows and Ubuntu become slow and you have to wait few seconds/minutes for actions to be completed.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: