r/Ubuntu • u/smarterthanyoujk1225 • 7d ago
technically how does linux work on old hardware so well?
How does Ubuntu, Mint and whatever else distro work on old hardware so well? Linux has a huge reputation for it as well. It's usually one of the first things that people say about linux.
Technical question though, how does linux work so well on old hardware?
17
u/cakemates 6d ago
Linux is very modular, you can remove and swap around pieces, to make it fit almost any hardware. You can always swap around a couple of pieces and get X distro to work with 1/4 the ram, and consume 1/3 of the cpu.
Think of it in terms of cars, you have a car with not a lot of horsepower, if you remove 600lb of interior the car is gonna be faster at the cost of some comfort. You can keep removing pieces and make it even lighter.
11
u/Underhill42 5d ago edited 5d ago
Mostly because it's developed by and for volunteers (people and corporations) that care mostly about performance and reliability, many of whom are using it for VERY low spec embedded computers. Your smartphone is the most powerful Linux computer most people use. Your TV also runs Linux. So does your internet router, quite possibly your printer and most other "smart" devices around your home as well.
And your old computer easily runs circles around those when barely idling.
Granted, they're not running a full desktop Linux distro, obviously... but the OS is highly modular, and designed so that you can just leave out the modules you don't need, and what is left will be streamlined and reliable enough for just about anything.
And when it's easy to replace or remove modules, it's also easy to see exactly how their performance and reliability compares in an otherwise identical system. And so mostly only the fastest and most reliable modules get widely used, unless they offer some really useful features to be worth the cost.
---
While Windows, MacOS, etc. in contrast are developed by companies that care mostly about extracting as much money from you as possible, with the least cost to themselves.
And you're not going to keep buying the latest version of their product, unless it adds in a bunch of fancy new features that seem worth the cost, at least in the ads.
And with free updates, the only way they make any more money from you is if your old computer gets slow enough that you need to buy a new one, with a new bundled copy of the OS.
Even if they're not being intentionally evil about it (...), they're still in a situation where heavy optimization not only costs them additional money to do the work, but actually REDUCES the number of new copies they sell since fewer people will feel the need to upgrade their old computers.
Not exactly a lot of incentive to spend money in that direction...
2
u/Consistent_Tax3555 2d ago
E não podemos esquecer que empresas como Microsoft e Apple têm parcerias com fabricantes de hardware. Obviamente, essas fabricantes querem vender cada vez mais e, para isso, precisam que o sistema deixe de aceitar hardwares de geração antiga, mesmo que ainda funcionem bem. Elas precisam que o sistema pare de dar suporte, forçando o público a comprar hardware novo. Ou seja, é a famosa obsolescência programada.
10
u/petros211 6d ago
Ehm I just want to remind or let everyone know that the fastest supercomputer in the world when mankind got to the moon had <5mb of ram and a much much weaker cpu than the old hardware you are referring to, we have just lost perspective
4
4
12
u/tomscharbach 7d ago edited 7d ago
Technical question though, how does linux work so well on old hardware?
Linux distributions "work so well on old hardware" because the distributions use limited resources to run the system. Many distributions will run acceptably on 4GB RAM, for example.
How well a distribution runs depends, though, on the applications a user chooses to run. Modern applications are "high resource" as often as not.
As a result, common sense limitations (limiting the number of open applications and the number of browser tabs, for example) is required to run Linux distributions well when running applications.
3
u/aim_at_me 5d ago
Unfortunately, the bottle neck is becoming the modern web. Some websites that users need or want daily for their lives are bloated af.
-4
u/Kaptain9981 7d ago
As well as supporting older CPU architectures. Windows 11 can be cut down and obviously made to be run on older unsupported CPU hardware. I forget the lowest resource desktop GUI Windows 11 install, but it’s a really small memory foot print. Is it practical not really. Is it functional, technically.
Linux just makes it easier to remove the bloat as there isn’t a commercial entity really interested in “telemetry data” and pushing their priorities across the platform at the expense of user resources and hardware support.
1
u/gnufan 4d ago
Microsoft Windows definitely had lightweight variants, their PoS/till system had a lightweight base, but I think it was basically cut down Windows XP years after XP itself was out of general support.
Looks like currently Windows 10 IoT Core is the smallest supported Windows, and available for free to fiddle with on RaspberryPis. But the main matket is single app tasks like signage, or PoS.
Whilst I'm not a Windows fan you can manage it with the same MDM, secure it with Defender, if I were a supermarket, or maybe airport services company with a big Windows deployments already managed, that has to be a good selling point for IoT devices being deployed in bulk.
10
u/glyndon 6d ago
Lots of good answers in this thread. Mine is that Linux is being what an OS has always been supposed to be: code that manages the hardware and abstracts it to an ABI - and not much more.
The concept of an OS was an early invention to make it easier to port application software to new machines more easily.
And it stayed that way until Apple and MS decided to make it into a fashion statement, and into a bloated app itself, shoving widgets, weather, search and all that bloat at the user.
Linux pretty much stays in its corner and runs the machine for you. You get to decide whether or not you want a weather widget alerting you every time a cloud goes by.
1
u/tornado99_ 6d ago
Not really a fair comment. If you averaged weather widget CPU usage over time I doubt it would be significant on any OS.
3
2
u/baseCase007 5d ago
Apparently on Windows 11 the Weather Widget itself consumes a GB of RAM when idling.
5
u/Alive-Big-838 6d ago
Depends entirely on the software. KDE actually runs quite poorly on certain old harware for example (it doesn't hide this of course, it's graphically complex and loaded with features).
Ubuntu server with just a CLI will run on a shoebox if you respect the overhead.
4
u/RespecDawn 7d ago
I think the most basic explanation is that when you install Windows, it's like installing a whole premade set of kitchen cabinets. You can tweak a few little things, choose a slightly cheaper countertop or smaller drawer pulls but you have basically put the whole thing in your kitchen so you better have a kitchen big enough to fit it.
Linux can be just a little table, a sink, and a microwave. You could shove those things in a closet and have a functioning spot to make food. Then, as you get more space, you can add whatever extras you choose.
You can install the Linux kernel and a few other things and have a working OS. You can't do that with Windows.
BUT!!! I am only just under a year into my Linux journey so I'm entirely prepared to have more experienced folks tell me my metaphor is wrong. XD
4
u/that1guyrob 4d ago
I'd say the primary reason boils down to the fact that Linux at its core is not profit driven, and there's no planned obsolescence. So for corporations like Apple, it benefits them financially to just draw lines in the sand and say that specific new versions of the OS require you to buy new hardware with no real technical reason the old hardware can't support the new OS. For Microsoft OEM licensing is driven by new PC sales. It doesn't benefit Microsoft in any way to keep their operating system running on ancient hardware.
The Linux kernel has everything it needs to boot most systems already. And because the Linux kernel is modular by nature, any specific hardware that doesn't work out of the box can be fixed by simply adding the correct kernel module. Some distribution maintainers like Ubuntu spend a lot of time making sure that they have kernel builds and modules to support a wide variety of system configurations, while other purpose built distributions may have a stripped down kernel with only the necessary modules for the exact hardware needed for the specific device they are producing. The flexibility and compatibility of Linux is endless.
3
u/CardOk755 6d ago
Because every version of windows is built to use as much hardware is available to be flashier.
But every version of Linux is built to use every hardware feature as efficiently as possible.
5
u/zoinkinator 7d ago
The code only does the job you want it to do. It doesn’t have a ton of code monitoring every thing you do and shipping it to the marketing department and selling you behavior online to advertisers and other entities willing to pay for that information. In technical terms it has shorter instruction path lengths to get things done. Thats why old computers with older processors and less memory are sufficient for linux.
4
u/bubbahoteppi 6d ago
Because it doesn’t fuck around. It does what it’s supposed to do. The more you ask it to do, the more resources it requires. That’s just how consumer facing software works.
2
u/AgingTrash666 6d ago
It works on old hardware because the Linux kernel itself requires very little resources to run and the amount of computer required scales based on what functionality you add on top of that.
5
u/SpiritedInflation835 7d ago
If something was built in the last 20 years, and requires electricity, some kind of Linux will run on it.
Linux does a bad job at supporting the newest, bleeding edge hardware. Apart from mobile phones, Linux mostly runs on hardware that is rarely changed/replaced for various reasons (e.g. the controlling unit for an elevator, a company server that keeps humming for 5-6 years, the CPUs that fly on SpaceX spacecraft), and the developers basically target that market.
8
u/Leinad_ix 7d ago
Bad job at supporting the newest, bleeding edge notebooks. New desktops are supported well. NVidia DGX Spark, super powerfull expensive desktop for AI development, was first supported with Ubuntu (rebranded as NVidia DGX OS) and year later with Windows. New AMD Ryzen desktops were, and maybe still are, faster on Linux than Windows.
3
u/RedHuey 7d ago
There used to be things like WinModems that actually depended on Windows to even work. There was no Linux driver ever to be found.
3
u/Kaptain9981 7d ago
If I recall that was more on the fact the devices were soft modems and lacked the more expensive chips that prior modems had. They usually were PCI devices and handed off a lot of the work to the host system. Because of this software stack reliance they were only vendor supported on Windows as that would be the largest and almost exclusive user base.
An older or more expensive ISA or some PCI modems would have been fine. As well as external serial modems.
3
u/CardOk755 6d ago
Winmodems used the CPU as a DSP. They ran proprietary, patent protected, signal processing code in the CPU. The licensing was hell, trying to get that running in an open source os...
2
u/AvonMustang 7d ago
There was some Windows software that didn’t work with WinModems. They were terrible…
0
3
u/LordSkummel 7d ago
Why shouldn't it work on old hardware? It got all the drivers for it. It's not like the workloads that runs on modern hardware have changed that much since old hardware was modern hardware(with some exception) so why shouldn't it work on older hardware?
3
3
u/Plan_9_fromouter_ 6d ago
The Linux kernel retains a huge legacy base. While Windows OS has the reputation of being the 'legacy OS', it terms of hardware, it is really Linux that does that.
1
u/Bo_Jim 6d ago
Microsoft has a profit motive to keep adding advanced features that require advanced hardware, so they drop support for hardware that doesn't support the latest features. Linux developers have no such motive. They don't drop support for old hardware without good reason.
That doesn't mean there are no minimum hardware requirements at all. You can't run a 64-bit version of Linux on a 32-bit processor. But you could run a 32-bit version. A lot of distros are not available in 32-bit, so you have a much smaller selection of distros to choose from. A lot of software is also not available in 32-bit, and often can't be recompiled as 32-bit applications. But a 32-bit distro will only be bundled with compatible 32-bit apps.
Also, while Linux itself doesn't require a GPU as it can run "headless" in a text-only environment, some desktop environments and applications will run slowly or not at all without a GPU.
In other words, just because you can install it doesn't mean you can do everything possible with it. You may be limited by your hardware. But if you have any processor from the original Pentium or newer then there is probably a Linux distro you can install and use.
1
u/Dazzling_Comfort5734 6d ago
The short answer is lack of bloat, and a lot of really hard-working people who are focused on making it efficient, not on trying to sell you products and services.
Not every distro is lean, though, I would say Ubuntu and Fedora run very well, but I also feature rich, whereas other distributions are leaner and run better.
1
u/DavidJohnMcCann 6d ago
It's the GUI. Ubuntu, with Gnome, advises 6 GB but AntiX, with IceWM, will run in ½ GB.
1
1
u/xpusostomos 4d ago
A lot of distros don't install crap until you ask for it. Windows installs every piece for crap whether you want it or not including a lot of background services
1
u/iDrunkenMaster 3d ago
not all Linux works well on old hardware.
Linux allows you to pick and choice what you want. Ubuntu is semi heavy. Not as bad as windows 11 but it’s not something I would put on old hardware. However Lubuntu is strictly made with lightweight in mind while having full Ubuntu compatibility. The standard Gnome environment is heavily featured, however LXQt desktop environment from Lubuntu is heavily stripped of features making it significantly lighter. (Many of the stripped features won’t even be noticed) if you still need lighter there are other options however you will start to get more noticeable penalties.
1
u/LazarX 2d ago
Because there really isn't that much of a fundamental difference between old hardware and newer hardware.... it's still the sme base x86 instructions running on less resources.
Also Linux does not try to do all the bells and whistles of modern Windows.
It works so well by not asking that much.
0
u/linmanfu 7d ago edited 7d ago
Philosophy of design
In practice, Windows in one big bundle and you have to take or leave all of it. So if any part of it can't cope with the old hardware, the whole thing fails.
In contrast, Linux is made of many different tools, and traditionally each tries to do one thing well. Any of them can be replaced by some other component. So you can switch out more demanding parts for lighter parts.
Imagine you need to deliver some oil across a sea. One gigantic oil tanker (Windows) is easy to navigate, but if it hits a sandbank anywhere, then you're stuck. A fleet of smaller ships (Linux) is more complex to manage, but if you hit a sandbank, you just replace that one ship and the rest carry on.
Commercial incentives
Microsoft has close ties with hardware manufacturers. Traditionally they got paid a licence fee for every PC sold with Windows. These days that income is less important, but they are very keen to remain the default OS on every PC sold, because that gives them power to force people into the rest of their ecosystem (e.g. CoPilot and OneDrive). So Microsoft wants to keep the hardware manufacturers happy. If newer versions of Windows don't work on older PCs, that forces people to buy new PCs, which keeps Microsoft's hardware partners in business. Because Microsoft has an effective monopoly in the business world, businesses just have to accept this.
By contrast, very few people involved in creating Linux software at the OS level are funded by consumer hardware manufacturers. They're much more likely to be selling support to corporate IT departments, who want to save money by keeping their old hardware working as long as possible. Because Linux vendors have to fight hard against Microsoft, they provide a more customer-friendly solution.
3
u/amatulic 7d ago
In practice, Windows in one big bundle and you have to take or leave all of it.
That's for sure, and it was mostly true even in the days of Windows 3. I had asked on a forum at the time about doing a "minimal" bare-bones Windows 3 installation on a computer with limited resources, and did get some advice, but it wasn't a straightforward process.
1
u/jzemeocala 6d ago
I remember back in the XP days, i used to use what was called the "Black edition" for a stripped down version....then vista came out and I started switching to linux
0
u/ArgumentBoy 6d ago
If you’ll permit me a little story: The first computer I owned was a Kaypro 4/84. The 84 was for 1984, when they made it. The 4 was because it had 2 disk drives and each could read 2 sides of a 5 1/4 inch floppy disk. It came with 64k of ram. Make sure you read that closely: k, not M, not G. When it booted up, the screen (4 inches diagonally? Maybe 5 or 6) announced that I had 63k of ram available for use. I thought I had been cheated somehow so I called the company. An engineer (!) took my call and explained to me that I had 64k in hardware but that the operating system had taken 1k. The operating system was CPM, the immediate predecessor to DOS. So 1k was possible for running a legitimate computer. Linux isn’t CPM, but the story might explain how a tiny system can do real things if you plan for it in the first place.
0
u/erroneousbosh 6d ago
It is and it isn't good on old hardware. I doubt you'd get a full-featured desktop distro like Ubuntu to even boot on something from 20 years ago unless it was pretty heavy-duty for its day.
Think about it this way - if you wanted to build a car and you had a 35bhp engine out of a Kubota minidigger, would you start off building something like a Cadillac Escalade? Probably not, you'd barely have enough power to run the alternator for all the electrics, never mind haul 3500kg of car along.
You'd strip it right down to nothing, basically a beach buggy, right? Light as possible, nothing you don't need, barest minimum.
It's the same with Linux. You can get it quite efficient - I'm running perfectly normal Ubuntu 24.04 on a Thinkpad T420 laptop with 8GB of RAM and a Core i5-2520M processor, with a dozen or so Firefox tabs and five terminal windows open, and it's absolutely fine - but even so if you've got really low end hardware you'd want to pick a suitably minimalist distro like Alpine.
And if you think Alpine is good, wait until you see NetBSD.
Or Haiku, which runs a full desktop, browser, the lot, on utter potatoes of machines.
0
u/havikito 5d ago
You can run Windows XP on it with similar results.
The secret it can't do anything.
41
u/Available_Bowler2316 7d ago
You can pare it down to run on very limited platforms. And you can pick and choose what is installed. So projects like OpwnWRT run on WiFi APs with 8mb of flash and ram (not sure what the current limits).
The kernel is modular, so you only load the hardware drivers you need. And so on.