• SSD Harddisk: Continuous TRIM vs. Periodic TRIM

    As i can see Antergos uses continous TRIM by default, or does CNCHI any check and choose depending on the SSD information?
    Reading here: https://wiki.archlinux.org/index.php/Solid_State_Drives#TRIM

    Continuous TRIM
    Warning: Unfortunately, there are wide quality gaps of SSD’s bios’ to perform continuous TRIM, which is also why using the discard mount flag is recommended against generally by ext filesystem developer Theodore Ts’o. If in doubt about your hardware, apply #Periodic TRIM instead.
    Note: Before SATA 3.1 all TRIM commands were synchronous, so continuous trimming would produce frequent system freezes. In this case, applying #Periodic TRIM less often is better alternative. Similar issue holds also for a number of devices, for which queued TRIM command execution was blacklisted due to serious data corruption. See Wikipedia:Trim (computing)#Shortcomings for details.

    So may on some SSD Devices it would be better to use Periodic TRIM ???

    Theodore Ts’o say: …For these two reasons, on Linux the recommended way to use TRIM is to use the fstrim command run out of cron, so that during an idle period the TRIM commands can be issued for all of the unused areas on the disk.

    After reading all this it is a bit confusing what should be the one option to use…
    But may it would be better to have a checkup what to use???
    Because that C-TRIM can caus system freeze is reminding me on a lot of Posts on system freeze here in the Forum, i do not check may there are mostly with SSD Systems??

    Me i get system freezes before with no real log to reproduce what it is caused by… After changing to P-TRIM i get not one FREEZE again like this (system freezes unexpected, only cursor is working)

  • @joekamprad


    My fstab :

    # /etc/fstab: static file system information.
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    UUID=35AC-7F62 /boot vfat defaults,noatime 0 0
    UUID=48fda34c-1ca5-49e9-85fc-dfcf419e79bd / btrfs async,lazytime,ssd,compress=lzo,space_cache,rw   0 0
    tmpfs   /proc         tmpfs   nosuid,nodev,noatime,rw          0  0
    tmpfs   /run         tmpfs   nosuid,nodev,noatime,rw          0  0
    tmpfs   /tmp         tmpfs   nosuid,nodev,noexec,noatime,rw          0  0
    tmpfs   /home/archrysler/.cache         tmpfs  nosuid,nodev,noatime,rw          0  0

    Never frozen .
    Always fast.
    /tmp no exec


  • Not sure whether antergos is using continuous trim. For that, one would need to add the option in fstab.
    I suspect from my experience (which may interpret things wrong) dat in a default Antergos install, periodic trim is not active. One has to enable the timer in order to effectuate a weekly trim. To check the status, run ```
    systemctl is-enabled fstrim.timer

    To enable the timer, run```
    sudo systemctl enable fstrim.timer
  • @antimony this is what i say on every install to SSD i have the discard option inside the fstab. So looks like it is the default way on Antergos install, this is only for C-TRIM if you use P-TRIM you have to erase the discard option from fstab.

  • @Archrysler said in SSD Harddisk: Continuous TRIM vs. Periodic TRIM:

    btrfs > next install i do this ;)

    are you using systemd-boot?

  • @joekamprad

    Yes systemd-boot on UEFI mode.
    Other pc --without UEFI-- with Grub.

    Two pc with btrfs file system.

    I do “trimer” manually every month or if I copy or delete many large files.

    sudo fstrim -v /

    Easy , clean and effective. I use Desktop mode , maybe a server mode cron is best solution ( systemd supported)

    I want to probe , install Antergos on F2fs root partition , but Cnchi don’t love me.


  • enhancement “issue” on github:


ssd30 trim5 harddisk3 continuous1 Posts 7Views 3720
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.