From owner-freebsd-stable@freebsd.org Mon Feb 24 14:47:28 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 2D97525ED5D for ; Mon, 24 Feb 2020 14:47:28 +0000 (UTC) (envelope-from warlock@phouka1.phouka.net) Received: from phouka1.phouka.net (phouka1.phouka.net [107.170.196.116]) (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 "phouka.net", Issuer "Go Daddy Secure Certificate Authority - G2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 48R4fQ3c1Yz3JZC for ; Mon, 24 Feb 2020 14:47:26 +0000 (UTC) (envelope-from warlock@phouka1.phouka.net) Received: from phouka1.phouka.net (localhost [127.0.0.1]) by phouka1.phouka.net (8.15.2/8.15.2) with ESMTPS id 01OEk2l2042769 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 24 Feb 2020 06:46:03 -0800 (PST) (envelope-from warlock@phouka1.phouka.net) Received: (from warlock@localhost) by phouka1.phouka.net (8.15.2/8.15.2/Submit) id 01OEk2Mj042768; Mon, 24 Feb 2020 06:46:02 -0800 (PST) (envelope-from warlock) Date: Mon, 24 Feb 2020 06:46:02 -0800 From: John Kennedy To: Mario Olofo Cc: freebsd-stable@freebsd.org Subject: Re: Running FreeBSD on M.2 SSD Message-ID: <20200224144602.GA64065@phouka1.phouka.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 48R4fQ3c1Yz3JZC X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of warlock@phouka1.phouka.net has no SPF policy when checking 107.170.196.116) smtp.mailfrom=warlock@phouka1.phouka.net X-Spamd-Result: default: False [3.48 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; IP_SCORE(0.41)[ipnet: 107.170.192.0/18(0.63), asn: 14061(1.46), country: US(-0.05)]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[phouka.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.93)[0.933,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.94)[0.939,0]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[warlock@phouka.net,warlock@phouka1.phouka.net]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:14061, ipnet:107.170.192.0/18, country:US]; FROM_NEQ_ENVFROM(0.00)[warlock@phouka.net,warlock@phouka1.phouka.net]; 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 14:47:28 -0000 On Sun, Feb 23, 2020 at 11:18:08PM -0300, Mario Olofo wrote: > Some time ago I tried to switch from Linux to FreeBSD 12.1, used a WiFi > dongle and all good, until I found that both ZFS and UFS corrupted the > filesystem very fast. > I work with a lot of small files because of web programming (node_modules), > so after a clean install, after installing the dependencies for my project, > if I scrub the zpool, it always found that the system is corrupted and > never recover. > > I have a WD Green M.2 SSD 480GB WDS480G2G0B. > Both Linux and Windows work correctly and don't detect any problems with > the disk. > > Did someone knows if it isn't supported by FreeBSD or there's some specific > configuration params that I need to set to it work correctly? > > I made a post on the forums back in the day I had the problem, the logs I > had are all there: > https://forums.freebsd.org/threads/fixing-metadata-errors-after-zfs-clear-zfs-scrub.72139/ Can't answer your WD Green question specifically, but I'm happy with my setup, below. Good to look for quirks, but you probably also want to list other hardware involved as well (which might have it's own quirks). If you've had good success (and no corruption) with two other operating systems on the same hardware, I'd probably be looking at software and/or drivers, and that requires knowledge of the hardware. I've got dual EVOs (below is just from one I'm typing on) on two different FreeBSD boxes. Nothing specific I had to do in FreeBSD, although on the other motherboard I had to tweak the motherboard settings to give it the channels it needed to shine. kernel: nvd0: NVMe namespace kernel: nvd0: 476940MB (976773168 512 byte sectors) kernel: nvd1: NVMe namespace kernel: nvd1: 476940MB (976773168 512 byte sectors) If compiling kernel and packages from source count as having lots of little files, then I do as well. I think I'm ZFS everywhere (boot partition being the question over time). Personally, the only ZFS corruption I've had over time has been caused by bad hardware. When I moved the disks to another box, they were fine with the same version of FreeBSD. I scrub my zpool about once a month just because, plus after I get the kernel to crash. The original box went all the way back to root-on-ZFS + FreeBSD 11. The newer box just started around 12.0 (2019-05-31).