From owner-freebsd-fs@freebsd.org Fri Jul 22 12:48:52 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 46C40B9F129 for ; Fri, 22 Jul 2016 12:48:52 +0000 (UTC) (envelope-from zerotronic@gmail.com) Received: from mail-it0-x22c.google.com (mail-it0-x22c.google.com [IPv6:2607:f8b0:4001:c0b::22c]) (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 065E71E01 for ; Fri, 22 Jul 2016 12:48:52 +0000 (UTC) (envelope-from zerotronic@gmail.com) Received: by mail-it0-x22c.google.com with SMTP id f6so36057938ith.1 for ; Fri, 22 Jul 2016 05:48:52 -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=XegExadK0bBq8Z0l7kf73pnPN8mQSmUMB+Nem5k3CEY=; b=cIH5sMaEyL6aHYQ0g7OcBl6aIE+dYOJzkzgOFD3hTsWoVpSHTKPFNHHdQV0BGvzV+l o2j/xxI+2Jz09auG0g4F6qLRWT2LUWqRjxn8cumUp1S5MkAqVwjhU7qrVbMHU/HSotHO dGtc7gQxeul4Fcuo3ERArQZP0Xy4g+TVPgGwrHaT0X4gciPINDy0IqJh+mcLK7+342Tu OIprCaESX5SrHMHl3DhS/HFu3iwwDS3w4OoUUx5l442cDHnjeNdlOq3csbfaLsiZpTu9 LTHvxX9niNW7XzCxIIh9GjHJC0SLO5onmYuPZre7aH70xKYicdFYrPVRiWTZcep/jrHW zTtA== 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=XegExadK0bBq8Z0l7kf73pnPN8mQSmUMB+Nem5k3CEY=; b=WtgFkNYjvPB0Se+P3KoiAdbwy273WI1DYaF/xIlQWe4EF4N6AUvxoaqRCBT1dfL4b8 2v5JD6OeQVg/gw5iJdKmUjP5yl09n9FcGORYrkOf0ta6sUdbncBWemEW/DpRq9IAKcXY EsokFV47+Lokk5lZxyOUBLekqwyxwBXck8jXwMZaQDHbcKsT10llvk895Y9en9gB4Lrx 4Fe+pHXiUh9TPUwRJtAq2o/WjSFuELcWEgMKANq/QJ30wFR5vU2ivsqsaarV1l2YyEB8 dOQvy98gL3ITmLAXlc+b5y3lkfpHPuDhen+URD9QkennkpkXbCFsfvOuUqLwZpVzurSE i5kQ== X-Gm-Message-State: AEkoousOb8aHqb8bKSGPmL/EN/ajiA/nhc9YPCksa6hk8NTo155hOiWw99JZ/k3oup+gFnwVaoYg9zMpGnUBxw== X-Received: by 10.36.204.68 with SMTP id x65mr4214632itf.54.1469191731027; Fri, 22 Jul 2016 05:48:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.134.195 with HTTP; Fri, 22 Jul 2016 05:48:50 -0700 (PDT) From: Nikos Kastanas Date: Fri, 22 Jul 2016 15:48:50 +0300 Message-ID: Subject: ZFS, SSD and encryption To: freebsd-fs@freebsd.org 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 12:48:52 -0000 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. Do I understand it correctly? Or is there something that I miss? After asking in the community forums 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.