• bamboo
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 months ago

    Not using available ram only is true when doing so could offer performance benefits. Many applications can’t be sped up by using more ram. Using more ram for no obvious reason is stupid, especially on a machine that has to do other things at the same time.

    • helenslunch@feddit.nl
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      2 months ago

      I mean what differences does it make if it’s needed or not if it’s not in use?

      • bamboo
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 months ago

        Bad memory management can actually slow down applications significantly. Allocating memory is actually a fairly expensive operation. So much that high performance software actually uses a bunch of tricks to avoid extra allocations where possible. Additionally, accessing memory is actually kinda slow for a CPU, and the CPU often has to sit around for many clock cycles waiting for memory to be retrieved if it’s not in the CPU’s cache. If your main data can be stored more compactly, more of that data can fit in your CPU’s cache, reducing that idle time.

        • helenslunch@feddit.nl
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 months ago

          Bad memory management can actually slow down applications

          Who said anything about “bad” memory management?

          • bamboo
            link
            fedilink
            English
            arrow-up
            2
            ·
            2 months ago

            Bad memory management includes allocating memory you aren’t actually making use of.