News for hackers. Stuff that matters.
Re:Microsoft: Linux Is the Top Operating System on Azure Today by bayindirh on Monday July 22, 2024 @03:17PM (#41038621)
Windows as an OS is not as resilient as Linux when it comes to non-ideal operating conditions.

Plus, Linux is way lighter when compared to Windows. I can easily fit a stable and reliable server inside 512MB of RAM with a couple of services on top of it.

You can only dream this on Windows. CPU requirements has the same gap. Linux is way lighter.

Lastly, Linux can be tweaked from terminal completely. You need to do complex tricks to do the same in Windows.

Re:Microsoft: Linux Is the Top Operating System on Azure Today by CharlieDigital on Monday July 22, 2024 @03:53PM (#41039064)

    > Windows as an OS is not as resilient as Linux when it comes to non-ideal operating conditions.
I'd disagree with this statement on the grounds that Windows has to run across the most heterogenous set of hardware and configurations of any of the major OSes. That it doesn't fail more often is a testament to its resiliency. It supports the $200 junkbox your gran bought from Walmart to $20,000 enterprise racks and is expected to support all of those different workloads and insane variety of software that can be installed. In contrast, I'd make the case that the majority of Linux distros are running in large data centers like AWS, Azure, and GCP where there's a relatively high degree of homogeneity of the underlying hardware and the operating environment on top of that.

macOS, for example, operates a comparatively limited set of hardware platforms.

Re:Microsoft: Linux Is the Top Operating System on Azure Today by ffsm8 on Monday July 22, 2024 @04:03PM (#41039175)
For the record, Linux generally supports way more hardware. Things that have been deprecated for windows XP still work fine today on modern Linux.

And it runs on super underpowered boards too, on which windows doesn't even have any chance of booting

Re:Microsoft: Linux Is the Top Operating System on Azure Today by CharlieDigital on Monday July 22, 2024 @04:06PM (#41039229)
Does it though? For all of the use cases that a user might expect including device drivers like graphics cards, audio drivers, BT and wifi device drivers, print drivers, etc.? I'm sure a Linux distro could, but somewhere someone would have had to write a driver for it.

The Windows ecosystem supports a ridiculous variety of hardware.

Re:Microsoft: Linux Is the Top Operating System on Azure Today by bayindirh on Monday July 22, 2024 @04:15PM (#41039312)
> Does it though?

Yes it does. RedHat deprecates older drivers, but it's their problem. I connect too many stupid things to my Debian box, and they're enumerated and initialized instantly. These drivers get bug fixes too.

Re:Microsoft: Linux Is the Top Operating System on Azure Today by jenscow on Monday July 22, 2024 @05:45PM (#41040151)
The Windows ecosystem supports those devices (which are irrelevant to servers anyway). ie, it's the manufacturers that support Windows, rather than the OS supporting them.
Re:Microsoft: Linux Is the Top Operating System on Azure Today by adrian_b on Monday July 22, 2024 @06:19PM (#41040447)
That is a myth that I have also believed until I had to install Windows Enterprise IoT on various kinds of embedded computers.

The Windows that comes preinstalled with most computers truly "supports a ridiculous variety of hardware", but that happens because some professional has already spent some time with the installation of Windows together with all the device drivers provided by the vendors of the various weirder components included in that computer.

When I had to install Windows on embedded computers I had countless problems. I had to use frequently some complicated methods to give device drivers to the Windows installer at an early phase, because it was not able to boot on those computers. Their BIOS/UEFI lacked many legacy features, while Windows lacked drivers for some modern features, so they were mismatched.

Even after Windows was eventually installed, some of those computers had SSDs with low writing speeds, which made them unbelievably slow in Windows due to some stupid and useless Windows services, which by default were writing continuously the SSD and it was very difficult to disable them. Fortunately, that was Windows Enterprise, so it was possible to disable Windows Updates. On some of the computers with problematic SSDs, after the initial installation, booting required more than an hour, because that much was required every day to perform Windows Updates. Only disabling both Windows Updates and various indexing and swapping services has lowered the booting time to normal values.

On the other hand, Linux booted immediately on any of those computers, without having to do anything, and in comparison with Windows it was blindingly fast. Obviously, because those computers were intended to be used as embedded computers they did not have any of the peculiar peripheral devices that are usually included in laptops and for which their vendors provide neither documentation nor Linux device drivers, so they are unusable in Linux unless successfully reverse-engineered, while working fine in the preinstalled Windows.

Re:Microsoft: Linux Is the Top Operating System on Azure Today by Salgat on Monday July 22, 2024 @04:07PM (#41039232)
I think the real miracle here is the amount of support a single company provides for Windows, while Linux support is very fractured (in a good way) among many companies with varying levels of support.
[dead]
Re:Microsoft: Linux Is the Top Operating System on Azure Today by CharlieDigital on Monday July 22, 2024 @04:16PM (#41039320)
And guess what? Those smartphones, cars, etc. are all made by a relatively small number of suppliers on....homogeneous hardware. Samsung, Xiaomi, Motorola, et. al. are pumping out devices running the same stack and writing their own drivers.

Buy a consumer Walmart PC running Windows and it is expected to be plug and play with nearly any graphics card, USB scanner, printer, etc.

For sure, Linux is the core of every Android device and every modern car. But those hardware stacks are homogeneous by manufacturer and there's only a handful of major manufacturers.

Re:Microsoft: Linux Is the Top Operating System on Azure Today by commercialnix on Tuesday July 23, 2024 @03:47AM (#41043638)
> Those smartphones, cars, etc. are all made by a relatively small number of suppliers on

And Windows doesn't run at all on 99.99999% of them, and never will.

> Buy a consumer Walmart PC running Windows and it is expected to be plug and play with nearly any graphics card, USB scanner, printer, etc

There isn't a single graphics card you can buy in a store today that doesn't work with Linux. In the mid-2000s there were USB scanners and printers that didn't work with Linux but now finding a USB scanner or printer that doesn't work with Linux is extremely rare.

This argument about compatibility is an extremely stupid argument.

Re:Microsoft: Linux Is the Top Operating System on Azure Today by bigallen on Monday July 22, 2024 @04:11PM (#41039272)
Yikes. Chill out
Re:Microsoft: Linux Is the Top Operating System on Azure Today by commercialnix on Tuesday July 23, 2024 @03:42AM (#41043611)
No.
Re:Microsoft: Linux Is the Top Operating System on Azure Today by akho on Monday July 22, 2024 @04:06PM (#41039225)
With container workloads, "Linux" is just the kernel; userland can be largely absent.

That kernel runs on cheapest phones, and on largest supercomputers. With a similarly wide diversity of software. A much more heterogeneous environment than Windows can dream of.

Re:Microsoft: Linux Is the Top Operating System on Azure Today by CharlieDigital on Monday July 22, 2024 @04:08PM (#41039247)

    > With container workloads, "Linux" is just the kernel; userland can be largely absent.
That's my point:

    It supports the $200 junkbox your gran bought from Walmart to $20,000 enterprise racks and is expected to support all of those different workloads
Re:Microsoft: Linux Is the Top Operating System on Azure Today by akho on Monday July 22, 2024 @04:17PM (#41039332)
I do not understand your point. You are claiming that Windows needs to support a greater variety of hardware than linux, which is not true. Windows does not run on phones or supercomputers; linux runs everywhere windows does.
Re:Microsoft: Linux Is the Top Operating System on Azure Today by CharlieDigital on Monday July 22, 2024 @04:26PM (#41039448)
Those phones are made by a small number of hardware vendors on homogeneous hardware. At any given time, Google only has a handful of Pixels that it is supporting, those Pixels do not have user configurable hardware, and those Pixels are all identical.

Dell sells a PC and it has to work with any number of possible storage devices. Users might swap out the modem. It is expected to work with any PCI-E device. It supports hundreds of classes and models of devices like printers and scanners. etc. etc.

Saying that "it is used on phones" doesn't really mean much when there are only what? 5? 6? major phone manufacturers supporting a limited and largely homogeneous set hardware configurations. Same for cars; a small pool of manufacturers and suppliers on identical hardware configurations.

Re:Microsoft: Linux Is the Top Operating System on Azure Today by skeledrew on Monday July 22, 2024 @05:41PM (#41040114)
You'd be surprised at just how heterogenous Android devices are. Each OEM does their own thing, and it's only in the past few years that Google has gotten a few things standardized. Of course there's still a lot that hasn't been, and will never be standardized. And the core of Android is Linux. Not to mention there's Termux[0] which works on almost any device, from the fairly old to the very modern (currently running it on my OnePlus 12, and also had it on past devices).

[0] https://termux.dev/en/

Re:Microsoft: Linux Is the Top Operating System on Azure Today by bayindirh on Monday July 22, 2024 @04:13PM (#41039299)
> Windows has to run across the most heterogenous set of hardware and configurations of any of the major OSes.

Fair, but let's not forget a couple of facts.

First of all, most of the early Linux woes stemmed from two main roots. Drivers, and bad implementations of standards (ACPI & APIC most prominently). Lower cost Windows machines always needed "vendor drivers" to workaround what sins vendors committed with bottom of the barrel hardware, so these drivers handled the non-standard things they did with the already crippled hardware.

Let's also not forget that Microsoft tried their best to weaponize standards to break Linux (in a similar fashion they broke Dr. DOS). See: Halloween Documents [0].

So given your hardware implements the standards correctly, and you have drivers for your software, Linux works way better on the same hardware than Windows. This brings us to

> It supports the $200 junkbox your gran bought from Walmart to $20,000 enterprise racks and is expected to support all of those different workloads and insane variety of software that can be installed.

I have two Intel N100 boxes. One is running W11, the other one is running Debian Testing w/KDE. Former is my parents', latter is mine. Mine is using less RAM, running way cooler, and uses less CPU cycles to accomplish harder tasks, while supporting all the hardware on it, at full speed. So, given your hardware implements the standards, and you have drivers, there's no difference in support. It's not a design/kernel issue. It's a support/willingness issue.

> In contrast, I'd make the case that the majority of Linux distros are running in large data centers like AWS, Azure, and GCP where there's a relatively high degree of homogeneity of the underlying hardware and the operating environment on top of that.

I'm an HPC admin managing clusters close to two decades. The problems you encounter on these systems when something goes wrong is way complex than you see on desktop systems. All of these resiliency features create tons of complexity while helping you. Linux runs on these systems better for a longer time, because these systems are implementing standards correctly for a longer time, and you pay for expensive hardware and correct implementation of it, so kernel bundled drivers work correctly 99.9% of the time when you change the hardware.

> macOS, for example, operates a comparatively limited set of hardware platforms.

XNU is for all intents and purposes is BSD kernel, and macOS can be considered a BSD. Give proper drivers, macOS can also run on from your spoon to a satellite. It's POSIX compliant. They even contribute back to BSDs.

[0]: https://www.catb.org/~esr/halloween/

Re:Microsoft: Linux Is the Top Operating System on Azure Today by skeledrew on Monday July 22, 2024 @05:24PM (#41039975)
I wouldn't consider something that needs to go into a special, unusable mode to apply updates and restarted after to be that resilient. I usually apply many an update to my laptop (running Kubuntu) while using it, and even ignore the occasional restart message (after a kernel update), as it's just a recommendation that can be deferred indefinitely, and my system still remains stable. And my uptimes tend to be on the order of months. Now that's resilience IMO.
Re:Microsoft: Linux Is the Top Operating System on Azure Today by tonymet on Monday July 22, 2024 @03:48PM (#41039008)
This is also a distribution problem. If there was a distro with NT kernel, SSH and core services it could run on the same hardware.
Re:Microsoft: Linux Is the Top Operating System on Azure Today by cheema33 on Monday July 22, 2024 @03:56PM (#41039090)
> This is also a distribution problem...

A lot of the software written for Windows assumes that there is a UI available. This makes it harder to automate things.

Re:Microsoft: Linux Is the Top Operating System on Azure Today by tonymet on Monday July 22, 2024 @07:03PM (#41040740)
that's a good point
Re:Microsoft: Linux Is the Top Operating System on Azure Today by gary_0 on Monday July 22, 2024 @09:15PM (#41041580)
Not only does it assume a GUI for user input/output, on an API level there's the assumption of an HWND (window) and its message loop. Some Windows APIs aren't even available if you don't have that. Console-only applications are considered second-class citizens on Windows.
Re:Microsoft: Linux Is the Top Operating System on Azure Today by Osiris on Monday July 22, 2024 @03:55PM (#41039078)
One of their engineers demoed this years ago called MinWin.
Re:Microsoft: Linux Is the Top Operating System on Azure Today by bayindirh on Monday July 22, 2024 @03:54PM (#41039069)
Nope. NT is designed with “not POSIX, not UNIX” ethos, and this affects the interfaces in and around the OS profoundly. You won’t be able to configure and communicate with NT kernel the way you talk with *NIX system, i.e.: with files.

You open a serial port the same way you open any file. Same call, single line.

In Windows that was 30+ lines to begin with. NT is not bad, but it’s not UNIX, and designed to be complete opposite of it. No user land can change that. Even “subsystem” functionality can’t make it replace Linux as we see today.

Re:Microsoft: Linux Is the Top Operating System on Azure Today by ajross on Monday July 22, 2024 @03:24PM (#41038719)
> Plus, Linux is way lighter when compared to Windows.

More specifically than just "lighter", the Linux distro metaphor and ecosystems have already adapted to decomposed use cases. You can run the same Debian or whatever image in a Docker container that you do on the bare server (or RPi/SBC) that you do in a Desktop VM or a Xen cloud host. Your ssh-based deployment and maintenance scripting works the same, etc...

Windows gets sticky and weird the farther you get from a desktop deployment. It's a soup of special case tooling and "Here's How You Do This One Thing". So when those things change, Linux folks just tweak their install scripts a bit where Windows users need to wait for someone to Design a Product for the niche.

This is what everyone was saying back at the dawn of cloud hosting, and it's exactly how it's played out. Windows can be made to work, but... why would you?