:: Re: [DNG] SSD Lifetime?
Forside
Slet denne besked
Besvar denne besked
Skribent: Steve Litt
Dato:  
Til: dng
Emne: Re: [DNG] SSD Lifetime?
Martin Steigerwald said on Tue, 05 Dec 2023 09:09:38 +0100

>smartctl -x on a Samsung 980 Pro 2 TB SSD which is about 2 years
>meanwhile, in daily usage:
>
>Available Spare:                    100%
>Available Spare Threshold:          10%
>Percentage Used:                    1%
>[…]
>Data Units Read:                    261.509.276 [133 TB]
>Data Units Written:                 73.925.789 [37,8 TB]


Nice! Here's mine:

Available Spare:                    100%
Available Spare Threshold:          10%
Percentage Used:                    1%
Data Units Read:                    543,369 [278 GB]
Data Units Written:                 11,883,671 [6.08 TB]
[...]


Mine is 2TB, split into a (not working) Ubuntu OS and a (working) Void
install. It's about 9 months old. The explanation of so many more data
units written than read is a complete mystery: I set it up to do almost
only reads off this drive.

>
>Especially in case you leave some space free,


We're on the same page here:

[slitt@mydesk ~]$ df -h /
Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p1  1.4T   57G  1.2T   5% /
[slitt@mydesk ~]$



>use trimming either by
>fstrim


I fstrim / right after every package update, which I do between 1 and 5
times a week. I agree it's vitally important. It takes between 30
seconds and 4 minutes, so do before a coffee break.

>so it updates every 2 hours instead of AFAIR 24 hours in case of no
>other activity triggering an update.


I'll have to try that. I might set it to 30 or even 15 minutes, because
a computer can do a million things in 15 minutes, so the cost of a
hardware disk write is low, and reduces the amount of data loss or
garble in the event of a dirty shutdown.

SteveT

Steve Litt

Autumn 2023 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21