this post was submitted on 20 Jan 2024
110 points (100.0% liked)

Technology

37585 readers
289 users here now

A nice place to discuss rumors, happenings, innovations, and challenges in the technology sphere. We also welcome discussions on the intersections of technology and society. If it’s technological news or discussion of technology, it probably belongs here.

Remember the overriding ethos on Beehaw: Be(e) Nice. Each user you encounter here is a person, and should be treated with kindness (even if they’re wrong, or use a Linux distro you don’t like). Personal attacks will not be tolerated.

Subcommunities on Beehaw:


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 11 points 7 months ago* (last edited 7 months ago) (1 children)

Meanwhile, chrome and desktop apps (Electron-based) like Slack, note apps, etc, takes 1GB just to open... Well, tbh I don't know if they really use physical RAM space, but anyway.

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

Yes and no.

On modern OSs, files get mapped into RAM, which is a fancy way of saying "it can stay on disk, but it can also be cached in RAM, but the unmodified parts can get discarded out of cache at any moment, and any changes go first to RAM, then get written to disk at some later time".

The apps also use buffers to hold data, and one of the largest buffers is for the canvas or window display buffer. These have to use actual RAM while the app is running; you can only swap them out to swap/pagefile if you suspend the app... which is doable, but rarely done... otherwise they'll get swapped back in, the moment the app needs them (which usually is all the time... but some buffers might stay mostly swapped out some of the time).

There is also RAM compression going on (at least on Windows), that can keep mostly empty and/or rarely used buffers all the time "in RAM", but taking just a fraction of the space.