Live data from Hacker News

Pengwin – A Linux Distro Optimized for WSL Based on Debian

github.com

21–30 of 93 posts

Re: Pengwin – A Linux Distro Optimized for WSL Based on Debian

#22
post #4

This is fundamentally the wrong direction to go. The clue is that MSWin running in a VM on Linux is faster than on hardware. The way forward is to boot Linux, or even something else, to manage hardware, memory, and filesystems, and cut down MSWin to run in a container on it. That way MSWin relies on the underlying OS to do things MSWin has proven to be just not very good at. MSWin runs programs written for it, reliab…

> MSWin running in a VM on Linux is faster than on hardware. That's funny. I didn't know that. Any data source you can share with me?

It seems a highly counterintuitive thing to say but I have anacdotelly noticed the same when running XP bare metal vs inside a VM running in Linux on the same hardware. Around that era I have hard others notice the same on their PCs as well - and that’s where the origins of this meme comes from. I didn’t spend any time investigating why Windows might perform differently since running the BM was just to save dual booting rather than any performance related reasons however I think it was primarily around file system operations where the difference was noticeable (this was before SSDs were ubiquitous).

Microsoft have invested considerable effort on improving the NT subsystem in subsequent releases of Windows so I would be surprised if that meme was still true. Plus SSDs likely even the playing field too.

Re: Pengwin – A Linux Distro Optimized for WSL Based on Debian

#23
post #18

Earlier quoted context omitted.

> The clue is that MSWin running in a VM on Linux is faster than on hardware. I'll join the fray in expressing skepticism here. Source? Anyway, I think this WSL distro is pretty cool. I've set up WSL on my Windows computer for kicks and while it was neat I never quite got it to work for the rust development and environment I wanted. I ended up just doing it in Windows. But if this sets up rust and VS Code (the editor…

The filesystem is notably slower on Windows. It's easy to test it out for yourself; clone any big repo (eg: linux) in WSL and run `git status`. The Microsoft engineers have already done a lot of heroic efforts with WSL. The issue seems to be more inherent to the design and really hard to solve. ref: https://github.com/Microsoft/WSL/issues/873 To be clear, this is for a specific use-case. I don't believe that all appl…

Windows supports multiple file systems; Microsoft could solve this by adding ext4 support directly into Windows and running WSL from a separate partition.

Re: Pengwin – A Linux Distro Optimized for WSL Based on Debian

#24
Interesting:

“Grants/Bounties

If you have an idea for a new feature you would like to see implemented in Pengwin and can implement it yourself given the funding, we are now accepting grant/bounty proposals. Grants are currently available for $50-$500 USD based on complexity.”

The upper limit is quite demotivating, from my point of view.

Re: Pengwin – A Linux Distro Optimized for WSL Based on Debian

#25
post #18

Earlier quoted context omitted.

> The clue is that MSWin running in a VM on Linux is faster than on hardware. I'll join the fray in expressing skepticism here. Source? Anyway, I think this WSL distro is pretty cool. I've set up WSL on my Windows computer for kicks and while it was neat I never quite got it to work for the rust development and environment I wanted. I ended up just doing it in Windows. But if this sets up rust and VS Code (the editor…

The filesystem is notably slower on Windows. It's easy to test it out for yourself; clone any big repo (eg: linux) in WSL and run `git status`. The Microsoft engineers have already done a lot of heroic efforts with WSL. The issue seems to be more inherent to the design and really hard to solve. ref: https://github.com/Microsoft/WSL/issues/873 To be clear, this is for a specific use-case. I don't believe that all appl…

It's definitely true in my experience that disk operations are slower in Windows. Folks on this thread are getting flack for poor comparisons (IMO Windows is worse at lots of small files), but even when you remove that, and say, look at mostly portable code that deals with a single file, as I have seen using sqlite as an example, it does worse.

Not to mention Windows has built in antivirus reacting to all your filesystem activity by default...

Re: Pengwin – A Linux Distro Optimized for WSL Based on Debian

#27
post #4

This is fundamentally the wrong direction to go. The clue is that MSWin running in a VM on Linux is faster than on hardware. The way forward is to boot Linux, or even something else, to manage hardware, memory, and filesystems, and cut down MSWin to run in a container on it. That way MSWin relies on the underlying OS to do things MSWin has proven to be just not very good at. MSWin runs programs written for it, reliab…

I think you'd want to qualify just which parts of which particular Windows applications running in a VM on Linux are faster. I see you refer to the filesystem driver, and that makes sense to me. However, if it's anything related to pro audio or 3D applications native to Windows, it would not square with my experience. Stability is also an important word to bring up here -- I haven't had a bad experience with WINE on Linux if it works. If it doesn't, I get odd behavior and crashing.

Re: Pengwin – A Linux Distro Optimized for WSL Based on Debian

#28
Is WSL multithreaded? I love the ease of use that WSL gives, but it seems slow to cygwin on disk access. I think this is planned in a future fox by making the WSL directory to the disk instead of in a container file. I went back to cygwin for faster speed of scripts processing files.

Re: Pengwin – A Linux Distro Optimized for WSL Based on Debian

#29

Is WSL multithreaded? I love the ease of use that WSL gives, but it seems slow to cygwin on disk access. I think this is planned in a future fox by making the WSL directory to the disk instead of in a container file. I went back to cygwin for faster speed of scripts processing files.

It's only slow at file IO, yeah.
Post reply on HN