Je possède un Samsung 840 Pro (ssd) et j'utilise une tâche cron.daily pour ce script :
Code : Tout sélectionner
#!/bin/sh
# Executer la commande fstrim
LOG=/var/log/fstrim.log
echo "*** $(date -R) ***" >> $LOG
fstrim -v / &>> "$LOG"
fstrim -v /boot &>> "$LOG"
fstrim -v /home &>> "$LOG"
Code : Tout sélectionner
*** Thu, 15 May 2014 10:26:01 +0200 ***
/ : 24,9 GiB (26683629568 octets) taillés
/boot : 453,8 MiB (475811840 octets) taillés
/home : 85,9 GiB (92195131392 octets) taillés
*** Fri, 16 May 2014 09:49:01 +0200 ***
/ : 24,9 GiB (26679898112 octets) taillés
/boot : 453,8 MiB (475807744 octets) taillés
/home : 85,8 GiB (92131598336 octets) taillés
*** Sat, 17 May 2014 09:15:01 +0200 ***
/ : 1,6 GiB (1725161472 octets) taillés
/boot : 0 B (0 octets) taillés
/home : 913 MiB (957362176 octets) taillés
*** Sun, 18 May 2014 11:35:02 +0200 ***
/ : 2 GiB (2093096960 octets) taillés
/boot : 0 B (0 octets) taillés
/home : 1,8 GiB (1891545088 octets) taillés
1 - Vaut-il mieux utiliser la veille en RAM et ainsi ne pas avoir beaucoup de données taillées ?
2 - Le fait d'avoir beaucoups de données taillées, a-t-il une incidence sur l'usure du ssd ?
Je vous remercie d'avance pour vos réflexions et remarques.