From owner-freebsd-current@freebsd.org Fri Apr 15 13:22:55 2016 Return-Path: Delivered-To: freebsd-current@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 23375AECB58 for ; Fri, 15 Apr 2016 13:22:55 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-pf0-x236.google.com (mail-pf0-x236.google.com [IPv6:2607:f8b0:400e:c00::236]) (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 ECCC611EF for ; Fri, 15 Apr 2016 13:22:54 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by mail-pf0-x236.google.com with SMTP id n1so57013589pfn.2 for ; Fri, 15 Apr 2016 06:22:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=sender:subject:mime-version:from:in-reply-to:date:cc:message-id :references:to; bh=gdqkbT4v6V7n9Yfau+4IzMF5/Mgs57cfbwh681lAsZ8=; b=a7/pZSjdFumAcTYpICBYmjF4zfbi/s0WtCPRLsW1QRi0Q7vxii7JD6NDw3e2U2RIMF H2bFmIw/JHgLcQZrleZp4lKUDMkGFjVHQDwfihdKT3ylH2IiPx0c63gIt+aIF6A6a8wO bfzrKahBg1uTnD6/bHlewpaTSqNsQJZXJpZMUCo7iW33HK2VDryuI0zL7HUccClo/Pjh aR8VbwsVSKNUk1ch6Gkj+iv6bdmt9yFA3X0MxokX7vMjASF3qMh2E0ZqrTYm1fMo9Qj3 jeXCnTqBnodVM8YWG4vAPs+zVygxhbmPjB1w4nfJlixNajbOVG2ea17j0EgppTvTujNq moiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:from:in-reply-to :date:cc:message-id:references:to; bh=gdqkbT4v6V7n9Yfau+4IzMF5/Mgs57cfbwh681lAsZ8=; b=HygD46tXxjXVCVjBa5kS25YMdUccGKdYzRb4SHz0M3A0WxGM4SGxueCZLksi+3sC9V ektZ49Eu2tfumBKA7oSQMW83fmSNqxQQKD2TUPMvdZz3IGKHcjhE8ico3gd2TZ8o45pk Z65NiS4359fFrPZ/zlXo3grLWZnuII19eWit93UFQIiCqU3jkCo5Dz5SIDqVTkXCUJnC +SRjTdoWp8NrmruYtIQxJWyDhBTBpEpM6CaJ4hy4ERYgX3LXtiytzcDSL9xJ+t9mZiS7 j4TiJfQrLUFJ+nHUqwAiD5IlyAV/c3qhKbGaqGxL2qpSAKyZ0PD/HZjvAhQIQ1EB838w 1hOg== X-Gm-Message-State: AOPr4FXdvpI2bHxtkG8fZjwUF6uEKHlyqG7WdGfhQNsrE50Z2zXZEOZvd7DkUH4HSl7f9A== X-Received: by 10.98.14.67 with SMTP id w64mr29572701pfi.154.1460726574091; Fri, 15 Apr 2016 06:22:54 -0700 (PDT) Received: from mac.nflx.bsdimp.com ([50.253.99.174]) by smtp.gmail.com with ESMTPSA id tp9sm65065043pab.14.2016.04.15.06.22.53 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Apr 2016 06:22:53 -0700 (PDT) Sender: Warner Losh Subject: Re: Samsung SSD TRIM [Was: Heads up] Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Content-Type: multipart/signed; boundary="Apple-Mail=_EFAFFF2C-729D-4DAC-A46B-4747675A365B"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5.2 From: Warner Losh In-Reply-To: Date: Fri, 15 Apr 2016 07:22:51 -0600 Cc: Steven Hartland , "freebsd-current@freebsd.org" Message-Id: References: <57109CB7.3020204@FreeBSD.org> <20160415081130.GH2282@home.opsec.eu> <5710CE6F.6010408@multiplay.co.uk> To: Tommi Pernila X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Apr 2016 13:22:55 -0000 --Apple-Mail=_EFAFFF2C-729D-4DAC-A46B-4747675A365B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Apr 15, 2016, at 7:14 AM, Tommi Pernila = wrote: >=20 > Hi, >=20 > On Friday, 15 April 2016, Steven Hartland = wrote: >=20 >> On 15/04/2016 09:11, Kurt Jaeger wrote: >>=20 >>> Hi! >>>=20 >>> avg wrote: >>>=20 >>>> For what it's worth, I have been using the following SSDs since >>>> September of 2015 : >>>>=20 >>>> ada2: ACS-2 ATA SATA 3.x = device >>>> ada3: ACS-2 ATA SATA 3.x = device >>>>=20 >>> I have one in use with zfs and trim: >>>=20 >>> ada1: ACS-2 ATA SATA 3.x device >>>=20 >>> Works as my ports build hosts, and is fine as far as I can see. >>>=20 >>> Prior to Warners commit there was no NCQ TRIM support in FreeBSD, so >> while it was working with standard non-NCQ TRIM (and I can = corroborate that >> as we use the 840's and 850's all over with ZFS with TRIM enabled) = its >> possible that it could cause issues when NCQ TRIM comes into play. >>=20 >> =46rom what I read when this issue first came to light, I believe the = actual >> issue was a Linux kernel bug not a FW bug in Samsung drives that = caused the >> corruption. This is the thread which details said issue: >> http://www.spinics.net/lists/raid/msg49440.html >>=20 >>=20 > Here is a link to the commit that fixed the Linux kernel bug. > https://git. > = kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=3Df3f5da624= e0a891c34d8cd513c57f1d9b0c7dadc >=20 > Mounting a Samsung SSD with a linux kernel with trim enabled without = this > commit can cause issues. Right, that bug allocates space for the TRIM message to be queued. = FreeBSD already does that, so that=E2=80=99s not going to be an issue. This was = the issue I referred to in a prior message. Both the Samsung 840 and 850 are black listed as far as NCQ trim are = concerned. I=E2=80=99ve had other people that have tested them w/o my blacklisted = entries, and there are issues at least with the 840 that are firmware related. Warner --Apple-Mail=_EFAFFF2C-729D-4DAC-A46B-4747675A365B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJXEOsrAAoJEGwc0Sh9sBEAhgoQAOa5BxRpUZrfmmMWyh9sAuBR ubXk+mpn9kZDzbuxDxDJgZJisFAaEs2RCcxr4IJNeU7BD41vDTcVBkn7qwYqrqYx fz98TPsqVxJAjzAcAyK3VpFAOueTJlCwACuKYqjUYcYXrvicxTDixS1Cldm1H6Rp r0X2/eT/ub5aMTTtVqPt8P35dgsbRg9Q8I9tHPhsDwniKmS9QXPtC2KeyKwl+/b2 suWr9BGOabPHm8AZSOo63odR70dz5mYpoHtqak5S8obHhC0BNtDD+BGOHiGnep4U 0K7HIds/KcB505HWdk5pvG0mwW5FGjBoagB3mnOiSbXE5Ho2HV6JLqNLm4XEvZVn BW+2TSYZiJ8oKMfw5mplbe/yydaU8kasAYrnALmhl5lv6MDF9N6A5Uax+3TFCw3Z rb+X3hXWv+rQO29mUKVVfoZOWXMwSkmeGVg7a+OZVKgHRBb0abYb/w1E++7oRRGu ZA/FVrLgq8gYo+CcGY7GD+8xY1xW11gGciEnw2ynrLAji3qYccR2kL02q3E/fH9U OWyatoAl5alKdsN+DY16juBPAu+MD3maE4aMwhZjg4dyQaJlKHoZS59SLri6eHEp 8cyf6f4tGqM2gVL+O7BFRMC2fy4Kn4mIk3w95W/C4qT9rj0uuEDhSIguKvrzU8I7 dQKWcCqi80nGmFQVwZ8+ =fKwI -----END PGP SIGNATURE----- --Apple-Mail=_EFAFFF2C-729D-4DAC-A46B-4747675A365B--