From owner-freebsd-stable@freebsd.org Sun Mar 1 13:55:45 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 152982415D7 for ; Sun, 1 Mar 2020 13:55:45 +0000 (UTC) (envelope-from mario.olofo@gmail.com) Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) (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 48VlCz1ssJz4X8W for ; Sun, 1 Mar 2020 13:55:43 +0000 (UTC) (envelope-from mario.olofo@gmail.com) Received: by mail-qt1-x836.google.com with SMTP id v25so5597731qto.7 for ; Sun, 01 Mar 2020 05:55:43 -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=4nty0dkbQf/+07p60flhKDFHe4PxdN130FeA6gFoCbY=; b=Gata2jDKwPypcEAD5pNqmTaL43rEiu1VLf2+oBLhuUyNqzRpA4ABsk4NlDnArTX0E+ 0HUb9cSqW5d8koPUA0v4/ULVpBwgBoECKaGiPuD+18X9QRvT0ssKvhHa1DsJQ9JYACC/ Lr9pOaiYj0rYqGMw+vM4S+9AF1Aiid20az1HRXbFfK5WteZl5RqhlGN/TXglepSHzUdz vUDDbMUukhOXLNEVhE8Il0RFP5Us7J/gynmAODTu1FyMIFLcKAdRjGAvoKzF2MNYSdE5 U9IeAN0vjM6vWE8Y6sqmFQLiGoOKRFBf0tjFlEvfyGzDKxOd7/AtzQNA4sx/XEI95qxP ECJg== 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=4nty0dkbQf/+07p60flhKDFHe4PxdN130FeA6gFoCbY=; b=P6iSU6Wt0xnU2iS/LTL8/WVh7bxYDH4VT1lGwUo19CjgCwCjr/KfgkCEs6oPACP8nh YhFsiDVdkBjYqDcNbRa/uv1UVkZBSGee3DD7DstgevLq8uw5TP7Q4mZTxnRMoDNtIUaI YeLoHs/2cHOh+LF7MxRj8wfoB4rZUQjeiZ8H3hN4HUQRHPo+cWBD/vIklIT0IJpUsufp 5u9MwVVn6VpyFYCArS0vF4CWkUrpn9R8pf7V8Vq84YNEIixFlWT8EdrVzHjHBqfk78DD K1kKFA3N6SCXyy9vR5IvMQ3rSshTJqDcKJ5BPFlWeyo1TyjDynqfdf4WrVGNscL5LIa/ yKzQ== X-Gm-Message-State: ANhLgQ1hq4LVyGbUspqCG2nAayQg6sfBTThM0qKsC5k5B9j9yozqdeik TFEGmsd+VKvSvnpyD/kPeR50r7VA3plbt+33v6A= X-Google-Smtp-Source: ADFU+vs/SI0WciAHh5FjNKBaYJRvRlZJACpbbe13onGatEcO944tsdQ79GGFobsSMgQxmDYK37WzeJOerVHqbkihAoA= X-Received: by 2002:ac8:7952:: with SMTP id r18mr520205qtt.29.1583070942170; Sun, 01 Mar 2020 05:55:42 -0800 (PST) MIME-Version: 1.0 References: <29C7C315-99F2-46CE-A269-341FBDFE117E@digsys.bg> In-Reply-To: <29C7C315-99F2-46CE-A269-341FBDFE117E@digsys.bg> From: Mario Olofo Date: Sun, 1 Mar 2020 10:55:30 -0300 Message-ID: Subject: Re: Running FreeBSD on M.2 SSD To: Daniel Kalchev Cc: Theron , Pete Wright , FreeBSD Stable X-Rspamd-Queue-Id: 48VlCz1ssJz4X8W X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Gata2jDK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marioolofo@gmail.com designates 2607:f8b0:4864:20::836 as permitted sender) smtp.mailfrom=marioolofo@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; URI_COUNT_ODD(1.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-9.13), ipnet: 2607:f8b0::/32(-1.88), asn: 15169(-1.67), country: US(-0.05)]; 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)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[6.3.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; FREEMAIL_CC(0.00)[gmail.com]; 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: Sun, 01 Mar 2020 13:55:45 -0000 Yes, I installed with TRIM on and used the system with it on, but now I expanded the partition, reinstalled and rebuild the kernel with the quirk of broken TRIM to be safe but it appears to not be needed as far as I can tell. Will continue to work on the wifi driver now that the filesystem is stable =3D) Thank you all! <3 Mario Em dom., 1 de mar. de 2020 =C3=A0s 03:24, Daniel Kalchev escreveu: > Is TRIM still on? > > I understand the quirks patch indicates the drive has some trouble with 4= K > aligned writes. If memory serves it I also indicated broken TRIM so to be > safe you need both. > > Daniel > > > > On 29 Feb 2020, at 2:46, Mario Olofo wrote: > > > > =EF=BB=BFHello guys, a little update that let me more confused > > > > I reinstalled the FreeBSD with 4k pages using the sysctl > > vfs.zfs.min_auto_ashift =3D 12 and no errors after a lot of stress I pu= t on > > it. > > One thing that I noticed is that with the pool as 4k, the disk fill up > very > > fast, recompiling the kernel used my 8GB space and didn't even complete= d. > > But now I don't know if the 4k is the correct answer or if this just > delays > > the problem as the pages are bigger. > > > > Mario > > > >> Em sex., 28 de fev. de 2020 =C3=A0s 13:18, Mario Olofo < > mario.olofo@gmail.com> > >> escreveu: > >> > >> Yes, tried 4k quirk but not on install because don't know how to, I di= d > a > >> clean install then patch and rebuild the kernel, but > >> the volume was already configured for 512bytes, I think I would need t= o > >> create manually the volume, but don't remember how to anymore xD > >> But I'll search some tutorials and try. From what I saw, the patch > >> suggested on bugzilla got merged into the stable branch, so the quirk > will > >> be > >> detected to use 4k in the installer in a near future. > >> > >> Mario > >> > >> Em sex., 28 de fev. de 2020 =C3=A0s 12:52, Theron > >> escreveu: > >> > >>> On 2020-02-28 09:14, Mario Olofo wrote: > >>>> Thanks! > >>>> > >>>> The only thing that I didn't checked was the questions of Theron, > about > >>>> misaligned data. > >>>> The layout of the disk is as follows: > >>>> > >>>> Disco /dev/sdb: 447,1 GiB, 480113590272 bytes, 937721856 setores > >>>> Unidades: setor de 1 * 512 =3D 512 bytes > >>>> Tamanho de setor (l=C3=B3gico/f=C3=ADsico): 512 bytes / 512 bytes > >>>> Tamanho E/S (m=C3=ADnimo/=C3=B3timo): 512 bytes / 512 bytes > >>>> Tipo de r=C3=B3tulo do disco: gpt > >>>> Identificador do disco: D1725E60-D734-4461-90F8-E9EB2376A65A > >>>> > >>>> Dispositivo In=C3=ADcio Fim Setores Tamanho Tipo > >>>> /dev/sdb1 2048 1023999 1021952 499M Windows ambiente d= e > >>>> recupera=C3=A7=C3=A3o > >>>> /dev/sdb2 1024000 1228799 204800 100M Sistema EFI > >>>> /dev/sdb3 1228800 1261567 32768 16M Microsoft reservad= o > >>>> /dev/sdb4 1261568 532482047 531220480 253,3G Microsoft dados > b=C3=A1sico > >>>> /dev/sdb5 532482048 549257215 16775168 8G FreeBSD ZFS > >>>> /dev/sdb6 549257216 937719807 388462592 185,2G Linux sistema de > >>> arquivos > >>>> > >>>> The zfsroot was configured automatically by the installer, so I thin= k > >>> that > >>>> it align the volume automaticaly right? > >>>> > >>>> Mario > >>> > >>> Yes, I don't see any potential alignment issue here. I would wonder = if > >>> this drive is misrepresenting its physical sector size, deceiving ZFS > >>> and the SATA driver into making small writes that the drive does not > >>> actually support, but it looks like you may have already tried the > >>> relevant workaround: > >>> > >>> On 2020-02-27 23:44, Mario Olofo wrote: > >>>> Maybe the problem really is a combination of factors, for the person > >>> that > >>>> filed a bug on bugzilla the fix was setting the quirks 4k and > >>> broken_trim, > >>>> but for me the real block size is 512bytes and only setting the flag > >>>> broken_trim didn't help... > >>>> > >>>> Mario > >>> Did you try 4k quirk ? > >>> > >>> Theron > >>> > >> > > _______________________________________________ > > freebsd-stable@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.or= g > " > >