WSL icon indicating copy to clipboard operation
WSL copied to clipboard

WSL2 is extremely slow at the file system frontier and it doesn't have any right to be.

Open pierrelgol opened this issue 11 months ago • 9 comments

Ok so it's 2025, we all have supercomputers that a few decades ago would have been used to compute state of the art physics problem, but apparently this is 2025 and we can't have things be fast. I don't understand how a trillion dollar company can fumble the bag this hard but here we are. So the issue is simple, if you dare to try to create a symlink in wsl2 to a windows repo (keep in mind this is a 200 bucks OS), and if you just do something like 'ls' it takes 30s. So here's my idea how about you try to use the hundreds of GIGAFLOPS of my computer and figure it out. it shouldn't take more than a few ms if even that. Mounting even exotic filesystem to a vm on linux has never been an issue to performance, so i don't really know what to say. Stop letting the summer intern maintain WSL.

pierrelgol avatar Dec 06 '25 09:12 pierrelgol

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How 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 script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions in Collect WSL logs for networking issues

Once completed please upload the output files to this GitHub issue.

See Collect WSL logs (recommended method).

If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.

github-actions[bot] avatar Dec 06 '25 09:12 github-actions[bot]

The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running.

Diagnostic information
.wslconfig found
Detected appx version: 2.6.2.0
Found no WSL traces in the logs

github-actions[bot] avatar Dec 06 '25 09:12 github-actions[bot]

shut up stupid bot not my fault your trace util doesn't capture the mediocrity of this implementation

pierrelgol avatar Dec 06 '25 10:12 pierrelgol

Image

There is no world that I want to live in where ls takes 140s to output something. This computer has an intel 13900hk 32gb of 6000mt/s ram an rtx 4090 gpu.

pierrelgol avatar Dec 06 '25 10:12 pierrelgol

Also remember this is the top of the line the peak of performance the top 10% of modern computing power I have. Imagine some poor guy running a dual core CPU with 8gb of ram, my man haven't opened an issue yet because he's still probably WAITING FOR LS TO FINISH

pierrelgol avatar Dec 06 '25 10:12 pierrelgol

Not sure if this helps or just tosses a whole can of gas on the fire, but this mess is exactly why I'm still clinging to WSL1 and dreading the day someone pries it out of my hands for WSL2. It's kind of ridiculous that in 2025, with hardware that should be chewing through workloads like gummy bears, WSL1 still feels snappier just because it talks to Windows files directly. Meanwhile, WSL2 is over there hauling everything through a VM and that painfully slow 9P filesystem, turning file-heavy tasks like git status, npm/yarn installs, symlinked repos, and webpack/vite/rails watchers into straight-up molasses. Toss in the extra VM networking overhead that somehow makes dev servers feel hungover, and yeah, it's a blast.

And honestly, I'm also perplexed as to why a company that owns Copilot and has a major stake in OpenAI can't get their supposedly galaxy-brain AI to figure this out. But hey, what do I know? I'm just a measly consumer.

djrobby avatar Dec 08 '25 03:12 djrobby

Work in the WSL file system and it's pretty fast.

jankapte avatar Dec 09 '25 11:12 jankapte

Who dares closing my issue ? Y'all fix won't fix incompetence by closing issues of people pointing at it

pierrelgol avatar Dec 10 '25 14:12 pierrelgol