SSD ZFS enable TRIM
-
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) yesEDIT
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 -
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.
-
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.
-
-