TRIM will not be activated automatically if Linux runs on an SSD.
Instructions for enabling TRIM on Void PPC:SSD TRIM enables an operating system to inform a NAND flash solid-state drive (SSD) which data blocks it can erase because they are no longer in use. The use of TRIM can improve the performance of writing data to SSDs and contribute to longer SSD life.
For MintPPC, Fienix and Debian: To schedule a weekly TRIM of all attached capable drives, enable the .timer unit.
lsblk --discard
If the DISC-GRAN and DISC-MAX columns are non-zero, that means the block device has TRIM support.
systemctl enable --now fstrim.timer
Output:
Code: Select all
Created symlink /etc/systemd/system/timers.target.wants/fstrim.timer → /lib/systemd/system/fstrim.timer.
Code: Select all
systemctl status fstrim.timer
● fstrim.timer - Discard unused blocks once a week
Loaded: loaded (/lib/systemd/system/fstrim.timer; enabled; vendor preset: enabled)
Active: active (waiting) since Tue 2023-04-18 11:02:01 CEST; 23s ago
Trigger: Mon 2023-04-24 01:08:03 CEST; 5 days left
Triggers: ● fstrim.service
Docs: man:fstrim
Apr 18 11:02:01 mintppc.a-eon.tld systemd[1]: Started Discard unused blocks once a week.
Code: Select all
● fstrim.service - Discard unused blocks on filesystems from /etc/fstab
Loaded: loaded (/lib/systemd/system/fstrim.service; static)
Active: inactive (dead)
Docs: man:fstrim(8)
Apr 18 10:41:10 mintppc.a-eon.tld systemd[1]: Starting Discard unused blocks on filesystems from /etc/fstab...
Apr 18 10:42:40 mintppc.a-eon.tld fstrim[5526]: /: 235.2 GiB (252553142272 bytes) trimmed on /dev/sda3
Apr 18 10:42:40 mintppc.a-eon.tld systemd[1]: fstrim.service: Succeeded.
Apr 18 10:42:40 mintppc.a-eon.tld systemd[1]: Finished Discard unused blocks on filesystems from /etc/fstab.
Apr 18 10:42:40 mintppc.a-eon.tld systemd[1]: fstrim.service: Consumed 1.075s CPU time.
Christian