79 points · by PaulHoule · 2y ago · 103 comments
So far as I can tell the problem started around the time Win95 came out and also affected MacOS Classic at around the same time. It did not seem to affect minicomputers like the PDP-8, PDP-11 and VAX. It did not seem to affect home computers like the Apple ][, Commodore 64, and such. I don't think it affected PC compatible computers running DOS. I don't think it affected Sun or AIX workstations or Linux machines running X Windows until KDE and Gnome came along, now it does.
(I think it happened around the time that most GUI systems started to incorporate distributed object models and RPC mechanisms like COM, XPC services, DBus, Binder, etc. Certainly all the systems that annoy me like this have something like that.)
Reinstalling the OS seems to help for a short time, but as time goes by the length of the honeymoon seems to get shorter and it is faster to get slow again.
Back in the day it helped to defragment hard drives but we're told we don't need to do this in the SSD era.
If I had to describe it, it is not that the machine gets "slower", but instead it has periods of being unresponsive that become longer and more frequent. If it was a person or an animal I'd imagine that it was inattentive, distracted, or paying attention to something else.
If you benchmarked in the ordinary way you might not see the problem because it's a disease of interactive performance: a benchmark might report 10 seconds on either an old or a new machine: it might take 0.2 sec for the benchmark to launch on a new machine and 2.0 sec on the old machine, but the benchmark starts the clock after this. You might need to take a video of the screen + input devices to really capture your experience.
Any thoughts?
Computers were slow in the 80s/90s, so if you wanted your program to run fast, you had to know how cache and RAM worked, and utilise what little power was there to the max. As computers have gotten faster, that knowledge has gotten less relevant to the average developer.
There are some fields where that knowledge is useful, like embedded systems, HPC or games, but they are a minority.
I won't deny there are some benefits in not needing to care - you can write programs faster (even if they perform slower), and some classes of bugs can be reduced (e.g. memory bugs). These are good things, but fundamentally our programs still move memory around and interface with the real world.
As more people forget (or aren't taught) to keep this in mind, we'll lose the ability to make things fast when we need to, and our software will get slower and slower until it's unusable.
On a related note, we're also not allergic to complexity the way we should be. The average developer doesn't have a problem using hundreds of libraries in a single project if it makes their job easier. Unfortunately this also makes programs slower, harder to debug, and increases the surface area for a vulnerability.
Very well put. I think the majority of why performance isn't a goal anymore can be attributed to this. So much software today is written like it's running on a supercomputer (and in comparison to computers even just 10 years ago, it is). Libraries have become crutches rather than tools.
Yes and no here.
I fully remember the same thing happening slower computers back in the day. My Amiga 500 was this way as I recall. That was a computer released in 1987, until I finally upgraded to a PC circa 1996/7 ish.
There was a point where MS was releasing slow software on purpose with the idea that the processors (which were still following Moore's law) would catch up and make it fast. Though one has to wonder if it was secretly Microsoft's inability to write good software that drove Moore's law.
I don't know about you but "performance upgrades on ancient hardware" isn't exactly the sort of thing my manager would be terribly happy I was focusing my time on.
Differently from high CPU usage or network problems, this can potentially affect any memory operation, so even carefully designed GUIs will freeze.
This effect will not happen in systems with sufficient RAM, or that don't swap memory to disk. In that case it'll either crash the program trying to allocate, or a random process[2].
[1] https://en.wikipedia.org/wiki/Thrashing_(computer_science)
* regular software updates -- more features and larger codebases running on the same machine
* larger quantities of software running at the same time -- on older machines multitasking either wasn't as common or wasn't even possible, and as time went on more software became available as did the ability to run more of it at the same time.
* the internet -- pages on the internet get larger and more demanding all of the time, while the capability of any given piece of hardware stays constant.
* active cooling and thermal throttling -- hardware can actually run slower if it gets dirty
Silicon aging contributes some: https://en.wikipedia.org/wiki/Transistor_aging
This wouldn't have affected your Apple II and PDP-8's, due to the huge transistors in those things (relatively to modern integration scales), and not running at anywhere the modern clock speeds.
My personal experience is that general productivity apps, even office suites haven't changed that much over 30 years, but their system requirements keep jumping.
If you can identify differences between then and now, how many of those aren't bloat?
* Video and voice calls, including group calls
* Inline images and video
* Screen sharing
* Clients on every OS and the web browser, they should all look pretty much exactly the same and be updated at the same time
* and a whole bunch of other random stuff like in app image editing, payment processing, etc
I'd say the biggest hit to memory usage and performance is just all the inline images and videos. IRC may have been super lightweight and fast, but people expect more of programs now. Electron/web tech was also pretty heavy, but releasing a native Windows app and maybe later a half done MacOS version is no longer acceptable. You _have_ to support windows, mac, linux, android, ios, and web. All of these versions _must_ have the full feature set and look the same.
2) local state grows and evolves in complexity. configuration databases grow, new files are added to the filesystem, software upgrades leave unused state around (because getting software upgrades right is still a not-totally-solved problem), indexes (or similar) of mutable state grow but sometimes don't get rebuilt causing locality to suffer affecting cache performance.
3) psychology.
AKA software bloat. The amount of layers of garbage in an OS today is horrendous.
Most of the time, “bloat” is another way to say “the features I don’t use”. Yes, sometimes people push bad code to production. Other times it’s new inherently more complex code that makes computers nicer to use.
As for android, I have experienced this a million times also, but do not know the cause. But I do usually see an accumulation of new and stupid bugs as I get software updates. Incorrect app scaling and positioning, etc which were not the case for the first six months I had the phone.
Every single modern device with a CPU does this dynamically. You are mixing up what batterygate was about.
Apple released an update that would permanently throttle a handset if it rebooted (browned out) due to a degraded battery. Replacing the battery would bring it back to full speed. The feature still exists today. It’s a bit like the “limp home” mode in your car.
Apple added an update that could detect these power failure reboots and cap the CPU frequency so your phone doesn’t crash all the time. Around the same time, a lot of Android phones like the nexus 6P were plagued with this issue where the phone would just randomly shut down.
Galaxy S2,S3,S4,S5 One Plus 6 and more
If cooling is insufficient so as to cause thermal throttling, the effects are usually very obvious too, and not gradual. Neither will reinstalling software change that.
This can be explained just by thermal paste drying out and caking up, no more mystery needed. I've had 12 year old "workstation" laptops (the copper cooling alone was heavier than some entire laptops are these days) which started spinning up their fans for seemingly no reason. I dismantled them, cleaned off the old paste, put on a fresh paste, reassembled, and haven't heard the fans once since then. The cooling was good on day one, it got worse for unavoidable physical reasons, and it's easy to fix if you know how.
The problem is most users do not know this is happening and wouldn't know how to fix it even if they did. If they ask someone for help, 99% of the time they'll be told it's too old and they should upgrade.
For example, one of the symptoms of networking packet is slowness. Assume 2% of packets are lost. A packet is lost, the receiver re-requests it, and the retry has a 98% chance of being successful. End result: the transmission completes, but at a slower pace.
- Windows update can take a lot of blame for this. Basically the longer the Windows release has been out, the more windows updates there are. After every boot one of the first things windows does is check for updates. It then scans the local folder where the updates are saved and does some sort of check to make sure everything is good. Processing this folder can take hours on an older machine with a spinning disk.
- The Windows registry, where almost all windows settings and quite often app settings are stored, has terrible performance and can become bloated over the years at as more and more stuff is written to it.
- An SSD can suffer bad write performance if you are dealing with a somewhat full disk and it can’t trim space quick enough to deal with new writes coming in.
- In Linux you’re not supposed to mount with discard any more but instead rely on a cron job that runs in the background once a day. I think various manufacturers are supposed to handle the trim in firmware too but then it’s a black box.
- Filesystems generally perform worse as they fill up. In my experience NTFS seems to have a lower threshold than ext4 or XFS.
- Your disk might be failing. Look at the SMART stats to see if you are hitting unacceptable error thresholds.
- In Linux anything that uses snaps will take forever to start the first time.
Software can decay, hardware can decay, both can exacerbate each other. The registry gets filled up, the filesystem gets fragmented, the software accumulates in memory, upgrades of the same software accumulate hacks and poor design leads to worse fixes to problems, and slowly buggier versions are shipped. The hard drive slowly fails, the SSD loses viable blocks, the fan and heatsink gets clogged with dust and less efficiently cools the system, the battery loses capacity which causes the system to throttle itself, the power supply components slowly degrade causing voltage inconsistency, tin whiskers develop.
The simplest explanation I can give is entropy. Everything in the universe is in a state of decay. Eventually the thing decays so much it breaks down.
I had two mac minis that operated in the same conditions and seemed well designed enough that dust got separated from the air that went through the computer so it never got clogged up.
e.g., I'm one of the only people on my team at work whose computer just works consistently since I understand these things and sidestep well intentioned but poorly conceived it policies such as untested updates that nearly brick laptops often...
The only problem I have is that I can neither update Chrome to a modern version (understandable) nor downgrade it to the version with Adobe Flash support (not understandable). Not supporting Flash is kind of moronic despite of notoriously bugginess of Flash because if you (Google) don't support a browser for me anyway and my browser is buggy a-priori, why do you bother me with disallowing Adobe Flash?
Another vector is uncontrolled synchronicity. E.g. I knew programs that could install an Explorer context menu item that could delay presenting it for two seconds when you right-click. I don’t remember the names, but remember hunting them down and removing from my context menu.
So I think that mostly all of this is because of (1) problematic implementations of caches and (2) plugins that break assumptions on how long something should take.
I've met people who claim they can install 30 plugins into Eclipse and still get things done but when I try it, Eclipse seems to get "pluginitis" and become unreliable. I've found distros of tools like Eclipse and the JetBrain IDEs that have a curated collection of plugins that seem to work but I find installing anything, even something little like a Plugin for bash files because it saw I was editing a ".sh" file, is like playing Russian Roulette.
I feel the same way about web browser extensions. I think it's OK to install something like uBlock Origin and certain other anti-tracking tools, but you can make the case that those improve system performance whereas performance can only go in one way installing other browser extensions.
The "problematic cache" rings true for me. Any developer has had the experience of making something that performs 100x or more better with a very simple cache. However it is by no mean a given that adding a cache layer really improves performance in a system, particularly when you can have problems with locks being held, invalidation, etc. Particularly if worst-case latency is your concern, for instance (and I think it is the concern when your computer is "freezing up") the cache will sometimes waste time doing its cache thing and still have to go to the source.
Those games might do better because of a different performance culture... People are very concerned about worse-case latency for games but seem to be completely unconcerned when it is a spreadsheet or a graphics editor or the GUI shell of your desktop.
Your software most likely did not ran off a hard disk. So it was slow to load anyways.. and after that it ran within the memory it had. One program at a time, no memory swapping.
> I don't think it affected PC compatible computers running DOS.
Umm.. I remember being mesmerized by disk defrag programs. There was also TSR programs and other ways to run more as one program at a time.
In general though if you have more state there is more possibility that the state goes bad (e.g. malware counts as "bad state", as does a configuration database growing without bound, or something like the XP-era updating mechanism in Windows that was O(N^2) in terms of the number of previous updates)
I could swear I didn't notice this rot with that 286 machine, the 486 machine I replaced it on that ran Linux, the Sun 3 and Sun SPARC workstations at my undergrad school, AIX workstations at grad school, etc. (There was the SGI machine that always struggled to get out of its own way at anything that a professor bought, never bothered to set a route password, never got anything done with it, but left it plugged into the Ethernet and power)
Once we got into modern Linux distributions like Fedora that had Gnome or KDE I definitely had this problem though.
Not sure why it happens with phones -- I assumed the OSes shipped more expensive animations & apps to encourage people to upgrade.
I've been able to observe, most obviously with my first gen Nexus 7 but also with other devices, that pure CPU benchmarks are still fine, but "disk" benchmarks show terribly low (~100kbps) throughput. Lots of modern software assumes flash/SSD is fast, but inexpensive flash wears out to the point that this assumption fails.
At least once I've seen a thorough wipe very temporarily restore some performance in such a case.
Games can be parallelized, but in a relatively tight way: the game just has to coordinate the physics/AI stuff with the rendering stuff. The rendering is defined in a way that lets it consume most of the resources. Games on old CPUs do hit thresholds where they stop being playable, but they are fairly concrete boundaries where that number of cores and clocks just won't hit the pacing needed for that level of detail.
But the general operating system layer has made a point of pushing both power and responsibility onto userspace applications, and allows them to be helpful and do things in the background. The applications in turn are doing a lot of redundant, overlapping work - no unified methods of serializing and communicating, polling for events, contra-user telemetry and the like - so the end result is a pileup of background load that can kill the experience.
The switch to the SSD era cured one aspect of this - background storage accesses - but just brought on different bottlenecks with memory, core, and network utilization.
The way it might be addressed is to give the OS relatively greater, higher-level responsibility and supersede more of what the applications are doing. The open-source/free-software space has a better chance of accomplishing this because, while it usually develops at a slower pace than a commercial company, it's more "sticky" in terms of accumulation at the base layer and fixing root causes instead of hacking around them. And people generally do report that installing Linux is a speed-up for their old device; when you run a contemporary Linux distro you get a lot of software that has been properly domesticated to the environment, and therefore doesn't turn into a burden.
I bet apple 2s run better today.
or, if it hasn't, you're trying to view websites with heavy javascript which requires too much memory/cpu to view effectively
My mac basically never has it, unless Intellij is running in the background and decides to re-index.
Most software that phones home is designed to work regardless. But the functionality can degrade and performance takes a bit.
Obviously, updates become impossible.
Hardest to identify exactly which one blew unless it is obvious.
Toss motherbord and upgrade it.
That sounds like a faulty hardware issue, or, more likely, a configuration issue.
Once upon a time, the saying was "If you want to speed up a slow machine, throw more RAM at it" as more RAM meant less slow swapping/caching to slow hard-drives.
On a desktop, I think it's more about hygiene and expertise with the OS.
It comes from various electric components, for example electrolytic capacitors dry out.
The reason consoles don't use them, they don't want to ever have the bad reputation of dying consoles.
Why do 'computers' use them? Planned obsolescence. You will go buy that new computer basically by certain number of years.
Defragging freed up space for virtual memory
Because HW gets older. Your access time for RAM will not be the same as it was new, resistors, capacitors, etc will change value due to aging. You semicondoctors will experience migration of ions.
The SW is not "thought" about it and if some operation does not work or does not finish in a period of time, if will mostly crash.
It's not the hardware. If it was, you'd get random crashes, not slower performance. Everything is locked to the clock signal, and there is plenty of wiggle room, relatively speaking.
It's the OS, and how software gets installed/removed.
FreeBSD+XFCE for the win.
I thought this was a bug in firefox, but now it's in the chrome based browser too.
My impression was that the upgrade treadmill for computers started to get established in the late 1980s.
That is, even though they produced a huge number of computers in the Apple ][ line over about 13 years
https://en.wikipedia.org/wiki/Apple_II_series
you couldn't say any of the newer computers were that much better, particularly in terms of raw performance. It was the PC clones that decoupled the system clock from the video clock making it possible to release a machine that was clocked substantially higher than what you could get six months ago, enough that you could buy a new computer in two years that was more than twice as powerful as your old computer.
Circa 2006
https://en.wikipedia.org/wiki/Dennard_scaling
broke down and the industry has had to multiple cores, GPU acceleration, etc. to be able to make the case that today's computer is better than the one you had before.
I still use an iPhone 6A and it works fine.
Stuff like this is one of the key reasons I dumped Windows.
I’ve earned the right to say the truth about Windows.
And yes, MacOS is a far better operating system….. I’ve earned the right to say that too.