From owner-freebsd-stable@freebsd.org Sun Mar 1 06:24:50 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 84E1A27E592 for ; Sun, 1 Mar 2020 06:24:50 +0000 (UTC) (envelope-from daniel@digsys.bg) Received: from smtp-sofia.digsys.bg (smtp-sofia.digsys.bg [193.68.21.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp-sofia.digsys.bg", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48VYCh4Gnrz3Pcp for ; Sun, 1 Mar 2020 06:24:48 +0000 (UTC) (envelope-from daniel@digsys.bg) Received: from [172.16.6.33] ([193.68.138.20]) (authenticated bits=0) by smtp-sofia.digsys.bg (8.15.2/8.15.2) with ESMTPSA id 0216ObNW061739 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Sun, 1 Mar 2020 08:24:38 +0200 (EET) (envelope-from daniel@digsys.bg) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Daniel Kalchev Mime-Version: 1.0 (1.0) Subject: Re: Running FreeBSD on M.2 SSD Date: Sun, 1 Mar 2020 08:24:33 +0200 Message-Id: <29C7C315-99F2-46CE-A269-341FBDFE117E@digsys.bg> References: Cc: Theron , Pete Wright , FreeBSD Stable In-Reply-To: To: Mario Olofo X-Mailer: iPhone Mail (17D50) X-Rspamd-Queue-Id: 48VYCh4Gnrz3Pcp X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of daniel@digsys.bg designates 193.68.21.125 as permitted sender) smtp.mailfrom=daniel@digsys.bg X-Spamd-Result: default: False [-1.86 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip4:193.68.21.125]; MV_CASE(0.50)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[digsys.bg]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.968,0]; IP_SCORE(-0.09)[ipnet: 193.68.0.0/19(-0.10), asn: 3245(-0.41), country: BG(0.04)]; 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:3245, ipnet:193.68.0.0/19, country:BG]; FREEMAIL_CC(0.00)[gmail.com]; MID_RHS_MATCH_FROM(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: Sun, 01 Mar 2020 06:24:50 -0000 Is TRIM still on? I understand the quirks patch indicates the drive has some trouble with 4K a= ligned writes. If memory serves it I also indicated broken TRIM so to be saf= e you need both. Daniel > On 29 Feb 2020, at 2:46, Mario Olofo wrote: >=20 > =EF=BB=BFHello guys, a little update that let me more confused >=20 > 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 put o= n > it. > One thing that I noticed is that with the pool as 4k, the disk fill up ver= y > fast, recompiling the kernel used my 8GB space and didn't even completed. > But now I don't know if the 4k is the correct answer or if this just delay= s > the problem as the pages are bigger. >=20 > Mario >=20 >> Em sex., 28 de fev. de 2020 =C3=A0s 13:18, Mario Olofo >> escreveu: >>=20 >> Yes, tried 4k quirk but not on install because don't know how to, I did a= >> clean install then patch and rebuild the kernel, but >> the volume was already configured for 512bytes, I think I would need to >> create manually the volume, but don't remember how to anymore xD >> But I'll search some tutorials and try. =46rom what I saw, the patch >> suggested on bugzilla got merged into the stable branch, so the quirk wil= l >> be >> detected to use 4k in the installer in a near future. >>=20 >> Mario >>=20 >> Em sex., 28 de fev. de 2020 =C3=A0s 12:52, Theron >> escreveu: >>=20 >>> On 2020-02-28 09:14, Mario Olofo wrote: >>>> Thanks! >>>>=20 >>>> The only thing that I didn't checked was the questions of Theron, about= >>>> misaligned data. >>>> The layout of the disk is as follows: >>>>=20 >>>> 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 >>>>=20 >>>> Dispositivo In=C3=ADcio Fim Setores Tamanho Tipo >>>> /dev/sdb1 2048 1023999 1021952 499M Windows ambiente de >>>> recupera=C3=A7=C3=A3o >>>> /dev/sdb2 1024000 1228799 204800 100M Sistema EFI >>>> /dev/sdb3 1228800 1261567 32768 16M Microsoft reservado >>>> /dev/sdb4 1261568 532482047 531220480 253,3G Microsoft dados b=C3=A1= sico >>>> /dev/sdb5 532482048 549257215 16775168 8G FreeBSD ZFS >>>> /dev/sdb6 549257216 937719807 388462592 185,2G Linux sistema de >>> arquivos >>>>=20 >>>> The zfsroot was configured automatically by the installer, so I think >>> that >>>> it align the volume automaticaly right? >>>>=20 >>>> Mario >>>=20 >>> 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: >>>=20 >>> 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... >>>>=20 >>>> Mario >>> Did you try 4k quirk ? >>>=20 >>> Theron >>>=20 >>=20 > _______________________________________________ > 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"