Remix.run Logo
2OEH8eoCRo0 4 hours ago

They could stop hogging so much memory. My work laptop was fine on Win 10 and on Win 11 it began swapping to disk.

floro 4 hours ago | parent [-]

Unused RAM is wasted RAM. And swap usage is not an issue either unless there's a lot of swap in/out happening.

fishgoesblub 3 hours ago | parent | next [-]

> Unused RAM is wasted RAM

A terrible phrase constantly used in defense of bloated, wasteful programs using gobs of memory to achieve nothing.

wolpoli 41 minutes ago | parent | next [-]

I was quite surprised that the this phrase, which papers over nuances in how operating systems classify and manage memory, was posted by someone who studied CS.

44 minutes ago | parent | prev | next [-]
[deleted]
nothercastle 3 hours ago | parent | prev | next [-]

It’s true unused it wasted but unfortunately what it’s used for is decided by corporate flavor of the month so garbage one drive, teams and Gemini builds eat all the ram that would be better used by other applications people actually like

mc32 2 hours ago | parent | prev [-]

Indeed. They can’t know what other applications you need to run. So they more frugal the OS and application, the more available for other software apps.

Dylan16807 2 hours ago | parent | prev | next [-]

> Unused RAM is wasted RAM

This applies to caches, and it applies to time versus memory tradeoffs in expensive algorithms. Win11 wastes a lot of memory on neither.

bena 3 hours ago | parent | prev | next [-]

If I’m encoding video or running a database, sure.

But the OS should be as lean as possible because the entire reason is to run other programs.

cosmic_cheese 3 hours ago | parent | next [-]

> But the OS should be as lean as possible because the entire reason is to run other programs.

In my mind Classic Mac OS (minus its design issues) is the ideal to strive for here.

It was barely even an OS and more like a substrate for GUI applications to run on top of. Even “essentials” like networking and USB support were implemented by way of extensions which could be disabled at will. If you disabled all extensions you’d get something resembling a full color version of the original 1985 System 1.0 that took almost no resources. This was great for squeezing out every last drop for things like games and emulators.

EPWN3D 2 hours ago | parent [-]

It was that lightweight because it provided basically none of the functionality that is essential to a modern OS. Because it wasn't a modern OS.

The surface area of stuff that an OS has to do today is absolutely massive, and the dependency graphs are poorly understood even by the engineers who work on those systems. Innocuous pieces of functionality have a way of becoming load-bearing over time.

If you ran around disabling random bits of functionality in Windows because you wanted to reclaim some resources for your games, you'd probably wedge the OS, cause random crashes, and prevent your games from even launching. Like you might think "Well my game doesn't need Bluetooth, I only use a wired controller!" but I would not be surprised at all if yanking out the Bluetooth stack from the OS caused random crashes and hangs.

cosmic_cheese 2 hours ago | parent | next [-]

I’m not convinced that it’s impossible to build a modern OS in a way that’s properly modular and allows most functionality to be disabled entirely (as in never even loaded into memory).

Windows almost categorically can’t because it’s only ever been developed organically and is pathologically backwards compatible, which keeps it forever tied to past design decisions.

Linux could get a much closer but is hamstrung by monolithic kernel design which puts more functionality there.

You’d need a clean sheet design which positions most subsystems as discrete components.

skydhash 24 minutes ago | parent | prev | next [-]

> The surface area of stuff that an OS has to do today is absolutely massive, and the dependency graphs are poorly understood even by the engineers who work on those systems. Innocuous pieces of functionality have a way of becoming load-bearing over time

It’s not that huge. I use OpenBSD and the code is surprisingly approachable and readable. And even with no support for runtime modules, it’s pretty easy to customize and strip out whole features. Current complexity in something like linux is stretching the subsystems to support a huge array of use cases.

mitxela 2 hours ago | parent | prev [-]

[dead]

PorciiVorbesc 3 hours ago | parent | prev [-]

The windows kernel is smart enough to free RAM for the highest demanding app like rendering or video editing, even if the idle is high.

That's why there's no accurate 1:1 comparison between operating systems. Windows, MacOS, and LInux will treat physical memory very differently bot at idle, and during heavy use.

Sure, Win 11 has a lot of bloat and poorly coded Web apps that should be removed or rewritten in native, but the kernel is still top notch at managing even limited memory and handling OOM cases.

skydhash 3 hours ago | parent | next [-]

The thing with windows is that there is no idle state, something is always busy with the CPU/hogging ram. With Linux I can have like 98% idle and the system taking 2Gb out of my 8gb of ram, but with windows, the system is more like 30% cpu and more than 4GB of currently being used ram.

PorciiVorbesc 3 hours ago | parent | next [-]

If idle on Win 11 already pre-caches most-used apps like Chrome/FF and not on Linux, how can you accurately measure what true idle is?

You have to remember the Win (and MacOS) kernel is tuned to consumer desktop user use cases, while Linux kernel is tuned to server/DC use-cases.

That's why ~15 years ago when I was in uni, you'd get audio stutter when playing music/movies of spinning rust on linux while torrenting file on the same HDD, and not on Windows/MacOS, due to different queuing algorithms used thet prioritised audio decoding tasks over everything else, which Linux kernel out of the box didn't, unless you tinkered and changed it.

skydhash an hour ago | parent [-]

> You have to remember the Win (and MacOS) kernel is tuned to consumer desktop user use cases, while Linux kernel is tuned to server/DC use-cases.

I don’t mind the kernel doing kernel things. The issue is system services and other software that are either unnecessary or badly coded. You can’t disable them because of “reasons” and they’re just wasting your time and your electricity.

keyringlight 2 hours ago | parent | prev [-]

A tangent to this which annoys me is not specifically windows, but the way the ecosystem has evolved over the years, by guidance/enforcement or lack thereof from MS. Unless you're very careful about what applications you install and how you manage/monitor them, you can end up with a lot of background applications loaded each boot, each doing some combination of non-centralized updating itself or applications it manages, preloading, quick launch, etc.

mitxela 2 hours ago | parent | prev [-]

[dead]

theandrewbailey 2 hours ago | parent | prev | next [-]

These days, swapping to disk means your SSD wears out and dies faster. That's very much an issue.

asdff 2 hours ago | parent | prev | next [-]

Until you open something else

cute_boi an hour ago | parent | prev [-]

Or one can simply optimize the memory?