Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jul 2016 14:27:11 -0500
From:      Karl Denninger <karl@denninger.net>
To:        "freebsd-fs@freebsd.org" <freebsd-fs@freebsd.org>
Subject:   Re: ZFS, SSD and encryption
Message-ID:  <c52ebaa8-e82b-1a17-d868-52c40032c3d5@denninger.net>
In-Reply-To: <CAASnNnpnST%2BD6fVT%2BFrH%2BomkwNQb4rG1NJk0T=O2AetzrXEThA@mail.gmail.com>
References:  <CAJPDrRtLBNKr4BynSGMRfFGdAR0ZbDuwfcqkLupvk5HtgqrbQg@mail.gmail.com> <b8b000ff-289c-7348-8b63-00f3ac51accf@denninger.net> <CAASnNnpnST%2BD6fVT%2BFrH%2BomkwNQb4rG1NJk0T=O2AetzrXEThA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms030204080903060606070702
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 7/22/2016 14:02, Eric A. Borisch wrote:
> On Friday, July 22, 2016, Karl Denninger <karl@denninger.net
> <mailto:karl@denninger.net>> wrote:
>
>
>     On 7/22/2016 07:48, Nikos Kastanas wrote:
>     > 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.=

>     Meh.  Simply not true. =20
>
>
> It will not work on 10.3, but will work (as Karl demonstrates) on
> 11.x. Here's the commit to head enabling it:
>
> https://svnweb.freebsd.org/base?view=3Drevision&revision=3D286444
>
> And here's what is in 10.3 (BIO_DELETE case returns EOPNOTSUPP):=20
>
> https://svnweb.freebsd.org/base/releng/10.3/sys/geom/eli/g_eli.c?revisi=
on=3D296373&view=3Dmarkup#l319
>
>  -  Eric

Note that the system in question (from which the stats were pulled) was
on 10.2 for an extended period of time, with SSDs, and with
Geli-encrypted disks.  It was fine with no performance issues; whether
there is a problem with earlier releases has much to do with the disks
in question.

In the case of the Intel 730s it works perfectly well even though TRIM
is not passed through in that case.

--=20
Karl Denninger
karl@denninger.net <mailto:karl@denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/

--------------ms030204080903060606070702
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwEAAKCC
Bl8wggZbMIIEQ6ADAgECAgEpMA0GCSqGSIb3DQEBCwUAMIGQMQswCQYDVQQGEwJVUzEQMA4G
A1UECBMHRmxvcmlkYTESMBAGA1UEBxMJTmljZXZpbGxlMRkwFwYDVQQKExBDdWRhIFN5c3Rl
bXMgTExDMRwwGgYDVQQDExNDdWRhIFN5c3RlbXMgTExDIENBMSIwIAYJKoZIhvcNAQkBFhND
dWRhIFN5c3RlbXMgTExDIENBMB4XDTE1MDQyMTAyMjE1OVoXDTIwMDQxOTAyMjE1OVowWjEL
MAkGA1UEBhMCVVMxEDAOBgNVBAgTB0Zsb3JpZGExGTAXBgNVBAoTEEN1ZGEgU3lzdGVtcyBM
TEMxHjAcBgNVBAMTFUthcmwgRGVubmluZ2VyIChPQ1NQKTCCAiIwDQYJKoZIhvcNAQEBBQAD
ggIPADCCAgoCggIBALmEWPhAdphrWd4K5VTvE5pxL3blRQPyGF3ApjUjgtavqU1Y8pbI3Byg
XDj2/Uz9Si8XVj/kNbKEjkRh5SsNvx3Fc0oQ1u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awDW0MgVlSpBLol99r8IhvjKjALFVFrWlVWapI8JCQLg0tGTbBMUTaFJYMU
CQXtF4jMFQl3vS0WKeN/LbO1KUeftdOl2kgDcqdM7YQe/rPC34ZHnmGifX5FOzlVvZM4efrA
E5HfOilgFfDla1pYi3KBlJE4hgi321NJ33xhWCfpd65h9nGfozBQtsQ6HKYqYkxbQci2D/zE
iBcUq1HAHAvPe7rTF+gIDt9GyzEAAAAAAAA=
--------------ms030204080903060606070702--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c52ebaa8-e82b-1a17-d868-52c40032c3d5>