Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    SSD ZFS enable TRIM

    Scheduled Pinned Locked Moved 2.4 Development Snapshots
    3 Posts 3 Posters 3.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Paddy
      last edited by

      I've installed 2.4 with ZFS onto a SSD.

      I read somewhere that TRIM was enabled by default but when I queried the drive (camcontrol identify ada0 | egrep TRIM|Feature) I see TRIM is supported but not marked as enabled.

      Do I need to enable it, and if yes how?

      Feature                      Support  Enabled  Value          Vendor
      Data Set Management (DSM/TRIM) yes

      EDIT

      It looks like I was mistaken and TRIM is enabled.

      Shell Output - sysctl -a |grep _trim
      kstat.zfs.misc.zio_trim.failed: 0
      kstat.zfs.misc.zio_trim.unsupported: 0
      kstat.zfs.misc.zio_trim.success: 192
      kstat.zfs.misc.zio_trim.bytes: 32325632

      1 Reply Last reply Reply Quote 1
      • P
        Presbuteros
        last edited by

        Some, though very few, SSDs could even be TRIMmed in Linux by command```
        fstrim -v /

        
        Interesting that you note that TRIM is enabled by default on the FBSD 11 PFS 2.4 release using ZFS.
        1 Reply Last reply Reply Quote 0
        • K
          kpa
          last edited by

          @Presbuteros:

          Some, though very few, SSDs could even be TRIMmed in Linux by command```
          fstrim -v /

          TRIM is a filesystem level operation and whatever tool you're using has to know the filesystem used. There is no such thing as TRIMing a disk without knowing the filesystem level status of allocated and unallocated blocks.

          1 Reply Last reply Reply Quote 0
          • S slu referenced this topic on
          • S slu referenced this topic on
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.