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.

    • Dave@lemmy.nzOP
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      This site says Linux calls cached RAM “free” but in my screen shot it’s definitely being shown as “used”. I guess this is a choice of this app?

        • Dave@lemmy.nzOP
          link
          fedilink
          arrow-up
          0
          ·
          2 months ago

          Well top currently shows:

          MiB Mem :  64076.1 total,   2630.3 free,  51614.1 used,  34046.9 buff/cache     
          MiB Swap:   4096.0 total,      2.3 free,   4093.7 used.  12462.0 avail Mem 
          

          While the “Mission Center” app shows:

          67GB RAM total, 54GB RAM in use. 12GB available. 29GB cached.

          • mexicancartel@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 months ago

            Subtract cached and free from total to get actual usage Htop shows visually though with cached as yellow or so I think you are using about 30 gb ram.

            Honestly, apart from firefox, what are you running? Does that include vms? I have 8GiB ram(7.1 usable) and uses like 1.8gb on idle and about 5-6.5gb on my personal highest usage

  • Jhex@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    many Linux distros are optimized to use as much available RAM as possible, free RAM is wasted RAM

    Most would still run with a lot less anyway

  • mvirts@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    Don’t be confused by cached ram, be confused by the oom killer activating while you have plenty of swap and for some reason it kills the shell you ran Firefox from.

    If you want to go on a memory allocation adventure try disabling memory overcommit 🥲

  • Oinks@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    2 months 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
      0
      ·
      2 months 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.