WSL 2 is getting faster Windows file system access

31 pointsposted 5 hours ago
by haydenbarnes

17 Comments

avaer

2 minutes ago

Proton, Copilot, and literally this single issue are what pushed people to Linux. If I were in charge there would be a team devoted to fixing this a decade ago.

WSL singlehandedly stemmed much of tide of developers moving away from Windows, but WSL native filesystem performance gave devs that magical experience when they boot into Linux the first time and see that the filesystem doesn't have to be ass. There's always been hacks around this, but for many devs the easiest hack was to ditch Windows.

They should have moved heaven to fix this on day one, there's really no engineering excuse. Linux is open source.

phowat

7 minutes ago

Tangentially , I was a heavy used of wsl and moved to linux a few months ago and LLMs made most of the downsides of using linux as a desktop go away for me. I chatted with claude about the migration to find the best distro, decided on Fedora. After the install I asked everything I wanted to configured and got straight answers. In 3 or 4 hours I had an even more comfortable experience than I had on windows. AI made the annoying parts of trying to figure out how to edit all the config files to have linux behave the way you want very easy. I also had claude code write a bunch of scripts that I could have done but would probably never bring myself to actually do it . WHen you have a coding agent readily available , having an open source desktop environment makes a lot more sense. I encourage everyone to try it.

hgoel

3 minutes ago

I did this too, made switching my desktop to Linux so much smoother. I have a Windows laptop for my Windows needs and most of my gaming is fine on the Steam Deck, so I realized I didn't need to always boot into Windows only to use WSL.

avadodin

an hour ago

If it is as good of an improvement as the first major update, it will be hard to tell from native.

Hopefully, they will just push it out to everyone asap. We make heavy use of symlinks into Windows drives.

thesis

17 minutes ago

Moved to mac about 7 years ago because of horrible WSL file system speed was.

nozzlegear

14 minutes ago

Same here, though I went to Linux first for several years. WSL file speeds, especially when running npm install, were the impetus that ultimately got me to switch off of Windows.

weird-eye-issue

11 minutes ago

Sounds like you were just doing it wrong

Either you run npm install from Windows if you are operating on the Windows file system or you run it on WSL if you are operating on the WSL file system both cases will be very fast

hparadiz

7 minutes ago

The entire Windows operating system is doing it wrong. Seriously who daily drives windows these days. lol.

weird-eye-issue

14 minutes ago

You could just move your files to the WSL file system

hparadiz

8 minutes ago

That kind of defeats the entire purpose of them being accessible from the rest of the system.

weird-eye-issue

2 minutes ago

You can access them from the rest of the system. For normal usage the performance is completely acceptable but for development tasks it matters.

chris_money202

41 minutes ago

They are undoubtly doing this because so many users operate out of /mnt/c with zero clue of that implication.

alberth

23 minutes ago

Would you mind elaborating (for those of us uninformed)

weird-eye-issue

12 minutes ago

One example is that if you have a node modules folder on Windows and you try to delete it from WSL it can take 10 plus minutes whereas if you deleted it directly in Windows it would have just taken a few seconds

Also if you try running Next js from files on Windows from WSL it takes minutes for each page to compile to the point that any local development is impossible so you would have to either run the Next JS server on Windows or move the files to WSL

yakz

18 minutes ago

It's difficult to overstate how horrible the performance is.

tonymet

12 minutes ago

WSL2 is a VM based on a Windows virtual disk file (VHD). inside that VHD IO is quite fast , a couple degrees worse than native. /mnt/c is how you access your windows files, but it's slow like NFS (socket based). anything needing high IOPS will be dog slow e.g. compiles, file scanning, etc.

the rule of thumb without the newest features is to copy work to/from /mnt/c into $HOME as needed.

themeiguoren

2 hours ago

I can’t find any benchmarks on this, anyone have a sense of the speedup that can be expected here?

And for what it’s worth, that version isn’t available yet when I try to update WSL.