this post was submitted on 26 Jul 2024
90 points (100.0% liked)

Personal Knowledge Management Systems (PKMS)

500 readers
1 users here now

A place for people to discuss Personal Knowledge Management Systems (PKMS) such as "Building a Second Brain" (BASB), Obsidian, and more.

founded 1 year ago
MODERATORS
 

Comments are: it's to be expected

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 10 points 3 months ago (1 children)

This. I also wonder when people will realize that having more RAM doesn't mean having to use it all (electron, looking at you)

[–] [email protected] 7 points 3 months ago (2 children)

I think most operating systems today are designed to make opportunistic use of available RAM but also fuck electron

[–] [email protected] 6 points 3 months ago (1 children)

Yes, it's called page cache and you won't find a mainstream operating system without it.

[–] [email protected] 1 points 3 months ago (1 children)

I regularly get to a 30gb page file on my desktop though...it has sufficient space but still

[–] [email protected] 2 points 3 months ago (1 children)

That's a different mechanism. A "page" is just a fixed-size portion of memory, e.g. 4 KiB, which is a convenient size for your OS to do its whole memory management with. And then there's many things the OS does with such pages.

Page caching keeps files that processes loaded from your hard drive in RAM, after the process doesn't need it anymore.

What you're referring to is kind of the opposite. The OS allows processes to reserve more memory than there is physically available. This is called "virtual memory".
When processes do that, then some of those ~~portions of memory~~ pages get put onto your hard drive, and only get put back into RAM (replacing something else) when the process actually accesses those pages.

[–] [email protected] 2 points 2 months ago* (last edited 2 months ago)

The fundamental result isn't much different, there's 30 GB of populated memory being sent to disk because these apps all over allocate and the os insists on sending it to disk even with 40% of real ram free.

[–] [email protected] 3 points 3 months ago (2 children)

Caching and Electron are two vastly different things.

[–] [email protected] 4 points 3 months ago (2 children)

What they're saying is that because of this caching, unused RAM is essentially just not a thing. Any process using lots of RAM will slow down everything else on your PC.

[–] [email protected] 2 points 3 months ago

I was mainly just making a playful remark about electron being stinky

[–] [email protected] 1 points 3 months ago* (last edited 3 months ago)

It's still not the same. The caches can be quickly evicted, but the RAM hoarded by a shitty app cannot be reclaimed without killing the app.

Edit: downvotes, no replies. Y'all just salty that I'm right?