this post was submitted on 24 Aug 2023
55 points (98.2% liked)

Asklemmy

43945 readers
638 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[โ€“] emptyother@programming.dev 10 points 1 year ago (1 children)

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 4 points 1 year ago (1 children)

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@pawb.social 12 points 1 year ago (1 children)

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

[โ€“] jet@hackertalks.com 9 points 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.