From owner-freebsd-stable@freebsd.org Mon Feb 24 18:27:19 2020 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5EEC923DF1E for ; Mon, 24 Feb 2020 18:27:19 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [174.136.98.114]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.nomadlogic.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48R9X556jGz4Ck0 for ; Mon, 24 Feb 2020 18:27:17 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [192.168.1.141] (76-214-71-45.lightspeed.irvnca.sbcglobal.net [76.214.71.45]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id 461e78c4 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 24 Feb 2020 18:27:10 +0000 (UTC) Subject: Re: Running FreeBSD on M.2 SSD To: Mario Olofo , John Kennedy Cc: freebsd-stable@freebsd.org References: <20200224144602.GA64065@phouka1.phouka.net> From: Pete Wright Message-ID: <437a5eae-03c8-737d-48bf-39e2e9163d6d@nomadlogic.org> Date: Mon, 24 Feb 2020 10:27:11 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 48R9X556jGz4Ck0 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 174.136.98.114 as permitted sender) smtp.mailfrom=pete@nomadlogic.org X-Spamd-Result: default: False [-5.05 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[nomadlogic.org]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-2.75)[ip: (-9.29), ipnet: 174.136.96.0/20(-4.02), asn: 25795(-0.39), country: US(-0.05)]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:25795, ipnet:174.136.96.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Feb 2020 18:27:19 -0000 On 2020-02-24 09:58, Mario Olofo wrote: > Hello John, thank you for your reply. > > Yesterday I reinstalled the 12.1 on a VirtualBox virtual machine, did the > same steps and it didn't corrupted the ZFS, so I think that the problem is > in the FreeBSD's driver for m.2 SSD. > Besides the corruption of the filesystem, I forgot to mention that I > noticed a little noise on disk writes on FreeBSD, but not on Linux or > Windows. > I found some old threads about incorrectly params for sector size for > Samsung's SSD, but nothing about WD. > If someone responsible for the driver need help to solve this problem, I > can reinstall the FreeBSD on my machine and compile a custom kernel to > gather debug information. Unfortunately you haven't provided much in details regarding the hardware you are running as far as FreeBSD see's it.  I can confirm I have had many systems using m.2 for quite a while and have had zero issues.  Could you provide some of these details? (assuming this is an NVMe device): $ sudo nvmecontrol  devlist $ sudo pciconf -lv nvme0 if your device isn't NVMe and is a sata device then this info may be helpful as well: $ sudo camcontrol devlist and your dmesg will also probably be helpful here as well.  I think getting at least this basic info will help determine where the issue is cropping up. cheers, -pete -- Pete Wright pete@nomadlogic.org @nomadlogicLA