5 ms·
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,
by ncmncm 8y ago
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, reliably the same as non-hosted MSW, but is not subject to randomizing effects of manufacturers' drivers and MS's historically poor buffer and process management.
If you want MSWin to manage the screen, it can provide a way for an underlying OS program to work in a window it provides, and connect UI and clipboard events back to it. But MSWin is not really so great at display management, either, so it might be better for the underlying OS to manage that, too, as is done with VMs on X today.
- maccio92 8y agoI always have difficulties with drivers on linux. Never on Windows. Until they fix that I cannot use anything other than windows as my base system. I don't care if linux handles things slightly better
- fartcannon 8y agoThere's nothing to fix. The devices are either open and a dev has decided to write his own, or the devices are closed and the drivers are provided by their respective creators. If it's the former, pay a dev, if it's the latter, use a different device.
- skaomatic 8y agoThere's nothing to fix. The fire is either of a type that may be extinguished and a trained firefighter decided to put this type of fire out for everyone, or the fire is unable to be extinguished as was the intention of the entity that started it. If it's the former, find the correct firefighter, if it's the latter, use a different fire.
- AnthonyMouse 8y agoThere's nothing to fix. The construction material is either of a type that does not spontaneously combust, and a carpenter can make you a fine chair out of it, or the material is the type to spontaneously combust, and if you choose to buy a chair made of that material you will soon find your pants are on fire. If it's the former, pay a contractor to build you a chair, or make one yourself. If it's the latter, use a different construction material.
- basementcat 8y agoThere is nothing to cure. The pathogen is either of a type that is curable, and a licensed medical professional can prepare a treatment regimen, or the pathogen will liquefy all of your internal organs within minutes, and if you choose to expose yourself to the latter pathogen, you will find yourself having a bad day very quickly. If it's the former, pay a licensed medical professional or read online forums and do it yourself. If it's the latter, contact your nearest funeral home.
- deleted 8y ago[deleted]
- throwawaa743892 8y agoOr! Hear me out here: I use Windows. Lock-in sucks, but it's real.
- ncmncm 8y agoYes, but you can run it in a VM. Microsoft could make it run in a container, instead, if they cared about your time. They might do it to make their Azure servers faster, but have little incentive to tell you.
- morning_gelato 8y agoDifficulties with drivers in terms of quality, availability or both? Regarding availability (and often quality) the only real/sustainable solution is for hardware manufacturers (who I think you are referring to by "they") to improve their Linux support.
- andyonthewings 8y ago> 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?
- itomato 8y agoApps certainly have been for a long time. IE6 was famously (in my parts) known for being perceivably faster under Wine.
- pushpop 8y agoIt 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.
- glitchc 8y agoI don’t believe your assertion. A quick check on the latest system-taxing application (aka a game), confirms the exact opposite. Even a cross-platform game, compiled natively for both OSes, runs faster on Windows in most cases. How do you square these observations with your assertion.
- mises 8y agoWhich game? I don't agree with the position of the person to whom you are responding, but there's almost certainly much more optimization put into the Windows version.
- glitchc 8y agoWhy is “much more optimization” a limitation? What is preventing devs from optimizing the linux version? If the OS is more performant that should require less effort, no?
- mises 8y agoMy point is more that a game's performance is not necessarily a reliable way to measure relative performance of the OS. What game was it?
- morning_gelato 8y agoWindows absolutely dwarfs Linux when it comes to gaming market share. Game developers will factor in return on investment and therefore a proportional amount time will be spent on optimizing the Linux port.
- morning_gelato 8y agoGames really aren't a good benchmark for overall system performance as they are generally optimized for Windows and non-Windows ports often receive a lot less attention. Also, most games are primarily stressing one thing - the graphics stack - and not I/O, scheduling, memory management etc.
- gshulegaard 8y ago
- GordonS 8y ago> That way MSWin relies on the underlying OS to do things MSWin has proven to be just not very good at Could you expand on what some of these things are?
- ncmncm 8y agoFile operations. Corralling vendors to code reliable, non-crashy drivers. Input device event handling. Thread scheduling. I/O scheduling. Anything where tuning would have involved work by more than one product group.
- e12e 8y agoEven if your claim that running windows in a VM on hardware that have no Linux support, only windows support, is somehow feasible and faster... That kinda misses the point? Freebsd and windows have Linux binary support. I don't see why having a project catering to one of those would be "the wrong approach"? There's been some pretty successful efforts in helping games run under wine, as a "reverse" example.
- losvedir 8y ago> 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 I wanted to use) painlessly, then I'll have to give it another shot.
- zimbatm 8y agoThe 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 https://github.com/Microsoft/WSL/issues/873 To be clear, this is for a specific use-case. I don't believe that all applications will have similar performance profiles and that Linux wins over Windows in all of the cases like OP seems to suggest.
- swinglock 8y agoThe WSL filesystem. That says nothing about the question.
- wvenable 8y agoWindows supports multiple file systems; Microsoft could solve this by adding ext4 support directly into Windows and running WSL from a separate partition.
- ncmncm 8y agoNo, because you still suffer from Windows buffer management, Windows I/O scheduling, and Windows kernel-thread scheduling. It has been tried.
- asveikau 8y agoIt'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...
- ACE_Recliner 8y agoThe conceptual foundation to do something like this already exists in the form of Drawbridge and Hyper-V, there just needs to be a political will within Microsoft to make it happen.
- rabi_penguin 8y agoI 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.
- JohnFen 8y agoI don't know if it's the wrong direction or not. I suppose it depends on what your goals are. All I can say is that I don't see the need for any of it.
- sys_64738 8y agoI can run three displays natively on my Win 10 machine pretty effectively on a small Dell laptop. Linux is pretty poor at multi-screen support from my experience although it might have improved. As I have a corporate laptop running Win10 I can't install anything except use Cygwin or WSL. It doesn't allow me to run a Linux VM as it has networking issues upon installing Hyper-V or Virtualbox. So I'm stuck with WSL on Win 10 and appreciate the efforts of others to get X apps running on it.
- crispinb 8y agoIt works well enough for me. I have no great love for Windows, but then the only available alternatives have proven worse for me (both osx & linux each used f/t for several years). There are no good desktop os's in 2019, so they're all 'wrong'. Being 'wrong' therefore cannot be a good argument against their use. All we can do is find the best compromise for our purposes.