I noticed that manual seldom invocations of
fstrim -av take a lot of time (over 10 minutes) and report a lot of free space to the SSD:
# /usr/bin/time -p fstrim -av /boot/efi: 503,2 MiB (527671296 Bytes) auf /dev/sda1 getrimmt /: 377 GiB (404832960512 Bytes) auf /dev/sda2 getrimmt real 691.65 user 0.00 sys 4.90
This makes me think that for whatever reason, the free blocks are not reported by the operating system automatically despite of the
discard flags in
/etc/fstab. So, I wish to go sure and get
fstrim -a executed regularly; I'm ok with each computer start, each day, each week, or once a month. What's the best way to arrange this schedule automatically; in other words, into which script file do I add this call?