Trim on most machines is setup automatically to run weekly. You can check with this command in a terminal.
systemctl cat fstrim.timer
You should see an output similar to this.
[Unit]
Description=Discard unused blocks once a week
Documentation=man:fstrim
ConditionVirtualization=!container
ConditionPathExists=!/etc/initrd-release
[Timer]
OnCalendar=weekly
AccuracySec=1h
Persistent=true
RandomizedDelaySec=6000
[Install]
WantedBy=timers.target
It can be changed to run daily if you choose.
systemctl cat fstrim.timer
You should see an output similar to this.
[Unit]
Description=Discard unused blocks once a week
Documentation=man:fstrim
ConditionVirtualization=!container
ConditionPathExists=!/etc/initrd-release
[Timer]
OnCalendar=weekly
AccuracySec=1h
Persistent=true
RandomizedDelaySec=6000
[Install]
WantedBy=timers.target
It can be changed to run daily if you choose.
Statistics: Posted by kc1di — 2024-02-21 12:55 — Replies 1 — Views 49