ZFS, SSD and encryption

Nikos Kastanas zerotronic at gmail.com
Fri Jul 22 12:48:52 UTC 2016


I have a Lenovo X220 laptop running FreeBSD 10.3-RELEASE with ZFS and
encryption on a plain HDD. I am considering buying a Samsung Pro 850 SSD to
boost performance but I am not sure if TRIM and ZFS+Encryption work well
together. After some research online, I found *this page*
<https://www.freebsd.org/doc/faq/all-about-zfs.html>which states the
following:

*Note: *
ZFS TRIM may not work with all configurations, such as a ZFS filesystem on
a GELI-backed device.

>From what I can understand from the above note, I should not use the
encryption option when installing FreeBSD with ZFS on an SSD. TRIM will not
work correctly and therefore the SSD performace will be impacted.

Do I understand it correctly? Or is there something that I miss?

After asking in the community forums
<https://forums.freebsd.org/threads/57011/> a member suggested that i
should instead ask here.

Sorry if this is a stupid question, but I really want to be sure, since
SSDs are expensive and I don't want to make a mistake that will affect its
performance.

Thank you in advance.


More information about the freebsd-fs mailing list