this post was submitted on 24 Aug 2023
151 points (83.3% liked)

linuxmemes

20880 readers
4 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 

Source: NTDev on Twitter

(no, I won't call it "x")

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 40 points 1 year ago (1 children)

That swapping will soon kill the SSD.

[–] [email protected] 5 points 1 year ago (1 children)

I know this is a meme community but could you elaborate? Is swap bad for ssd's?

[–] [email protected] 29 points 1 year ago* (last edited 1 year ago) (2 children)

Writing to SSDs wear them out. Most (good) SSDs publish a TBW value on the packaging which is intended to provide guidance on when to replace the drive to avoid data loss (e.g. a 1TB may have a TBW of 600, so you should replace it after about 600TB of data have been written to the disk).

The constant writing shown in the screenshot must be swap since the available memory is too small for Windows. Swapped data can't be used directly, so for Windows to make use of it it'll need to write something else to swap before reading the data it currently needs back from swap, do something with it, then write it to the swap file again before repeating with something else. That churn will happen very quickly on modern systems and drives.

If you have a swap file on an SSD it isn't the end of the world. You just need to monitor the disk activity. If it stays high you may not get the longevity out of the drive you'd planned on. In all cases, however, finding a backup solution/system that works for you so that if the disk does die prematurely you don't lose what's important is always a good idea.

[–] [email protected] 6 points 1 year ago

Lmao, I've had literally 40-70GB of highly active application swap on an SSD for the last couple months now because I opened stuff and then didn't close it.

That said, I chose and installed that drive years ago specifically for this use case (though originally for less intensive/more reasonable cases), and I'm aware of the stupidity of letting it be used like this now.

[–] [email protected] 1 points 1 year ago

This answer covers it all.