r/linuxquestions • u/throwaway27727394927 • Mar 05 '21
Extreme performance difference between linux and windows
This isn't your generic "hoo boy my chrome opens 2 seconds faster i love linux!". Windows was absolutely horrible on my desktop. I had constant bugs, issues, and BSOD's. As if I were on a Pentium or something. I put up with it because I got the CPU+mobo combo for ~$140 (a total steal) so I thought it was because I didn't go with a better CPU. I literally just assumed constant BSOD's, freezes, lockups, etc were just something you put up with, unless you spent a lot more money.
I have a ryzen 5 1600 OC'd to 3.85ghz, 16GB of ram@3000mhz, sata SSD, nvidia GPU. I have no idea why the performance difference is so extreme. I haven't had to forcibly reboot my machine ever in the 6 months I've used it, but it was weekly with Windows. This post is not at all meant to shit on Windows, but it's literally day and night. I was on LTSC too, so it wasn't background garbage processes AFAIK. And I'm currently using KDE Neon, which is considered less stable than something like Ubuntu (despite basing on the latest LTS). Does anyone know any configuration that could cause such an absolute difference in performance, or some ridiculous shortcut linux takes with CPU scheduling or something? Because I was waiting 5-10 minutes after boot for the windows machine to "warm up" basically, and now it's ~45 seconds from button to desktop...
5
u/bigfootpl Mar 05 '21
I would bet on driver problem. Did you try reinstaling windows and trying drivers one by one, when you had problems?
You also mentioned OC on CPU, this could be the case, you tried returning to stock and chceck it? Linux and windows handles cpu very diferently and OC seting that run on linux potentialy can not be stable on windows and vice versa.
3
u/throwaway27727394927 Mar 06 '21
It was unstable before OC as well. Not sure if it destabilized it more though
4
Mar 06 '21
Did you try reinstaling windows
That's one phrase that I didn't expect reading on /r/linuxquestions
2
5
u/Shlocko Mar 05 '21
Honest question, have you tried running a fresh windows install? I dislike windows as much as the next guy, but that isn't normal behavior, that's a system issue. Almost certainly a software issue, at that. A fresh install probably would've fixed most of that behavior, if I had to guess. That said, I wouldn't even bother, linux is just a better option anyways, in my experience.
4
u/throwaway27727394927 Mar 06 '21
Been through ~3 reinstallations, 2 LTSC, 1 regular, all same reliability issues. Though it did get better for a few weeks, it always got just as bad. I don't install tons of crap, basically firefox, that's it.
3
u/aj0413 Mar 06 '21
Echoing others: this definitely sounds like user error rather than anything to do with Linux vs windows.
Linux, out of the box, just tends to be more graceful at making sure you can't screw things up.
Windows is dumb, but tries to be smart, which means you end up with weird behavior if your not totally sure what your plugging in and what drivers you need/use; letting windows "guess" what it should do rarely works in your favor
My main OS is windows; 99% of all problems I've had, over years, is bad driver/service related
1
u/throwaway27727394927 Mar 06 '21
Well, if it's user error, it's something I didn't do and not something I did: I reinstalled LTSC on my final straw a few months back, installed just GPU drivers and firefox (nothing else), and the issues arose. Though it happened only twice a week, it just locked up and didn't want to respond.
1
u/aj0413 Mar 06 '21
That what I mean, windows driver issues generally come about from leaving windows to its own devices; I have a routine of every few months, cleaning up my windows install and ensuring all my drivers are up to date straight from the manufacturer page(s)
2
u/throwaway27727394927 Mar 06 '21
Hm. You're right, if I ever switch back I'll definitely go through the paces of the right drivers, not from windows.
2
u/aj0413 Mar 06 '21
Yep, and you have to also keep an eye out for weird things likes Alienware gear auto installing the AW Command Center :/ damn thing was running in the background running a server and eating up 20-30% cpu on my 5950x
Edit:
Many hardware makers, ie Asus / Alienware, like to try and have little auto installers in their hardware to "help users with minimal impact" when many times that software is part of the problem
3
u/gingamann Mar 06 '21
The 2 biggest differences between win&ix given same ish variables on the same playing field etc.. that would cause such a contrast in performance..
the more bloated use of the windows registry, its ever expansion and it's utter abuse of virtual memory. -Vers the leaner approach Linux takes with the absence of a registry thus compartmentalizing and subsequently it's more efficient use of virtual memory. ....
the massive amount of backports that windows keeps open... That motherfucker is constantly phoning home.. not to say Linux doesnt make like E.T and phone home too, it does, but......., not in the same way. One of the more glaring examples of how they differ on this, is the windows forced update and how it is implemented. ---->Unless specific licenses are had or it's eol, it nearly impossible to suppress them.. & even when the os is surpressed in one of the ways I've mentioned above the various apps & things unrelated to the os can be downloaded without the user'd direct knowledge or interventions... A more specific example of this: The user opening a web browser to a brand new version of it without the user explicitly first downloading it and then allowing the new software to install.
Otherwise, drivers do matter.. the same os in different versions will have pretty massive performance gaps on the same hardware and that shit will really just come down to specific hardware driver compatibilities...
2
u/throwaway27727394927 Mar 06 '21
I think you're probably right. The combined bloated windows + driver issues. I only installed the GPU drivers so maybe I should have installed CPU / mobo drivers?
1
2
u/m1ss1ontomars2k4 Mar 05 '21
OC'd
Shoulda been the first thing you looked at.
1
u/throwaway27727394927 Mar 06 '21
Had the issues from before the OC, but maybe not as bad? this was a while ago.
2
u/Ponkers Mar 06 '21 edited Mar 06 '21
That wasn't my experience. In any way.
To be honest, this smells like either idiocy or bullshit.
0
u/throwaway27727394927 Mar 06 '21
I did nothing but install default windows, GPU drivers, and firefox. That's all I had, and it still locked up twice a week. It's probably some type of hardware issue that doesn't show itself in linux, but it's definitely not idiocy or bullshit. I know how to not install something.
1
u/Ponkers Mar 06 '21
It absolutely is idiocy if you think any of this is somehow indicative of a normal windows experience.
1
u/throwaway27727394927 Mar 06 '21
I.. don't think it's normal. That's why I asked if there was any egregious differences with linux that would cause such a difference that occurs only on windows.
35
u/aoeudhtns Mar 05 '21
I love Linux, and don't really care for Windows, but I don't think your experience is typical. Still - it's great you were able to wrest back control and use of your computer. Welcome.
I'm with /u/mysticalfruit - some bad driver issue, or some application got installed that messed with stuff it shouldn't have after you clicked "Yes" to letting it modify your system. Something like that. Nothing about your hardware sounds super exotic.
11
u/edman007 Mar 05 '21
If I had to guess, it's the result of easily abused Windows APIs. For example, Windows has something called file system filters. On Linux much of the features can be done differently, for example, inotify provides some of the functions that a filesystem filter does.
The difference is on Linux, you request access to filesystem events for particular things, and the kernel notifies you when it happens. On windows you write a filesystem filter, and every single filesystem syscall executes your program, before proceeding. Virus scanners use this a lot. The problem is a slow or poorly written application can dramatically slow down the entire system's file access.
Windows tends to have a lot of old APIs that are easily abused like that, but were easy to implement in the past. The APIs are kept for backwards compatibility, but lots of impacts happen if used wrong.
OP likely had something that abused his system installed, and I feel like those types of applications are common in windows, and not at all common in Linux.
1
u/g-gram Mar 06 '21
and to make matters worse, some of those bad apps... (Shovelware/crapware) come preinstalled on some cheap Windows PC's. It can make a system almost unusable right out of the box.
6
u/Yugen42 Mar 05 '21
Sounds like a Windows question rather than a Linux question. There are many many many possible factors that could be causing this. Not trying to defend Windows, but you were experiencing abnormal behaviour that was caused by some defect or misconfiguration. First thing I would check is if your OC is actually stable. Linux might just handle memory corruption in your specific case more gracefully.
Linux can be quite a bit faster than Windows depending on the task, but on modern hardware and regular desktop use, and without specifically optimizing either, both should be quite close.
4
u/Nibodhika Mar 06 '21
Linux does uses less resources, but your hardware is too good to have trouble running Windows. There's one important detail I didn't see anyone mention. You said an over clocked CPU, it can be that you over locked it a bit too much, Windows is trash but shouldn't BSOD that often, but it does so very frequently with a CPU over locked above capacity. Linux is a bit more tolerable of errors, and you'll get some corruptions but the system will keep on going. That would be my bet, if you still have windows try to revert the overclock and see how it goes.
14
Mar 05 '21 edited Mar 05 '21
Buddy shit on windows all you want here ain’t nobody going to judge you 😂 Linux uses less resources( well depending on a few factors) and everything is done differently. My system was using 2gb of ram running KDE and it’s not a huge deal because I have 8gb of ram and soon to be 16 but being able to make your system use less resources is so nice and whenever you update Linux you don’t have to restart right away you can continue on with your day and worry about restarting later. Linux is in my opinion the most amazing thing to happen lmao. Windows can suck a dick. Lol
3
u/Arnas_Z Mar 05 '21
Interesting. My KDE Plasma setup use only about 700MB at idle. I also have 8GB RAM available.
2
Mar 05 '21
Yeah but I use a lot of desktop effects lol and also if you recommend anything to bring it down just let me know :) I don’t mess with that stuff too often so
2
u/Arnas_Z Mar 05 '21
Oh, that may be why. I just use Arch Linux, and a pretty basic KDE Plasma setup. I like the stock Breeze theme, so I just switch to Breeze Dark, and keep everything else mostly stock. The Windows XP-style taskbar is what I want anyway.
1
Mar 05 '21
I also use arch check my profile lmao
I have a lot I still have to confirm and get rid of like start up apps and what not. I use arch on my desktop and figured I’d put it on my notebook as well since I barely use my desktop anymore
1
0
u/Human_by_choice Mar 06 '21
Surprised to hear a Linux KDE system using as much as 50% of a Windows 10 install, thought it would be less actually :D
Or windows 10 taking twice as much, depending on how you put it
0
-3
6
Mar 05 '21
[removed] — view removed comment
3
Mar 05 '21
Right now I’m using 1 gb I killed a bunch of start up applications and killed a lot of desktop effects I didn’t need. :)
3
Mar 05 '21
[removed] — view removed comment
3
Mar 05 '21
Yeah I’m upgrading to 16 soon once I find a good pair for my ho notebook. But 8 is still good enough I just am starting to use blender and more 3D printing stuff so I’d like more ram haha.
2
Mar 05 '21
[removed] — view removed comment
4
Mar 05 '21
Eww a Mac?
3
Mar 05 '21
[removed] — view removed comment
3
Mar 05 '21
I can build a 12 core super computers for less money then I could buy an overpriced Mac with shitty specs. Lmao.
3
3
u/aqezz Mar 05 '21
2
Mar 05 '21
[removed] — view removed comment
3
u/aqezz Mar 05 '21
Nah just arch with i3 and basically nothing else running. Just x, network manager, and Bluetooth.
3
u/skreak Mar 05 '21
I have a 3.4ghz Core i4-4670k, 16gb of ram and a 500gb Samsung Pro SSD in my Windows 10 workstation. Power button to login is about 7 seconds. Log in is instant and I can immediately open chrome to the homepage. I'm also a Linux admin by trade. My windows desktop is completely 100% stable, I don't think I've had a BSOD once. Your experience is not typical and something is definitely wrong, mostly like a combination of firmware and drivers. In my experience overclocking your CPU or Ram is a trade-off between performance and stability. Does Linux do some things just "better" than windows, in some cases yes but that's all personal opinion. I like the way Linux handles it's file-cache in memory system and swap system better. I like Windows event log better than the myriad of logging options in linux, tho systemd tries to at least compete with journalctl. But I don't pretend to be a windows admin, i honestly haven't been a windows admin since the XP/Win2000 days.
2
Mar 05 '21
I wouldn’t be doing Microsoft customer service’s job for them. This may be an exotic issue with drivers the registry the COM objects... but I don’t think that it’s much of a step up from saying Windows is badly designed with some good elements. It’s an exotic bug, yes, but the reason why windows is more prone to those is part of why Windows = bad is such a common trope.
2
u/Poddster Mar 05 '21
If you had those problems on Windows I'm surprised you don't have them on Linux. It sounds like a hardware problem, especially if you're over clocking.
2
Mar 05 '21
Oh.. I thought this was a question :D I have a pile of ideas of how to troubleshoot. I guess you are happy then?
My personal experience has been:
Laptop uses less ram, is more idle and thereby fan is off, more battery life - in some cases more than 100%
Desktop uses less ram, GPU is idle and thereby silent
Mediacentre is silent
Multiple VMs on proxmox and they are cool and quiet
Tried to install Windows on a laptop I was trying to sell, fans spun up instantly, battery life tanked so did performance. Everything was bad and I was afraid the buyer would be furious. However, he was used "I love windows". So I guess everything worked out fine. Tried to mention Linux and he was like "yeah lol, nobody uses linux, lol!"
I guess it's all about getting the right tool for the job.
2
Mar 06 '21
Been using windows 10 for some years on multiple devices, the only issue i had was this week with ethernet breaking often. Had to reformat, the issue was related to my developer preview of windows. When i hear people compain about multiple bsod i call bullshit. W10 has come a long way
2
2
u/jeedaiian1 Mar 06 '21
I would reinstall windows and grab latest drivers from the mobo and nvidia websites.
2
u/TechnoConserve Mar 06 '21
I love linux but I have similar specs for my Windows 10 PC and it's very stable so I wouldn't say it's all Windows fault in your case.
2
Mar 05 '21
100% my experience as well. I went back to Windows several times for compatibility reasons. Came back to Linux every time. Now I just use a VM or xfreerdp in to a work machine if I have to.
Nearly everything on Windows was designed for someone else's benefit. They want to sell you something, or add your usage stats to their dataset. They don't give a shit whether you want to see their logo every time you start your computer. You're going to see it regardless, and you'll wait for whatever it's doing, even though it's just a keyboard config program that you only use once every 3 months.
There's a huge difference when the software is actually designed for the user's benefit. And that's generally what happens when it's open source. Because the users will make the changes they want, and that benefits everyone.
1
u/h0bb3z Mar 05 '21
Counterintuitively, it sounds like Windows may be more sensitive to the tuning you've done to increase performance out of the hardware. Generally there's more tuning utilities and testing done on Windows than on Linux, but I suspect the state of drivers, etc. in Windows may be less tolerant of things than in Linux.
1
u/sangolossyfon Mar 05 '21
Yes! I feel like some distress like Ubuntu though are just pretty close to windows. They have stuff like the snap store and whatnot that reminds me of it. I tend to favor the older distorts where you have to type everything out with a simple desktop.
1
1
u/tvmc01 Mar 05 '21
I had the same issue but it was because some incompatibility with my ram i have the very same cpu and ram than you. My solution was i overclocked my ram. But yeah your probkem could be completely different!
1
u/unruled77 Mar 06 '21
Idk, i bought the Chelsea’s windows laptop available... $200 new. Ram like shit. But manjaro with kde plasmas, it’s just the trackpad that’s shit now lol
1
u/BloodyIron Mar 06 '21
This sounds like the majority of your issues were drivers. As a SME in both Windows and Linux (over 15 years each), quite frankly, the driver ecosystem in Windows is a fucking joke and nightmare at the same time. Linux, I only ever have to install drivers for obscure printers, and generally nothing else. I have never had a BSOD due to a bad "stable release" version of a driver in Linux, but fuck me if WHQL drivers DO NOT blue screen. The instability in the driver stack and ecosystem in Windows is something Microsoft should be horribly embarrassed about, but they aren't, which is part of why it persists.
Additionally, your SXS and other Windows Updates aspects could have been horribly broken, further compounding the issue. It really doesn't take much for aspects of the Windows ecosystem, battling over resources, to bring the OS to its knees.
1
u/rw3iss Mar 06 '21
Yeah, I'm not sure. I have windows and Ubuntu dual booted. Windows feels a but snappier, but Ubuntu gnome+x11 is known to be a little slow, though fine.
1
u/12emin34 Mar 06 '21
Try something like Xfce and your computer will start flying lol
2
u/rw3iss Mar 06 '21
Yeah, I know, but I do enjoy some of Ubuntu/gnomes conveniences, and it's speedy enough. I do hope to try out arch and maybe other desktop managers soon enough.
1
u/sunesis311 Mar 06 '21
I'd put it down to your power settings in Windows. Did you install the AMD chipset utility? It has additional power profiles for Ryzen, which need to be selected once installed (it is by default).
Linux's ondemand CPU governor works the same, however, you can eke out a tad more performance on Linux by using a Zen or CK enabled kernel, preferably optimized for the Zen architecture.
1
u/Particular-Coyote-38 Mar 06 '21
Went full-time Linux two years ago. Haven't needed windows for anything. Everything I want or need can be ran on Linux now and it runs better in my experience.
1
u/marozsas Mar 06 '21
I'm responsible for a hundred windows desktop and the behavior you described is absolutely normal , at the least it is my experience.
I don't bother to fix them, just reinstall windows and it's done. The users are instructed to not leave important files on C:, only to save on file server or google drive. Our email is google too, so there's nothing to backup or restore. Easy.
My point is that is very common to a windows machine starting be slow after a half of a year and after that only a fresh reinstall to return it to use condition.
Even "restauration points" don't work. I mean, you apply a very early restoration point , but it's slowness continue. A disk image would work if our base was homogeneous, but it isn't.
The users are regular users, not admin, so it's not related to install a bunch of programs. Our antivirus is the corporate version of trend micro, so, not a virus issue either.
I believe it's broken by design.
1
u/salomaogladstone Mar 05 '21 edited Mar 05 '21
3 reasons why I've ditched Windows:
W10 overhead. It's obviously a crappy Windows interface running on top of a so-so Windows interface; no work is done while I wait the whole shebang to do something.
Nearly impossible to manage at home. Windows runs fine on my (not leading-edge) office machine as it's very well maintained by corporate admin (but not even that can deliver us from the dreaded "stop everything and wait while the system is updated" screen).
Antivirus. Additional periodical cost and absolutely increasing overhead for relatively doubtful benefits.
I really miss ZTreeWin (can't find decent workalikes for Linux), and now and then I find some LibreOffice function is sorely lacking compared to MS-Office (and, worst, it keeps so for years). Nothing worth going back to Windows, though.
4
u/dextersgenius Mar 05 '21
Have you checked out YTree? It's basically a Linux clone of XTree.
As for Office, I'd highly recommend checking out OnlyOffice - it has much better compatibility with MS Office file formats compared to LibreOffice.
1
u/salomaogladstone Mar 06 '21
I've tried YTree for a while. Maybe I'm stuck with an old version, but it keeps crashing and crashing. Ironically, ZTreeWin on a Windows VM could do a better job accessing Linux filesystems (as long as size and complexity of contemporary drives remain merely manageable). I've never had serious LibreOffice compatibility issues (few files make use of complex features, anyway). At times LibreOffice Writer diverges from MS Word on some book-length formatting, but that's it; they do similar jobs by different ways. Yet LO still lags behind Word (even a half-ancient version of it) on signature printing and lenghty/complex search-and-replace jobs.
2
u/Human_by_choice Mar 06 '21
Additional periodical cost
Free alternatives and general security has come a long way since 2004
1
u/closetnerd5 Mar 05 '21
I put Linux on a laptop i5 I bought back in ‘07, that thing ran like it just came out of the factory. There was absolutely no hesitation in any speed. Windows is absolute garbage. If it wasn’t so tied to the current structure of society I would’ve been done with it years ago.
1
1
Mar 05 '21
I dualboot windows and Linux, and occasionally I have to boot into Windows to do some work (mostly using Zoom). The differences I notice aren't quite as drastic as yours, but they are definitely noticeable.
Windows just feels less snappier and more unwilling than Linux. It's like Windows forgets that I am using an SSD and have enough RAM to have 40+ tabs open in FF, and enough CPU power to compile Qt5 while writing some python code in VSCode, and enjoying Spotify at the same time. These things are all possible in Linux no problem and I will only be pushing just under 20GB of RAM, but on Windows, forget about it. This workflow will be impossible to accomplish without some window freezing or everything lagging like a bad internet connection.
The truth is, I am only able to make use of the full potential of my laptop with Linux, than I am able to do with Windows. Windows comes with too much baggage out of the box, and Microsoft makes it difficult to empty that bag, so you are forced to live with it.
0
Mar 06 '21
Its a mix of a few things:
Linux is developed by thousands of people around the world, who are constantly innovating to improve performance.
Windows on the other hand has been more or less abandon by Microsoft, even going as far to disbanded the core Windows development team, leaving the office guys to manage it.
Even if it hadn't been dropped on the office team, it utilizes a shit ton of C# instead of a lower level language like C++ or C, which just slows shit down more.
Windows has to keep 100% software compatibility all the way back to 16 bit DOS. And they maintain most of the drivers and system components, whereas Linux has all of its system components developed by separate groups, often with one or more projects that can be used in place of another.
2
u/Human_by_choice Mar 06 '21
even going as far to disbanded the core Windows development team
Do you have any reading material on this? :)
1
Mar 07 '21
Sorry, I don't.
I don't remember where I heard it, but I'm fairly confident it was from a fairly reputable YouTube channel.
That being said, I probably should have looked up a source before repeating the claim online.
1
u/Human_by_choice Mar 07 '21
The only similar claim I've heard is that back in 2019 they let their beta development testing team let go and are instead using their telemetry data when developing patches/figuring out bugs.
0
u/kbielefe Mar 05 '21
I think a talented Windows admin could probably get your performance and stability up to par. All except the boot and shutdown time. You can't change a file on a Windows filesystem while it's in use, so Windows has to do certain things when the user isn't using the system.
0
u/stufforstuff Mar 05 '21
So one person is too stupid to setup windows correctly and the world is supposed to convert to Linux. Linux is a OS not a cult. And with equal hardware Linux and windows will perform pretty much the same. Just because you had problems doesn't mean everyone has problems.
0
16
Mar 05 '21
[removed] — view removed comment
1
Mar 06 '21
Seems very strange having all those problems on Windows 10
Not at all.
Windows justifies its bloat with "backward compatibility", but it's all just promises of compatibility.
I remember how my 10 years old EPSON scanner didn't work on Windows 8 or 10 at all, only Windows 7 and XP.
While on Linux I had to uncomment 1 line in the scanner config to enable support for older devices, and it works perfectly with a 15 years old device.
Edit: the scanner is probably even older, I just picked an age which I definitely remember.
1
Mar 05 '21
[removed] — view removed comment
4
u/stpaulgym Mar 05 '21
All they generally give are 8 year old windows forums with hundreds of replys and non of the fixes help.
-1
u/Poddster Mar 05 '21
Everyone: Help, I got a BSOD with error code that decodes to "bad ram", how do I fix?
"""Volunteer"""": please run CCleaner, do an antivirus scan and post your dxdiag.
Those forums are useless and full of humans fulfilling the roll of bots.
0
u/throwaway27727394927 Mar 05 '21
Nothing helpful. It was like the most common BSOD error. I don't remember their exact names though
104
u/mysticalfruit Mar 05 '21
I'm a linux zealot day in and day out, but as well rounded sysadmin, I do occasionally have to admin windows machines.
Honestly, this sounds like you had some ugly mix of drivers on windows. The weekly thing smells like something that was using up a finite windows kernel resource (such as allocating file handles and not releasing them, etc) until the NT kernel pooped itself.