Does anybody know if SSD TRIM support is available for the ZFS ZIL and ZFS L2ARC?
I want to add a couple of SSD's to my home SAN but don't want to bother if TRIM support is not available. Yes, for my home test system SSD is overkill!
TRIM support was added to build snv_146 and it's available. However, there is no indication that ZFS has been updated to make use of it yet.
We've been using SSDs with ZFS on hundreds of systems and it works fine in terms of durability. I believe you shouldn't worry about it for your home system.
The equivalent of TRIM is supported as SCSI unmap in Solaris 11.1 and ZFS will recognize that blocks are reclaimed.
We have some challenges due to 15804599, which means SSD performance is severely impacted by SCSI unmap.
The SCSI unmap is currently disabled due to this problem starting in S11.1 SRU 3.4.
Thanks for the quick reply. If I'm understanding correctly, the SCSI unmap command was implemented in last November's Solaris 11.1 release but has since been disabled due to performance problems. I'm running the original November release with no updates so can I assume that SCSI unmap is enabled on my system? If so, do I run any risk of data corruption by staying with my current version? I'm currently running Solaris 11.1 from a SATA SSD.
No risk of corruption (from having this feature enabled).
Your SSD performance might be noticeably slower if the device supports SCSI unmap. If not, then no worries.
You can disable it manually by adding this syntax to the /etc/system file: