5 ms·
Oh my... Just checked my WSL2 version and it says WSL version: 1.2.5.0. Always thought it was version 2, but now I guess it's more about option 1 and 2... WSL
by madspindel 3y ago
Oh my... Just checked my WSL2 version and it says WSL version: 1.2.5.0. Always thought it was version 2, but now I guess it's more about option 1 and 2...
WSL (option 1) is pretty dead I believe, so this should be WSL2 version 1.3.10...
- 8n4vidtmkvmk 3y agoI still run WSL1. Perf on WSL2 was still horrible if your files are under Windows last I checked.
- sterlind 3y agobut filesystem perf on WSL1 is horrible in general. Windows is much, much slower at touching a bunch of files than Linux, due to the filesystem filter driver architecture and NT's deep understanding of paths, the way NT does file locking, etc. it's night and day if you ever have to deal with something like a giant npm project or a huge git repo. WSL2 is much faster on files that live inside it. I haven't found the 9P bridge to Windows to be too slow. honestly, I don't know why they couldn't bypass the FS filter stack or something for WSL1. (disclaimer: I work at MS, but not on WSL.)
- WorldMaker 3y agoThey said Dev Drive supports bypassing most of the FS filter stack, and it somewhat makes sense that it is easier to bypass the stack at the drive level than the folder level (WSL1 was using folders deep in %LocalAppData%). I'm very curious what WSL1 performance sitting on top of Dev Drive will be like. I have no idea yet if that's even an expected to be supported scenario. (In further curiosity with a few quick searches: no direct mention of it in the Dev Home repo, the only WSL-related issues they seem to be currently tracking are installing Repos to WSL paths from Dev Home. I don't see anything on automating installing WSL[1] distros to Dev Drive.)
- 8n4vidtmkvmk 3y agoI did try WSL2 on a new machine, and it does indeed seem pretty fast even on this dinky laptop, but then working on those files with JetBrains tools (PhpStorm) is a bit of an issue. It looks like they've added some support for it now, but I think it's running the IDE under Linux and then forwarding the GUI or I don't know what, but it adds a bit of latency on the IDE side instead. So I lose one way or the other.
- kastden 3y agoOn a fresh install I first setup WSL1, duplicated it and then converted the other one to WSL2. I don't really use the WSL1 one much, but it's nice whenever I need touch files "in Windows".
- comfypotato 3y agoMicrosoft's formal stance is still that WSL1 won't be deprecated. I use it every day!
- sebazzz 3y agoYes yes, just like ".NET Framework is a mature application platform" or any other vague terms they like to speak out just not to explicitly say "We will only do security fixes because we're obliged by the Windows Support cycle but really don't like to work on this anymore".
- comfypotato 3y agoGood enough for me. It works well enough for editing Windows-side files which is all I need WSL1 for.
- junon 3y agoI'm still on 1, but admittedly this is the last time I ever set something up on WSL. VMs are still superior, at least for me.
- WorldMaker 3y agoWSL2 is basically the VM solution (the distro and unix files are installed into a VHD just like a VM; the "real" Linux kernel runs directly on top of Hyper-V, the Windows hypervisor, as opposed to WS1 having the NT Kernel acting like Linux), so it may be a "best of both worlds" for you if you were to try "upgrading" your WSL to it.
- junon 3y agoI tried, it didn't work. The upgrade hangs and then never completes. Known issue apparently. Plus git on WSL2 has had a lot of issues in the past to make me not want to upgrade. Also worth mentioning that using portable VM disks is easier with other softwares than it is with WSL.
- oefrha 3y agoI used WSL2 for a long time and it was okay, but one day out of the blue CIFS (SMB) slowed to a crawl, like 10Mbps or something on a 1Gbps LAN connection. Downgraded to WSL1 and the problem went away, have been on 1 since. At least they made it easy to downgrade.
- fodkodrasz 3y agoWas about to ask you how do you know the installed version, but wow, just updated WSL, and this new version also brought the support for the `--version` command line switch, so finally I can also check which version I have installed!