Windows and Linux both heavily use RAM caching, that is, using Unused RAM as a massove disk cache to improve performance - a lot of Windows processes that are “running” are really idling in RAM and not doing anything unless called on. In a way, they’re “cached”.
Almost every problem with Windows running slow out of the box are one of three things:
1: Not enough RAM (stupid super cheap 4-8GB laptops) 2: Not enough storage (stupid super cheap 32-128GB laptops) 3: Installed on a hard drive (install Windows to an SSD, spinny bois are too slow for 2024)
It is true Windows 11 asks for about 5GB RAM, but what else does? Your web browser. The solution is to not be cheap and have at least 16GB RAM, regardless of your OS. You want to have no more than half your RAM used when you’re using your PC. This gives you enough for programs, the disk cache, and room to grow.
Wurzelfurz@lemmy.world 7 months ago
I’m sorry but low RAM usage is not good performance, those are not the same.
Also, I’ve read somewhere that all memory not in use is wasted memory. I find that thought really interesting. If an operating system would be able to always maximize RAM usage by loading every peace of software and information it uses or is about to use without using swap or a pagefile it shoud be more responsive I think.
thequantumcog@lemmy.world 7 months ago
Yes, you are right. But windows load programs Into ram that I don’t even want to use. In addition to less ram usage thee is also less CPU usage and faster boot time (with HDD).
lurch@sh.itjust.works 7 months ago
linux is caching a lot, if there’s enough RAM. you can see it in the output of the “free” command.
however, nothing stops you from moving all the stuff you frequently use to a ramdisk. it’s just uncomfortable copying it over and refreshing it as updates come in. also you may want to persist some files.
personally i have my shader caches on a ramdisk on some of my boxes. the gains are minimal.
corsicanguppy@lemmy.ca 7 months ago
mount /dev/vg-ssd/lv-usr /usr
But do it during install or you have to go behind and remove the eclipsed install stuff after.
And don’t do it on systemd-afflicted systems as lennart’s cancer makes that harder because he couldn’t figure out what a /usr directory was important and he ditched it. Dunning-kruger says what?
anlumo@lemmy.world 7 months ago
/usr was introduced because the original UNIX machine ran out of storage space and they had to mount a second drive.
steersman2484@sh.itjust.works 7 months ago
I just memeory leak and gain infinite performance /s