Live data from Hacker News

Initial Impressions of WSL 2

daverupert.com

91–100 of 233 posts

Re: Initial Impressions of WSL 2

#91
post #80

Big fan of WSL, get power of Windows and the full power of Linux combined. Can easily switch between gaming and development.

One caveat is that WSL2 needs Hyper-V, and many anti-cheats won't work with it (many CS:GO anticheats, I think it will be true for many multiplayer shooters).

Really? I've been playing for years now with Hyper-V enabled and hasn't been an issue.

I think you can't play inside a VM (like Hyper-V), which is a different story.

Re: Initial Impressions of WSL 2

#93
I have been using a VM on a Windows 10 and I have to say, it's been great! On a dual monitor setup, I have the VM on one screen and have a windows browser on the other, and the performance is very much close to 1:1. I don't think I would ever need to install a dual boot system now.

Re: Initial Impressions of WSL 2

#94
post #34

Earlier quoted context omitted.

No, but the good news is you can literally run Arch, Debian and Fedora on the same machine with shared files.

You could already do that with WSL1. Source: I have Arch and Ubuntu on WSL1. Those didn't change. Other things did.

WSL1 managed to corrupt SQLite dbs. Which is really annoying, and does not happen with WSL2.

My (casual, not work) use relies heavily on Nix, which is built around a centralized SQLite file. I did not enjoy that experience.

Re: Initial Impressions of WSL 2

#95

Big fan of WSL, get power of Windows and the full power of Linux combined. Can easily switch between gaming and development.

I've been using Steam on (Debian) Linux for quite a while and haven't really run into issues. I mostly play Dota 2 and Stellaris, which come Linux native, but also a bunch of other stuff including quite a few Windows native / Proton-"translated" games.

All this on AMD graphics with standard open source drivers btw, did not install either proprietary drivers or "special" open source versions.

(Card is this in case anyone cares:)

  0c:00.0 VGA … [AMD/ATI] Baffin [Radeon RX 550 640SP / RX 560/560X] (rev cf)
  OpenGL renderer string: Radeon RX 560 Series (POLARIS11, DRM 3.36.0, 5.6.2+, LLVM 9.0.1)
  OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.0.2
Then again for lack of a Windows installation I wouldn't know if I'm losing performance. It is however what I expect of the card's age and price segment (mediocre in both I'd say.)

Re: Initial Impressions of WSL 2

#96
post #86

Earlier quoted context omitted.

> I thought it was a thin translation layer between the kernels? WSL1 was like that, but it was severely handicapped by NT filesystem performance, especially for small files or metadata operations. There are a lot of small operations that are more than 2 orders of magnitude slower on Windows than on Linux, and a lot of Linux software just expects them to be fast, so WSL1 is not a great experience for a lot of stuff.

Personally I never had a problem with filesystem performance on WSL 1. I certainly don't think it was so bad that the whole thing needed to be scrapped in favor of a virtual machine.

Try doing git filter-branch. ;)

Re: Initial Impressions of WSL 2

#97

> Those pain points were solved in WSL 2 by embedding a whole first-party Linux VM inside Windows Wait so now it's just a regular Linux virtual machine? I thought it was a thin translation layer between the kernels? Kinda not as impressive now.

Yeah don't get too excited, it's just a VM. The disk usage doesn't automatically shrink with usage, and I'm not sure if RAM does either (interested in knowing if they've done anything related to that), which were what I found most useful about WSL1. I wish they'd instead put all their effort from this into legitimately fixing the issues in WSL1 instead.

> it's just a VM. The disk usage doesn't automatically shrink with usage

That's possible in theory, I've done it with libvirt/KVM. You have to enable discard on all filesystems and swap on the guest, use a virtual disk interface which can pass the discard requests to the host, and configure the host to release the corresponding blocks on a discard request. I don't know if WSL2 comes configured to do all that, but if not, it shouldn't be too hard for them to add this functionality.

Re: Initial Impressions of WSL 2

#98
post #84

Earlier quoted context omitted.

Note that the performance didn't really have anything to do with NTFS. This is trivial to prove if you just try a different filesystem.

To be fair, I read that as "NT (kernel) filesystem performance" and didn't assume it meant NT File System as in NTFS.

I also specifically worded it as "note that" to preempt this comment about the slight ambiguity, but I guess that didn't really help...

But in any case, I think the component you want to refer to in that case it the "I/O subsystem".

Re: Initial Impressions of WSL 2

#99
post #94

Earlier quoted context omitted.

You could already do that with WSL1. Source: I have Arch and Ubuntu on WSL1. Those didn't change. Other things did.

WSL1 managed to corrupt SQLite dbs. Which is really annoying, and does not happen with WSL2. My (casual, not work) use relies heavily on Nix, which is built around a centralized SQLite file. I did not enjoy that experience.

Wow, that's amazing/terrible. Would you have a link to a repro?

Re: Initial Impressions of WSL 2

#100
post #47
post #40

Earlier quoted context omitted.

Developing linux software on windows is actually pretty painful. Actually, running any linux software in general such as middleman or Jekyll is pretty painful on Windows- I recently had a horrible time trying to get git-crypt working for a colleague of mine who was using Windows.. There's a lot of value in being able to just run "linux" (with bash, grep, sed, awk, gcc, python) while being able to access your normal f…

Why not just move to Linux?

The GUI isn't as great as Windows and it's often buggy. Let's face it.
Post reply on HN