Does having swap memory damage SSDs too much, what do you think about it?

  • emptyother@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    I did calculate it once on an older samsung drive. If you write multiple terabytes every day, you will cross samsungs estimated lifetime in 3 years.

    I have no idea how much data a swap partition move per day but it can’t be near that much?

    • kev@lemmy.kevhomeit.trade
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      1 year ago

      But the swap partition is only used when you run out of ram right? If I have enough ram I should not worry about that.

      • Wyrryel
        link
        fedilink
        arrow-up
        10
        ·
        1 year ago

        No, it’s used much more often. How often is determined by a value called swapiness.

        • jet@hackertalks.com
          link
          fedilink
          English
          arrow-up
          7
          ·
          1 year ago

          100% this. An aggressive memory manager could preemptively write everything from memory to swap even though it’s still in memory, in case it has to evict it quickly.