55
submitted 1 year ago* (last edited 1 year ago) by Quills@sh.itjust.works to c/asklemmy@lemmy.ml

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
[-] dan@upvote.au 8 points 1 year ago* (last edited 1 year ago)

I wouldn't worry too much about it, since good modern SSDs have such high TBW values that you could usually rewrite half the disk every day and it'd still survive the warranty period. SSDs often survive longer than the TBW value - that's just the amount that's warrantied, and manufacturers are very conservative in their warranties.

I've seen server systems that have been running 24/7 for over 10 years, with a consumer grade SSD (Samsung 830 EVO or equivalent), with swap enabled, and they're still running fine.

If you have plenty of RAM (i.e. you usually don't actually need swap), reduce the value of vm.swappiness in /etc/sysctl.conf. 10 is a good value in that case. It's a number between 0 and 100, where 0 means to never swap and 100 means to always swap (apps will be swapped out shortly after loading). The default on many distros is 60, which tends to start swapping quite a bit once the RAM is around 50% full).

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

Asklemmy

43835 readers
841 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