Antergos / Cnchi

A modern, flexible online system installer for Antergos Linux
GNU General Public License v3.0
291 stars 101 forks source link

[enhancement] Continious TRIM vs. periodic TRIM on SSD installation #792

Open killajoe opened 7 years ago

killajoe commented 7 years ago

Problem:

Continious TRIM is default on SSD installation, should it not be periodic TRIM?

Steps To Reproduce:

  1. installing Antergos onto SSD Drive
  2. fstab is setup with the "discard" option andcontinious TRIM is enabled by this
  3. Unfortunately, there are wide quality gaps of SSD's bios' to perform continuous TRIM.

References

Additional Notes:

Discussion on the forum:

https://forum.antergos.com/topic/6683/ssd-harddisk-continuous-trim-vs-periodic-trim https://forum.antergos.com/topic/7746/is-fstrim-really-working/29

karasu commented 7 years ago

These are Cnchi's defaults in sdd disks (yes, continuous trim):

If swap : defaults,discard If extfs, jfs or xfs : defaults,noatime,discard if btrfs: defaults,noatime,compress=lzo,ssd,discard,space_cache,autodefrag,inode_cache

Should we change to periodic TRIM by default?

killajoe commented 7 years ago

I would say yes to it, but needs some try because periodic TRIM needs a systemd service, and as i see here it can fail: https://forum.antergos.com/topic/7746/is-fstrim-really-working/31 Looks like it works if it is started by systemctl start fstrim.timer ones but fails if it is only enabled without starting the service....

killajoe commented 6 years ago

Periodic TRIM is in any case the better way to use TRIM on SSD drives, as it reduce the load and may also enhance the livetime..