Possibly related:

screen shot of memory usage by app, showing Firefox using over 18GB of RAM

I also don’t understand why every chat app needs 1GB of RAM to itself.

  • Oinks@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    15
    ·
    edit-2
    12 hours ago

    Many people who don’t know what they’re talking about in this thread. No, used memory does not include cached memory. You can confirm this trivially by running free -m and adding up the numbers (used + cached + free = total). Used memory can not be reclaimed until the process holding it frees it or dies. Not all cached memory can be reclaimed either, which is why the kernel reports an estimate of available memory. That’s the number that really matters, because aside from some edges cases that’s the number that determines whether you’re out of memory or not.

    Anyway the fact that you can’t run Linux with 16GB is weird and indicates that some software you are using has a RAM leak (a Firefox extension perhaps?). Firefox will use memory if it’s there but it’s designed to cope with low memory as well, it just unloads tabs quicker so you have to reload often. There are also extensions that make tab unloading more aggressive, maybe that would help - especially if there’s memory pressure from other processes too.

    • Dave@lemmy.nzOP
      link
      fedilink
      arrow-up
      2
      ·
      12 hours ago

      Yeah the cache as part of used memory theory didn’t stack up. This comment (sorry, Lemmy probably doesn’t handle the link well) showed 54GB in use, 30GB cached, and 13GB available. 54+12 = 67GB total so cached doesn’t seem to be counted as in use since it should be counted as free (mostly).

      In the end, I’m pretty sure it’s a memory hog website. It kept filling up until GNOME crashed and I lost my progress (I was trying to order prints for 1000 photos on a horrible website that made me change settings one photo at a time, and the longer I took the more RAM filled up).

      Anyway the fact that you can’t run Linux with 16GB is weird

      I mean, it runs fine. It’s more how I’m using it. Firefox 4GB, Element 1GB, Signal 1GB, Beeper 1GB, Steam 2GB, Joplin 1GB. That’s all just open and idle (chats and Steam don’t even have windows, just background) and are the minimum I would have open at any point. That’s already 10GB. By the time I open a couple of windows in a Jetbrains IDE or a particularly demanding website and suddenly it’s suffocating.