View Single Post
Old 06-10-2015, 11:39   #15
semmy83
Senior Member
 
L'Avatar di semmy83
 
Iscritto dal: Sep 2008
Cittā: CS
Messaggi: 10393
Quote:
Originariamente inviato da eaman Guarda i messaggi
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).
__________________

OVUNQUE TU SIA, UN GIORNO GIOCHEREMO ANCORA INSIEME...

DA EVITARE: EagleStar - Savio3000+ - Saltalungo - brabby198 - Sandro1483 - OldField - BuLLdOzEr91
semmy83 č offline   Rispondi citando il messaggio o parte di esso