Quote:
Originariamente inviato da eaman
Codice:
# cat /etc/cron.weekly/fstrim
#!/bin/bash
# this cronjob will discard unused blocks on the SSD mounted filesystems
# get the locally mounted block devices - those starting with "/dev:
# run df -k, pipe the result through grep and save the sixth field in
# in the mountpoint array
mountpoint=( $(df -l | grep ^/dev | awk '{print $6}') )
# loop through the array and run fstrim on every mountpoint
for i in "${mountpoint[@]}"
do
/sbin/fstrim -v $i;
done
Ricordatevi che se e' un portatile o una workstation che non fa 24/7 dovete farci girare anacron oltre a cron.
|
Devo informarmi meglio sui 2 comandi, non li conosco bene.
Quindi il file č in etc/cron.weekly/fstrim?
Volevo anche modificare lo scheduler del kernel, spostare le cartelle /var e /tmp, spostare i profili dei browser(firefox) in /tmpfs, cosi come ho letto nel wiki di Arch, cosa ne dite?
Per il momento TRIM attivato e funzionante dalle verifiche fatte, anche se le prestazioni non sono da urlo (MX200).