From owner-freebsd-fs@freebsd.org Fri Jul 22 19:02:38 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 C5D47BA179F for ; Fri, 22 Jul 2016 19:02:38 +0000 (UTC) (envelope-from eborisch@gmail.com) Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com [IPv6:2607:f8b0:4003:c06::231]) (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 8ACB91566 for ; Fri, 22 Jul 2016 19:02:38 +0000 (UTC) (envelope-from eborisch@gmail.com) Received: by mail-oi0-x231.google.com with SMTP id l65so175370308oib.1 for ; Fri, 22 Jul 2016 12:02:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=eJ9i9kilcU4lmPt+hJBMIXph0MP3xc3wsxpasTL4xr8=; b=htYEV+/UcoR82Xi8lruaqlvBM14YytO5odEsxNj243ipKhzQS4GuNObCYiUneBKc67 hB1lXan4PsJ2zzOuar774QEFPE4hPFqhT8XRETl0mFyl9isLjIL8DtripAVX2xWF6BD2 nOz6E/VTZ3yexKn6j/E25CLYfyuTeWm74QPkEHyJTuxR0A9CaLxmZ6BG7ZSop9ZUCJjO tEPXYIT3ljwNNhwEiRU3+JZkSVgueMma7eEUN1KGStELouZtk4QdAleKIfycJQf6sSRe YxupqDYYq1CMX0XFQVLW2MfCYJLFudfvzrjCQ6ya6MaPxViLGX6ZkfE4N1RtOkLkXy3s vfKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=eJ9i9kilcU4lmPt+hJBMIXph0MP3xc3wsxpasTL4xr8=; b=QPYne1PhN34aKnmeI+ZD8SPNUqkAU4StbIn5E0AT2krji9wxOWXZXtdYQ0XVjLnREl tvIVjODE+1pR/55JU/FnVpi10nuMUmQvghwVWiCDDFtu2X4yXNfWYqIut0IlZlsVDL/f ZD2PG6kL6st1+3RxkaoTgqQpN7Ec/RrwtpTUjMTEhAr337l4MwgBe0AmVjqc6PyfsiB+ V63Qm04auBhqxiWM3flIc2EqjfnuAkPVO3ELNNSIWj5gdRcSI1M4vPeOsjBmXSoEHZ6+ r7ubZDNK7ix770ficnuFnz6DzEL8Y1y/wcYrPcFB5lpsd6av6PAtmFfvCLammiClxuXt h+QA== X-Gm-Message-State: AEkooush59hPruxXAgEwuulZzCQcnu8sNIX+HrYe0Y06KHaX+tvX68cfEkzyO62CntxiJUq+lKFFjTtPc0LLkw== X-Received: by 10.202.53.198 with SMTP id c189mr2878911oia.65.1469214157988; Fri, 22 Jul 2016 12:02:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.66.133 with HTTP; Fri, 22 Jul 2016 12:02:37 -0700 (PDT) In-Reply-To: References: From: "Eric A. Borisch" Date: Fri, 22 Jul 2016 14:02:37 -0500 Message-ID: Subject: Re: ZFS, SSD and encryption To: Karl Denninger Cc: "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 19:02:38 -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