This is bullshit. I wanted to play Terraria last night but I looked at my RAM usage and it was sitting uncomfortably high at 13 GB (of my 15). So, I close Terraria, and it drops about 2 GB. I close Firefox, Thunderbird, and Zed, and that drops about 2.5 GB. Then I close basically everything and it’s still super high! Each time this happens, I have to restart my computer in order to get the RAM usage lower.

Whenever I look this up it’s usually two camps:

  • KDE is just bloated.
  • Unused RAM is wasted RAM.

To address both of these:

I disabled a few things in KDE like file indexing (which was my home directory). Cool, so that saved like 100 MB. KDE is supposed to idle at around 3GB anyways, so what now?

The “unused RAM” belief is like a folktale at this point. It’s not true anymore, and buffered/cache memory is shown separately. Plus, I can drop those caches whenever I want… Which I did. File inode cache only really became a problem for me when I was doing Minecraft Datapack development and I was creating hundreds of files on a regular basis as part of hot reload. Then I’d have to drop the entire cache because it wasn’t being free’d…

However, the RAM I’m complaining about is actually not that, because it steps on my available RAM meter. Having a game freeze up because I was out of memory is a pain in the ass.

I even tried installing Zram, which only made matters worse since the active memory allocations seemed to be robbing the CPU of time it would be running game code, just so it could compress file pages. (My system has also just had major lag problems with swap, in general, during high memory pressure, which I should probably report as a bug). My swappiness was probably way too high, but regardless I didn’t see major improvements from that and it only seemed like a bandaid to the real problem. Also, why should I need to use swap when I have 16 GB of RAM and only a few programs open at a time?

This whole thing is pretty annoying. Whenever I have like 11 hours of uptime my memory is unusually high. I also can’t seem to track it down to any particular application…

System: OpenSUSE Tumbleweed

  • chloroken@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    5 hours ago

    You haven’t described a single symptom of your RAM usage. Just that you’re using it. Doesn’t that strike you as bizarre?

    RAM is meant to be used. I have no clue why you’re worried.

  • Treczoks@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    8 hours ago

    Learn to read RAM usage data. Even after short use, a lot of RAM is in use instead of just free, and that is by design. Look at what it is used for. Because since about the moment Linux got block devices, unused RAM is used as disk buffers.

  • Nine@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    9 hours ago

    Just from that screenshot, I don’t see anything wrong. Your load is fine, you’re not swapping, and you have plenty of stuff cached with plenty of room to spare.

    Linux will try to cache as much as possible into memory; it doesn’t mean that it’s “using” it. So it seems like you’re conflating memory used with memory availability.

    If you start spilling into swap, then you’re getting a little high on your usage. For most people, the default settings for everything are fine; it’s also possible to over-optimize your system into worse performance.

  • Guiorgy@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    9 hours ago

    It’s not wrong that free RAM is wasted RAM, at least not if properly used for caching in a way that is simple and fast to release when the system does need more RAM.

  • WereCat@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    2
    ·
    16 hours ago

    If unused RAM is wasted RAM then:

    1.) Windows must be using more RAM to be slower a lot faster

    2.) Your name is Sam Altman

    • Scrubbles@poptalk.scrubbles.tech
      link
      fedilink
      English
      arrow-up
      11
      ·
      20 hours ago

      I am too. Why not use your ram, you paid for it. Else you’re writing to slow files and and caching things. I’d gladly have everything I need in ram if it fits.

      What I’m more concerned about is applications releasing ram when I need it back. If I start a game will the browser give back the ram? That’s my only concern though

  • Björn@swg-empire.de
    link
    fedilink
    English
    arrow-up
    21
    ·
    22 hours ago

    I’m in the unused RAM is wasted RAM camp. Unless I run into problems I don’t care about memory usage. So in your case I would’ve kept playing unless I got constant stutters.

    And I think KDE is surprisingly light. Especially compared to older versions.

    • mantricx@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      18 hours ago

      I mean I think KDE is the heaviest it’s ever been, it just started out heavier than its competitors but grew slower. So it’s light enough now that we’re not using pentium 4 with 1GB RAM.

  • castironfan@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    21 hours ago

    Use something like ps to list out what is using the RAM

    You mention you closed Firefox and it didn’t change but you did not say how you actually measured it.

    Start the system up fresh and run this command.

    ps faux --sort=-%mem

    Or

    ps faux --sort=-rss

    That will help you track down what is actually using it.

    Note: browsers will soak up a ton of memory on modern systems as almost all of them sandbox tabs at this point. If you open a ton of tabs, that will be half your problem.

  • HouseWolf@pawb.social
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    20 hours ago

    You apparently can limit programs memory cap using cgroups. I haven’t tried it however.

    Wouldn’t be the first…or 5th time I’ve seen Minecraft max out ram.

    Me and some friends managed to crash a guys 64Gig server rack because the modpack my friend made had a bad memory leak.

    • frongt@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      17 hours ago

      Meh. My desktop has 64gb and I broke it this morning by loading too much stuff into RAM.

  • Taasz/Woof@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    20 hours ago

    What processes were using all the ram? I’m curious if there was one huge one or if nothing seemed to be the culprit specifically.

  • chillxjr@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 day ago

    my debian KDE processes all together idle at around 2.5 gb, you must have a crapload of autostart background processes?

    when I have youtube in firefox open, that takes up 4 gigs by itself

  • Zen_Shinobi@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    22 hours ago

    Specs?

    Terraria is hardly resource friendly. What were you doing on FF, livestreaming?

    Installing zram seems to me you have low end specs. You need a lightweight DE