Interne und externe Samsung SSD - Trim & Smart

Hast Du Probleme mit Hardware, die durch die anderen Foren nicht abgedeckt werden? Schau auch in den "Tipps und Tricks"-Bereich.
Antworten
ocram
Beiträge: 217
Registriert: 26.04.2018 22:30:24

Interne und externe Samsung SSD - Trim & Smart

Beitrag von ocram » 30.05.2019 19:47:05

Habe gerade den anderen Thread über Trim gelesen, und da fiel mir wieder ein, das ich das Thema bislang ignoriert / verdrängt habe.
Ich dachte immer, dass es nicht mehr notwendig sei sich darum zu kümmern, aber offenbar doch?

edit: Und hier ist sogar von Problemen mit Trim bei Samsung SSD die Rede: https://wiki.debian.org/SSDOptimization

Ich habe eine interne Samsung EVO 850 SSD, auf der mein System liegt und eine externe Samsung T5 über USB 3.0 angeschlossen.
Meine fstab schaut folgendermaßen aus:

Code: Alles auswählen

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=8ea536dc-6928-4da9-a747-2fa60cf3d097 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda6 during installation
UUID=2f1dc8ca-1bdd-4feb-964f-de1213159542 /home           ext4    defaults        0       2
# swap was on /dev/sda5 during installation
UUID=7504a9ac-53f6-49e3-a25d-1a764a8babc7 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0

#Eintraege von marco
#shm    /dev/shm        tmpfs   nodev,nosuid,noexec,size=4000M      0       0
#tmpfs   /tmp            tmpfs   defaults,size=7500M,mode=1777   0   0

#Einhaengen der externen SSD 
UUID=83c8eae8-06dd-4a9a-ba3b-d52b9e86138c /media/SamsungT5  ext4   rw,user,noauto 0       0

~
(END)
So wie ich das nun verstehe, wird kein trim verwendet. Muß man da noch discard eintragen oder reicht es Trim manuell (für beide SSDs) auszuführen?
Zweite Frage wäre das Lesen der Smart-Daten betreffend. Was sind hier die kritischen und vertrauenswürdigen Parameter, wenn es um die Gesundheit der Platte geht?
Reicht es sich hier auf "SMART overall-health self-assessment test result: PASSED" zu verlassen?

Code: Alles auswählen

root@fox:/etc# smartctl -d sat -a /dev/sdb
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-9-amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     Samsung Portable SSD T5
Serial Number:    S3ULNK0JC05433Z
LU WWN Device Id: 5 002538 d00000000
Firmware Version: MVT41P1Q
User Capacity:    250.059.350.016 bytes [250 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      mSATA
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4c
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Thu May 30 19:44:11 2019 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		(    0) seconds.
Offline data collection
capabilities: 			 (0x53) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					No Offline surface scan supported.
					Self-test supported.
					No Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 ( 133) minutes.

SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   099   099   000    Old_age   Always       -       1514
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       351
177 Wear_Leveling_Count     0x0013   100   100   000    Pre-fail  Always       -       0
179 Used_Rsvd_Blk_Cnt_Tot   0x0013   100   100   010    Pre-fail  Always       -       0
181 Program_Fail_Cnt_Total  0x0032   100   100   010    Old_age   Always       -       0
182 Erase_Fail_Count_Total  0x0032   100   100   010    Old_age   Always       -       0
183 Runtime_Bad_Block       0x0013   100   100   010    Pre-fail  Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0032   074   067   000    Old_age   Always       -       26
195 Hardware_ECC_Recovered  0x001a   200   200   000    Old_age   Always       -       0
199 UDMA_CRC_Error_Count    0x003e   100   100   000    Old_age   Always       -       0
235 Unknown_Attribute       0x0012   099   099   000    Old_age   Always       -       351
241 Total_LBAs_Written      0x0032   099   099   000    Old_age   Always       -       226983433

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
  255        0    65535  Read_scanning was never started
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

Code: Alles auswählen

root@fox:/etc# smartctl -d sat -a /dev/sda
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-9-amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Samsung based SSDs
Device Model:     Samsung SSD 850 EVO 250GB
Serial Number:    S21PNXDG907533P
LU WWN Device Id: 5 002538 d405c9bac
Firmware Version: EMT01B6Q
User Capacity:    250.059.350.016 bytes [250 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4c
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Thu May 30 19:44:36 2019 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		(    0) seconds.
Offline data collection
capabilities: 			 (0x53) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					No Offline surface scan supported.
					Self-test supported.
					No Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 ( 133) minutes.
SCT capabilities: 	       (0x003d)	SCT Status supported.
					SCT Error Recovery Control supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   099   099   000    Old_age   Always       -       3261
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       906
177 Wear_Leveling_Count     0x0013   099   099   000    Pre-fail  Always       -       11
179 Used_Rsvd_Blk_Cnt_Tot   0x0013   100   100   010    Pre-fail  Always       -       0
181 Program_Fail_Cnt_Total  0x0032   100   100   010    Old_age   Always       -       0
182 Erase_Fail_Count_Total  0x0032   100   100   010    Old_age   Always       -       0
183 Runtime_Bad_Block       0x0013   100   100   010    Pre-fail  Always       -       0
187 Uncorrectable_Error_Cnt 0x0032   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0032   071   059   000    Old_age   Always       -       29
195 ECC_Error_Rate          0x001a   200   200   000    Old_age   Always       -       0
199 CRC_Error_Count         0x003e   100   100   000    Old_age   Always       -       0
235 POR_Recovery_Count      0x0012   099   099   000    Old_age   Always       -       3
241 Total_LBAs_Written      0x0032   099   099   000    Old_age   Always       -       4515978601

SMART Error Log Version: 1
No Errors Logged

Warning! SMART Self-Test Log Structure error: invalid SMART checksum.
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Aborted by host               80%       117         -
# 2  Extended offline    Completed without error       00%       117         -
# 3  Extended offline    Completed without error       00%       116         -
# 4  Short offline       Completed without error       00%       116         -
# 5  Extended offline    Completed without error       00%       116         -

Warning! SMART Selective Self-Test Log Structure error: invalid SMART checksum.
SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
  255        0    65535  Read_scanning was never started
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
Danke für die Aufklärung :)
Quad core Intel Core i5-4460, H81M-E34
Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
Desktop: Xfce 4.12.3 Distro: Debian GNU/Linux 10 (Buster), +KXStudio

TomL

Re: Interne und externe Samsung SSD - Trim & Smart

Beitrag von TomL » 30.05.2019 21:08:29

ocram hat geschrieben: ↑ zum Beitrag ↑
30.05.2019 19:47:05
..., und da fiel mir wieder ein, das ich das Thema bislang ignoriert / verdrängt habe. Ich dachte immer, dass es nicht mehr notwendig sei sich darum zu kümmern, aber offenbar doch?
Genau das habe ich bisher auch so gemacht... verdrängt... weil ich auch nicht weiss, obs notwendig ist oder nicht. Und deswegen hab ich einfach gar nix gemacht.... auf allen 3 SSD's. Bislang habe ich jedenfalls überhaupt nix davon bemerkt, dass sich deswegen irgendwas verschlechtert hat. Ich habe jetzt gerade mal auf die Samsung 850 pro/256GB meines PC geschaut....

8000 Laufzeit-Stunden
1900 GB geschrieben.

Mir kommts unverändert vor, immer noch genau so wie am ersten Tag... ich denke, ich werde das Thema trim wohl auch weiterhin ignorieren..... :roll:

ocram
Beiträge: 217
Registriert: 26.04.2018 22:30:24

Re: Interne und externe Samsung SSD - Trim & Smart

Beitrag von ocram » 30.05.2019 21:19:47

TomL hat geschrieben: ↑ zum Beitrag ↑
30.05.2019 21:08:29
ocram hat geschrieben: ↑ zum Beitrag ↑
30.05.2019 19:47:05
..., und da fiel mir wieder ein, das ich das Thema bislang ignoriert / verdrängt habe. Ich dachte immer, dass es nicht mehr notwendig sei sich darum zu kümmern, aber offenbar doch?
Genau das habe ich bisher auch so gemacht... verdrängt... weil ich auch nicht weiss, obs notwendig ist oder nicht. Und deswegen hab ich einfach gar nix gemacht.... auf allen 3 SSD's. Bislang habe ich jedenfalls überhaupt nix davon bemerkt, dass sich deswegen irgendwas verschlechtert hat. Ich habe jetzt gerade mal auf die Samsung 850 pro/256GB meines PC geschaut....

8000 Laufzeit-Stunden
1900 GB geschrieben.

Mir kommts unverändert vor, immer noch genau so wie am ersten Tag... ich denke, ich werde das Thema trim wohl auch weiterhin ignorieren..... :roll:
Bei mir auch keine Probleme, aber meine liefen noch nicht annähernd so lange. Müsste man das nicht den den Smart-Daten sehen, ob defekte Transistoren vorliegen?
Quad core Intel Core i5-4460, H81M-E34
Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
Desktop: Xfce 4.12.3 Distro: Debian GNU/Linux 10 (Buster), +KXStudio

TomL

Re: Interne und externe Samsung SSD - Trim & Smart

Beitrag von TomL » 02.06.2019 12:01:35

ocram hat geschrieben: ↑ zum Beitrag ↑
30.05.2019 21:19:47
Müsste man das nicht den den Smart-Daten sehen, ob defekte Transistoren vorliegen?
Ich weiss das nicht... ich gestehe, dass ich immer nur ein mäßig guter Fahrer war, von der Schrauberei hab ich nie was verstanden ... ich habe also wirklich keine Ahnung, was da elektronisch abgeht und kann das auch nicht einschätzen. Allerdings gibts hier genügend Anwender, mit zeitlich deutlich längerer Erfahrung. Ich weiss jedoch nicht, ob die trimmen... ich tus halt nicht.

So sieht die Samsung aktuell aus, bei der ich mir über pfleglichen Umgang damit heute echt keinerlei Gedanken mehr mache. Ich behandele die nicht anders, als ne normale Festplatte. Ich interpretiere diese Ausgaben auch nicht als beunruhigend.... eher im Gegenteil.

Code: Alles auswählen

ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
182 Erase_Fail_Count_Total  0x0032   100   100   010    Old_age   Always       -       0
183 Runtime_Bad_Block       0x0013   100   100   010    Pre-fail  Always       -       0
187 Uncorrectable_Error_Cnt 0x0032   100   100   000    Old_age   Always       -       0
195 ECC_Error_Rate          0x001a   200   200   000    Old_age   Always       -       0
199 CRC_Error_Count         0x003e   100   100   000    Old_age   Always       -       0

Benutzeravatar
kalle123
Beiträge: 2702
Registriert: 28.03.2015 12:27:47
Wohnort: Mönchengladbach

Re: Interne und externe Samsung SSD - Trim & Smart

Beitrag von kalle123 » 02.06.2019 12:55:17

Ich hab hier folgende Punkte durchgeführt:

- alignment mit
$ sudo parted /dev/sda align-check opt
kontrolliert.

- "noatime" in fstab hinzugefügt

- geschaut, dass "fstrim.timer status" active ist.

- geschaut, was
Low-Latency IO-Scheduler
sagt.

--> mq-deadline hier bei mir.

und

- 'smartmontools' und 'smart-notifier' installiert und den 'notifier' konfiguriert und dann getestet.

und noch

- 'timeshift' aktiviert

Inwieweit das alles jetzt notwendig bzw. sinnvoll ist :?:

Zumindest die beiden letzten Punkte haben mir schon mal sehr geholfen.

Grüße

willy4711

Re: Interne und externe Samsung SSD - Trim & Smart

Beitrag von willy4711 » 02.06.2019 13:24:47

Ich bin da genauso blöd.
Alle paar Monate mach ich mal einen Klick ( :mrgreen: ) auf dem "Short Self-test" in Debiangsmartcontrol
bei meinen Platten und bin dann zufrieden, wenn da z.B. steht:
Device Model: Samsung SSD 850 PRO 128GB

Code: Alles auswählen

"Test #","Type","Status","% Completed","Lifetime hours","LBA of the first error"
1,"Short offline","Completed without error","100%","13.790","-"
Dann schau ich aber auch nur manchmal nach Daten die mir ziemlich wenig sagen:

Code: Alles auswählen

SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  5 Reallocated_Sector_Ct   PO--CK   100   100   010    -    0
  9 Power_On_Hours          -O--CK   097   097   000    -    13791
 12 Power_Cycle_Count       -O--CK   095   095   000    -    4222
177 Wear_Leveling_Count     PO--C-   098   098   000    -    111
179 Used_Rsvd_Blk_Cnt_Tot   PO--C-   100   100   010    -    0
181 Program_Fail_Cnt_Total  -O--CK   100   100   010    -    0
182 Erase_Fail_Count_Total  -O--CK   100   100   010    -    0
183 Runtime_Bad_Block       PO--C-   100   100   010    -    0
187 Uncorrectable_Error_Cnt -O--CK   100   100   000    -    0
190 Airflow_Temperature_Cel -O--CK   071   054   000    -    29
195 ECC_Error_Rate          -O-RC-   200   200   000    -    0
199 CRC_Error_Count         -OSRCK   100   100   000    -    0
235 POR_Recovery_Count      -O--C-   099   099   000    -    57
241 Total_LBAs_Written      -O--CK   099   099   000    -    11923472500
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning
AHA ----> Tool wird beendet und gut bis zum nächsten Mal. :roll: :mrgreen:

Benutzeravatar
kalle123
Beiträge: 2702
Registriert: 28.03.2015 12:27:47
Wohnort: Mönchengladbach

Re: Interne und externe Samsung SSD - Trim & Smart

Beitrag von kalle123 » 02.06.2019 14:02:39

willy4711 hat geschrieben: ↑ zum Beitrag ↑
02.06.2019 13:24:47
Ich bin da genauso blöd.
Da hab ich aber ne andere Antwort erwartet :mrgreen:

Ich mach das wie oben beschrieben auf der 60 GB SSD mit LM 19.1 '/'

und auf einer 120 GB SSD mit Buster '/' und '/home'

(Daten (Bilder, Dokumente .....) da per 'ls' auf der HDD.

Einzig, wo ich absolute nix gemacht hab ist auf der 2. 120 GB SSD mit WIN 10.
(Hat mich halt interessiert, womit man heute in den Büros so gequält
wird und alle paar Wochen brauch ich ein 'direkt' installiertes WIN.)

Ach, noch was. Hab bei den Linux SSDs nicht den ganzen Platz partitioniert, sondern ~10% unpartitioniert gelassen. Gab da mal Hinweise zu. Aber ob das immer noch gilt?

Grüße

Benutzeravatar
ingo2
Beiträge: 1124
Registriert: 06.12.2007 18:25:36
Lizenz eigener Beiträge: GNU Free Documentation License
Wohnort: Wo der gute Riesling wächst

Re: Interne und externe Samsung SSD - Trim & Smart

Beitrag von ingo2 » 02.06.2019 19:53:40

Also, ich nutze schon seit Jahren SSDs. Das "discard" = automatischer Trimm beim Löschen von Dateien nutze ich nicht, das ist mir zu riskant und vor Allem, da hab' ich keine Kontrolle drüber. Was ich mache:
1x pro Woche (cron-job) trimme ich in allen Linux-Systemen die Partitionen:

Code: Alles auswählen

fstrim -v /
fstrim -v /home/
...
Damit bin ich bisher bestens gefahren. Mein cron-job sieht so aus:

Code: Alles auswählen

#!/bin/sh
sleep 120
LOG=/var/log/batched-discard.log
MFE=1MiB
echo "" >> $LOG
echo "Minimum free extent = $MFE" >> $LOG
echo "Start: $(date -R)" >> $LOG
nice ionice -c idle fstrim -vm $MFE / >> $LOG
nice ionice -c idle fstrim -vm $MFE /home/ >> $LOG
echo "End:   $(date -R)" >> $LOG
Das "sleep" stellt sicher, daß die anderen weekly-Jobs bereits erledigt sind.
Die Option "-m" definiert den "minimum freee extent", also wie groß der zu trimmende Bereich mindestens sein soll/muß. Das soll verhindern, das 1000 winzige Schnipsel getrimmt werden. Ob das nötig ist und die SSDs sowieso immer mindestens 1 Blockgröße bearbeiten, weiß ich nicht.

Zu den SMART-Werten:
Kritisch sind die, mit dem Attribut "pre-fail", zumindest sind sie ein sinnvoller Indikator.
Hier eine schon 6 Jahre alte "Intel S3500" SSD:

Code: Alles auswählen

ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0032   100   100   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       21381
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       2014
170 Available_Reservd_Space 0x0033   100   100   010    Pre-fail  Always       -       0
171 Program_Fail_Count      0x0032   100   100   000    Old_age   Always       -       0
172 Erase_Fail_Count        0x0032   100   100   000    Old_age   Always       -       0
174 Unsafe_Shutdown_Count   0x0032   100   100   000    Old_age   Always       -       7
175 Power_Loss_Cap_Test     0x0033   100   100   010    Pre-fail  Always       -       613 (1 586)
183 SATA_Downshift_Count    0x0032   100   100   000    Old_age   Always       -       16
184 End-to-End_Error        0x0033   100   100   090    Pre-fail  Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
190 Temperature_Case        0x0022   075   075   000    Old_age   Always       -       25 (Min/Max 16/25)
192 Unsafe_Shutdown_Count   0x0032   100   100   000    Old_age   Always       -       7
194 Temperature_Internal    0x0022   100   100   000    Old_age   Always       -       32
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
199 CRC_Error_Count         0x003e   100   100   000    Old_age   Always       -       0
225 Host_Writes_32MiB       0x0032   100   100   000    Old_age   Always       -       110806
226 Workld_Media_Wear_Indic 0x0032   100   100   000    Old_age   Always       -       1312
227 Workld_Host_Reads_Perc  0x0032   100   100   000    Old_age   Always       -       0
228 Workload_Minutes        0x0032   100   100   000    Old_age   Always       -       1050137
232 Available_Reservd_Space 0x0033   100   100   010    Pre-fail  Always       -       0
233 Media_Wearout_Indicator 0x0032   099   099   000    Old_age   Always       -       0
234 Thermal_Throttle        0x0032   100   100   000    Old_age   Always       -       0/0
241 Host_Writes_32MiB       0x0032   100   100   000    Old_age   Always       -       110806
242 Host_Reads_32MiB        0x0032   100   100   000    Old_age   Always       -       578661
Trotz ihres hohen Alters (21.000h) ist die noch immer fast wie neu mit einem Media_Weare_Out_Index von 99% - also 1% bisher verbraucht. Geschrieben ca. 3,5TiB -> bei 120GB Kapazität = 30 mal voll

Gruß, Ingo

Benutzeravatar
ingo2
Beiträge: 1124
Registriert: 06.12.2007 18:25:36
Lizenz eigener Beiträge: GNU Free Documentation License
Wohnort: Wo der gute Riesling wächst

Re: Interne und externe Samsung SSD - Trim & Smart

Beitrag von ingo2 » 02.06.2019 21:38:18

Nachtrag - damit das "Samsung" im Titel auch bedacht wird ;-)
Habe set 2 Jahren auch eine Samsung 1TB 850 Pro für die großen Datenbrocken (Fotos, Musik, VM's, ..) in einem Unterverzeichnis von meinem $home eingehängt. Die ist ca. ½ voll und wird genauso wöchentlich getrimmt. Hier die SMART-Werte:

Code: Alles auswählen

Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   098   098   000    Old_age   Always       -       7073
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       684
177 Wear_Leveling_Count     0x0013   099   099   000    Pre-fail  Always       -       2
179 Used_Rsvd_Blk_Cnt_Tot   0x0013   100   100   010    Pre-fail  Always       -       0
181 Program_Fail_Cnt_Total  0x0032   100   100   010    Old_age   Always       -       0
182 Erase_Fail_Count_Total  0x0032   100   100   010    Old_age   Always       -       0
183 Runtime_Bad_Block       0x0013   100   100   010    Pre-fail  Always       -       0
187 Uncorrectable_Error_Cnt 0x0032   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0032   070   055   000    Old_age   Always       -       30
195 ECC_Error_Rate          0x001a   200   200   000    Old_age   Always       -       0
199 CRC_Error_Count         0x003e   100   100   000    Old_age   Always       -       0
235 POR_Recovery_Count      0x0012   099   099   000    Old_age   Always       -       2
241 Total_LBAs_Written      0x0032   099   099   000    Old_age   Always       -       4604223439
Die ist schon 2,5x voll geschrieben und hat auch erst 2% ihres Lebens "verbraucht", sollte also noch ca. 48 Jahre halten ;-)

ocram
Beiträge: 217
Registriert: 26.04.2018 22:30:24

Re: Interne und externe Samsung SSD - Trim & Smart

Beitrag von ocram » 04.06.2019 22:01:16

Danke für die Antworten, dann werde ich künftig mal den Wear_Leveling_Count im Auge behalten. Das schaut bei meinen Platten ja nocht gut aus.
Quad core Intel Core i5-4460, H81M-E34
Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
Desktop: Xfce 4.12.3 Distro: Debian GNU/Linux 10 (Buster), +KXStudio

Benutzeravatar
jph
Beiträge: 1049
Registriert: 06.12.2015 15:06:07
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Greven/Westf.

Re: Interne und externe Samsung SSD - Trim & Smart

Beitrag von jph » 08.06.2019 22:36:53

ocram hat geschrieben: ↑ zum Beitrag ↑
30.05.2019 19:47:05
So wie ich das nun verstehe, wird kein trim verwendet. Muß man da noch discard eintragen oder reicht es Trim manuell (für beide SSDs) auszuführen?
Letzteres.

# systemctl enable fstrim.timer

Bei Stretch musst du zuvor fstrim.timer und fstrim.service von /usr/share/doc/util-linux/examples/ nach /etc/systemd/system/ kopieren, bei Buster liegen die Units in /lib/systemd/system/ und können ohne weiteres verwendet werden.

tijuca
Beiträge: 296
Registriert: 22.06.2017 22:12:20

Re: Interne und externe Samsung SSD - Trim & Smart

Beitrag von tijuca » 09.06.2019 19:32:31

Das Debian Wiki hat zu SSDs allgemein und explizit zu diesem Thema zahlreiche Informationen.

https://wiki.debian.org/SSDOptimization ... ilesystems

Antworten