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 1.1.3 is very slow #9725

Closed
1 of 2 tasks
tutcugil opened this issue Mar 2, 2023 · 15 comments
Closed
1 of 2 tasks

wsl 1.1.3 is very slow #9725

tutcugil opened this issue Mar 2, 2023 · 15 comments

Comments

@tutcugil
Copy link

tutcugil commented Mar 2, 2023

Windows Version

Microsoft Windows Server 2022 [Version 10.0.20348.1547]

WSL Version

1.1.3

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.90.1

Distro Version

docker-desktop-data

Other Software

Docker Desktop v4.17.0

Repro Steps

I was previously using wsl v1.0.3 and updated it to v1.1.3 today, and my applications response times very slowed, i downgraded to v1.0.3 and my applications runs fast again

Expected Behavior

Application run and response performance same as previous wsl version

Actual Behavior

Applications are running slower on v1.1.3

Diagnostic Logs

No response

@tutcugil
Copy link
Author

tutcugil commented Mar 2, 2023

Especially HTTP requests seem to be too slow compared to v1.0.3, i think it is networking latency issue or something in wsl 1.1.3

@tutcugil
Copy link
Author

tutcugil commented Mar 2, 2023

I did some tests, when WSL v1.0.3 installed HTTP requests to my containered applications tooks ~100ms - 200ms, but when i update to WSL v1.1.3 same requests tooks ~1100ms - ~2600ms, it looks like there is a serious performance issue in the latest WSL version

@ghost
Copy link

ghost commented Mar 3, 2023

@tutcugil,

Do you have repro examples? Sample app to run, etc.

@kysucix
Copy link
Member

kysucix commented Mar 3, 2023

This is happening for me as well, do you have any clue what's going on?

@tutcugil
Copy link
Author

tutcugil commented Mar 3, 2023

@pmartincic

I am using simple .NET 7 API microservice application (which have JWT operations, DB connection, etc) in docker,
under nginx proxy

If i can program a simple app for repro it, i will inform you

@ghost ghost added the needs-author-feedback label Mar 3, 2023
@tutcugil
Copy link
Author

tutcugil commented Mar 4, 2023

Hello @pmartincic

I created a very simple .net web api project with one controller you can find repo link here to reproduce the performance issue

When i run this project into docker (v4.17.0) with wsl 1.0.3 installed on my machine it tooks like ~90-100ms
But when i run this project into with wsl 1.1.3 installed on my machine it tooks about ~800-900ms

It shows the new release of WSL (1.1.3) has performance issue

Best Regards

@ghost
Copy link

ghost commented Mar 6, 2023

@tutcugil, super thanks! I'll have a look this coming week.

@ghost ghost self-assigned this Mar 7, 2023
@romabysen
Copy link

romabysen commented Mar 8, 2023

I have the same problem. Networking in WSL2 is super slow now but it was fine previously.
Sample output using wget

❯ wget https://nodejs.org/dist/v18.15.0/node-v18.15.0.tar.gz
--2023-03-08 17:09:53--  https://nodejs.org/dist/v18.15.0/node-v18.15.0.tar.gz
Resolving nodejs.org (nodejs.org)... 104.20.22.46, 104.20.23.46, 2606:4700:10::6814:162e, ...
Connecting to nodejs.org (nodejs.org)|104.20.22.46|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 85359314 (81M) [application/gzip]
Saving to: ‘node-v18.15.0.tar.gz.1’

node-v18.15.0.tar.gz.1          2%[>                                                 ]   2.08M  10.4KB/s    eta 75m 5s

@benhillis
Copy link
Member

@romabysen - I've tried both 1.0.3 and 1.1.3 and am not seeing any noticeable difference between the network speed of the wget operations.

@romabysen
Copy link

Yes, it has since fixed itself. I have no idea why it was that bad or how it fixed itself.

@tutcugil
Copy link
Author

Hello @pmartincic,

Is there any news on this?

@ghost
Copy link

ghost commented Mar 14, 2023

Hey @tutcugil.

I'm sorry but I've gotten pulled elsewhere for the time being. I really appreciate you taking the time to put together a self contained repro. That doesn't happen very often. I was the in middle of figuring out how to deploy/run it when I got pulled off. I don't typically work on those kinds of apps. I thought I'd posted on here last week but apparently I hadn't.

@tutcugil
Copy link
Author

Hey @tutcugil.

I'm sorry but I've gotten pulled elsewhere for the time being. I really appreciate you taking the time to put together a self contained repro. That doesn't happen very often. I was the in middle of figuring out how to deploy/run it when I got pulled off. I don't typically work on those kinds of apps. I thought I'd posted on here last week but apparently I hadn't.

Hi @pmartincic, just open the project with visual studio 2022 and choose run target Docker and run it, or you can use Dockerfile inside of the repo to build and run it on docker

Regards

@tutcugil
Copy link
Author

Hi @pmartincic, @benhillis the issue seemed to resolved on v1.1.5 but re-appeared on v1.1.6 pre release, fyi

Is there any update on this,
Regards

@tutcugil
Copy link
Author

The issue have seemed to resolve on newer pre releases

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

4 participants