From owner-freebsd-fs@freebsd.org Fri Jul 22 19:14:51 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4F491BA19C4 for ; Fri, 22 Jul 2016 19:14:51 +0000 (UTC) (envelope-from zerotronic@gmail.com) Received: from mail-it0-x22a.google.com (mail-it0-x22a.google.com [IPv6:2607:f8b0:4001:c0b::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A39418E6 for ; Fri, 22 Jul 2016 19:14:51 +0000 (UTC) (envelope-from zerotronic@gmail.com) Received: by mail-it0-x22a.google.com with SMTP id f6so43854550ith.1 for ; Fri, 22 Jul 2016 12:14:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=YFcdIYOirRIGFL/0TZ2x7Fn0/aEkYfX4kx95g9Vg5Yg=; b=mwllpu7mEztvwJld6+w9pTaw35jET3IHXlZPTIrYZdUhYXSmHtoHZvZuQjsfHRzBF3 qh3qgzmSpX33LhzWJqtmT3pI8ijQrA1YoVSHBq90Y71yQEGQCMTx4bmf0LcmYUXe+hzP lVWlPxFB+B6F3vnvTrJBB4cEjOlSFFdQ9Xo6RQZkXE4deuR73NwE4RDmFOzLxPYwBdmt i0LrrWai8vtmO1qjtPfJ86o484HetB2ChKJenpABz/9/nP49827HFQjM5X3lPMBXtz0n 4RyeEeBVG6gFK4h5rlWpA7w8d+lt3jCi/iyxC+9eT8pAc6olhn/6yeCJpXhJYKW3t3qM R//A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YFcdIYOirRIGFL/0TZ2x7Fn0/aEkYfX4kx95g9Vg5Yg=; b=fHcwkFVCM3IGqDnKOmWoCQAqp7D+hFhVl0infKyhyxTeKiTl1h0H3MITCDgLyObHP/ m1nZ3Ebyf2QYNnunoDK+jihM8/drG3CYcvlw5bfd9xyyE8b1FgD7Tu8CHtts3Hk5ouNA Lj9Zsc5V7euJ2xA+PMi70sR0Zol8ev6J2cqGQ42VFzlS2XC7O913LX4wOpnqr2AkVOc+ lMVbNQE3EkWRS8N0uxratj12uuuqFAnuzRajftt9+ofZgjO5Fv8PJqev1tcN68rTni0M hqWablDXqFX23EUrW7CVF2wsy6VkMWWTuQAupWZC6rh7NEkqTSI7uGkNhHOfye6AiDKo i9Uw== X-Gm-Message-State: ALyK8tI6rtLUcPz9mIUAx5Aa2htAbSv2EeOKklYlM1l1VJdsoMDbDlcm9QAPf5KFInQgwFSjKFSpxTxuvlfAfg== X-Received: by 10.36.155.194 with SMTP id o185mr10869811itd.54.1469214890366; Fri, 22 Jul 2016 12:14:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.134.195 with HTTP; Fri, 22 Jul 2016 12:14:49 -0700 (PDT) From: Nikos Kastanas Date: Fri, 22 Jul 2016 22:14:49 +0300 Message-ID: Subject: Re: Re: ZFS, SSD and encryption To: freebsd-fs@freebsd.org, Karl Denninger , "Eric A. Borisch" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2016 19:14:51 -0000 >On Friday, July 22, 2016, Karl Denninger 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* >>> 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. >> > >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=revision&revision=286444 > >And here's what is in 10.3 (BIO_DELETE case returns EOPNOTSUPP): > > https://svnweb.freebsd.org/base/releng/10.3/sys/geom/eli/g_eli.c?revision=296373&view=markup#l319 > > - Eric Thank you for your answer and the clarification.