From owner-freebsd-stable@freebsd.org Mon Feb 24 17:58:26 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 7EDC623CE85 for ; Mon, 24 Feb 2020 17:58:26 +0000 (UTC) (envelope-from mario.olofo@gmail.com) Received: from mail-qv1-xf42.google.com (mail-qv1-xf42.google.com [IPv6:2607:f8b0:4864:20::f42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48R8tn4T0Qz4Q80 for ; Mon, 24 Feb 2020 17:58:24 +0000 (UTC) (envelope-from mario.olofo@gmail.com) Received: by mail-qv1-xf42.google.com with SMTP id dc14so4508095qvb.9 for ; Mon, 24 Feb 2020 09:58:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ux62g79JmrGWjebUXatD+JMWUJoPlCKaVn6pV1sKzgI=; b=RRbjTK/j9NMGJqh3P4Fonx6WqTKqK58EKuA+1D5HPaDUGXt8SYZdu5mB8SeqtGqvGb nvnh7d9cut7H8a29hvp2CDoPoThCLO6fedASPMuko3JD7qUDjHiEiabSLTg5TfY3LZRK Jx15khtEY3atEcBZFcY3I4M5K3cSJ3wWWOckWTPr53J6q7RdNfOmr7IeJw1n24HiTbPG pLYVnLB25rshj2j9XqivICM6jqdxq6dK0fuPj1TqQ7CIAtwk7cmLN10eYDEfRf7p9XpB ku6NCTQ7QtL6EutcXmUddacSpERCyXlkB54dJEiydSz6ecSUshKQtLMpDAdtJEqSMpCS 2JNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ux62g79JmrGWjebUXatD+JMWUJoPlCKaVn6pV1sKzgI=; b=OCcaEiXnbbhJnxmYR6TnEa8iGSSN7pEq/0pbKWuPUF1NSBQ6G2bNX3vkporT67jukT V+OsZj3frkyYPDNEoITt30QU2io5bTfTdYFaOv8ULhj656bzS+dQ/O1QfzcWl55pXFJs 2fcJlKL30pRR4ZL3WjOwnwL20RityJsQPClxMcUTfVEvjVVsxprys19gjKAswY53GceF pBaY4jx4CEelXPMxRqB0z8hvh8QJPBD0nfKnwXO6OoQu3FXibI1+JpqAfquFKUYmbemr bKA6u30Nzqs3C+wH7x7rmKYGnn7Rsr/aV7WkQmM5Y/w7dYdr2RNC1bxNVkCu3zbJX6Kb Pm9g== X-Gm-Message-State: APjAAAV7g8WJiaA2MyeUPrG3IzOSnS1+ITxMrYmuy1tcx2KPM6qQXiFY NFfAhzqopiWhlKWYuCF+w0Oos1dIREvAd2CrBePE1w== X-Google-Smtp-Source: APXvYqy+MMccl4YlhoOaPFnasHCmq5h2VbgBCwn9Ew3Xgxl54j6J++hvEI3TdcM9fY1LpLcqsfUPE5QAL3NEAMxpCLM= X-Received: by 2002:a0c:f485:: with SMTP id i5mr46831689qvm.8.1582567103963; Mon, 24 Feb 2020 09:58:23 -0800 (PST) MIME-Version: 1.0 References: <20200224144602.GA64065@phouka1.phouka.net> In-Reply-To: <20200224144602.GA64065@phouka1.phouka.net> From: Mario Olofo Date: Mon, 24 Feb 2020 14:58:12 -0300 Message-ID: Subject: Re: Running FreeBSD on M.2 SSD To: John Kennedy Cc: freebsd-stable@freebsd.org X-Rspamd-Queue-Id: 48R8tn4T0Qz4Q80 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=RRbjTK/j; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marioolofo@gmail.com designates 2607:f8b0:4864:20::f42 as permitted sender) smtp.mailfrom=marioolofo@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; IP_SCORE(0.00)[ip: (0.66), ipnet: 2607:f8b0::/32(-1.88), asn: 15169(-1.67), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 17:58:26 -0000 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. Thank you, Mario Em seg., 24 de fev. de 2020 =C3=A0s 11:47, John Kennedy escreveu: > 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 wit= h > > 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 lis= t > 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 th= at > 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 bei= ng > 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. Th= e > newer box just started around 12.0 (2019-05-31). > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >