-
Notifications
You must be signed in to change notification settings - Fork 826
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
Running Windows exe from WSL is slower than from native Windows #9080
Comments
This does not happen for the stock WSL (kernel 5.10.102.1) |
endl causes a flush. Meaning you have synchronous write output blocking forward progress. I'm closing this as designed. We could bump buffer sizes, but I doubt that would do much here. |
@pmartincic Hi. I also mentioned in the comment that this problem doesn't happen on the stock WSL (kernel 5.10.102.1). Is it really |
Are you running a custom kernel? |
@pmartincic The stock WSL (kernel 5.10.102.1) does not have this problem. |
Depending on what the application does there is always going to be some hit on performance by running through wsl. However, if you're telling me that you updated WSL, and then saw a performance decrease, with no custom kernel. Then there is probably something for us to look at. |
Yes, that's exactly what I am saying. |
@lucidfrontier45 what did you do to update your kernel from 5.10.102.1 to 5.15.57.1? I've got: |
@DoctorWho8 I just did Below are the logs (in Japanese)
|
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Version
Microsoft Windows [Version 10.0.22621.675]
WSL Version
Kernel Version
5.15.57.1
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
sudo apt install mingw-w64
main.cpp
x86_64-w64-mingw32-g++ -O3 --std=c++17 --static main.cpp
put compiled a.exe
to/mnt/c
/mnt/c/a.exe
from WSL Ubuntu terminalC:\a.exe
from Windows Powershell terminalExpected Behavior
5 and 6 end in the same duration
Actual Behavior
6 is twice slower than 5.
Diagnostic Logs
No response
related #8943
The text was updated successfully, but these errors were encountered: