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

wsl2 takes very much longer time to start than wsl1. #6534

Closed
shpirt opened this issue Feb 10, 2021 · 1 comment
Closed

wsl2 takes very much longer time to start than wsl1. #6534

shpirt opened this issue Feb 10, 2021 · 1 comment

Comments

@shpirt
Copy link

shpirt commented Feb 10, 2021

Environment

Windows build number: Microsoft Windows [Version 10.0.19042.804]
Your Distribution version: Debian GNU/Linux 10
Whether the issue is on WSL 2 and/or WSL 1:  WSL2

Steps to reproduce

  1. Run wsl --shutdown to terminates all running distributions and the WSL 2 lightweight utility virtual machine.
  2. Reopen debian in windows terminal. (or other terminal, it does not matter)

WSL logs:

Expected behavior

The shell starts as quick as the wsl1 does, which only takes less one second.

Actual behavior

It takes 5~6 seconds to start the first shell, with it has opened, open another shell of the same distro did not occupy such long time anymore.
I try to convert it back to wsl1, it just works fine.
And I have try to reinstall the wsl distro, start it in a fresh, this issue still appear.
I do not know this is a bug or not, the search engine does not help, hope someone can help me figure out where the problem is, thanks!

@Biswa96
Copy link

Biswa96 commented Feb 10, 2021

It takes 5~6 seconds to start the first shell

WSL2 need to start a VM, no matter how small it is.

open another shell of the same distro did not occupy such long time

Because the VM is already spun up, next Linux kernel handles the later.

start it in a fresh, this issue still appear

This is by-design, not an issue.

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

No branches or pull requests

2 participants