Skip to content
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

WSL is taking a long time to start ~10s #10341

Closed
1 of 2 tasks
Pedromdsn opened this issue Jul 26, 2023 · 6 comments
Closed
1 of 2 tasks

WSL is taking a long time to start ~10s #10341

Pedromdsn opened this issue Jul 26, 2023 · 6 comments

Comments

@Pedromdsn
Copy link

Pedromdsn commented Jul 26, 2023

Windows Version

Microsoft Windows [Version 10.0.22621.1992]

WSL Version

1.2.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.90.1

Distro Version

Ubuntu 22.05

Other Software

No response

Repro Steps

I just installed WSL, but I changed the location to a specific SSD disk to run WSL.

Expected Behavior

Start almost immediately.

Actual Behavior

When started, WSL takes +- 10s to start.

Diagnostic Logs

New Text Document.txt

@KonanTheLibrarian
Copy link

KonanTheLibrarian commented Jul 28, 2023

Windows does a lot of things without asking - telemetry, install Docker Desktop pretending it is docker which it is not, compression of random files without asking. Install and update WITHOUT ASKING. Rebooting and killing patients in hospitals WITHOUT ASKING All slowing down your PC.
A full disk is the worst. If you have 40GB free do this decompression in admin PowerShell:

  • Shutdown all applications
  • Exit all wsl terminals
  • wsl.exe --shutdown
  • cd \
  • compact /U /S /I

At bootup restarting WSL2(Ubuntu) or VSCODE-->WSL together with a bugfest monster Docker Desktop WSL2 trys to restore the previous session but now it just trys to load the data and crashes try's again and then you may even reboot to get over the problem - it is a bag of bugs!
Get rid of Docker Desktop and it fixes an whole load of bugs and speeds up WSL by 3x. But you have to reinstall WSL without Docker Desktop meaning backing up data.

Docker Desktop is a mountain of slowdown bugs!

@OneBlue
Copy link
Collaborator

OneBlue commented Aug 2, 2023

/logs

@microsoft-github-policy-service
Copy link
Contributor

Hello! Could you please provide more logs to help us better diagnose your issue?

To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

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

Thank you!

@microsoft-github-policy-service
Copy link
Contributor

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

@microsoft-github-policy-service
Copy link
Contributor

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

1 similar comment
@microsoft-github-policy-service
Copy link
Contributor

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants