From owner-freebsd-current@freebsd.org Wed Sep 9 17:06:35 2020 Return-Path: Delivered-To: freebsd-current@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 56CFF3D5DE3 for ; Wed, 9 Sep 2020 17:06:35 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from mail.daemonic.se (mail.daemonic.se [176.58.89.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BmpMZ4MMCz4VS0; Wed, 9 Sep 2020 17:06:34 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from cid.daemonic.se (localhost [IPv6:::1]) by mail.daemonic.se (Postfix) with ESMTP id 4BmpMY1YG1z3n7S; Wed, 9 Sep 2020 17:06:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at daemonic.se Received: from mail.daemonic.se ([IPv6:::1]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256) by cid.daemonic.se (mailscanner.daemonic.se [IPv6:::1]) (amavisd-new, port 10587) with ESMTPS id x0gXWQg0lko7; Wed, 9 Sep 2020 17:06:32 +0000 (UTC) Received: from garnet.daemonic.se (unknown [IPv6:2001:470:dca9:1201:848:c6d:2ba8:5359]) by mail.daemonic.se (Postfix) with ESMTPSA id 4BmpMX0jMnz3myt; Wed, 9 Sep 2020 17:06:32 +0000 (UTC) Subject: Re: vfs.zfs.min_auto_ashift and OpenZFS To: Ryan Moeller , freebsd-current@freebsd.org References: <9592fb23-ef97-f0a2-5968-f10ae404e761@gmail.com> <37b914c8-6fb6-7c1c-9497-ae1402b8dd40@daemonic.se> From: Niclas Zeising Message-ID: <2d393cf6-af92-cd64-aac8-a656b0c95299@daemonic.se> Date: Wed, 9 Sep 2020 19:06:31 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4BmpMZ4MMCz4VS0 X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.62 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[daemonic.se:s=20151023]; FREEFALL_USER(0.00)[zeising]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.01)[-1.005]; RCVD_COUNT_THREE(0.00)[4]; NEURAL_HAM_MEDIUM(-1.02)[-1.019]; DKIM_TRACE(0.00)[daemonic.se:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[daemonic.se,none]; NEURAL_HAM_SHORT(-0.60)[-0.598]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:36236, ipnet:176.58.89.0/24, country:US]; TAGGED_FROM(0.00)[freebsd]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Sep 2020 17:06:35 -0000 On 2020-09-09 17:55, Ryan Moeller wrote: > > On 9/8/20 4:31 PM, Niclas Zeising wrote: >> On 2020-05-02 02:20, Matthew Macy wrote: >>> OpenZFS doesn't have the same ashift optimization logic that FreeBSD >>> has. It's something that needs to be resolved before the code can be >>> integrated downstream. >> >> So currently all pools created with OpenZFS will use 512 bit >> alignment, at least if the underlying storage device uses 512bit >> sectors (which most drives tend to do)? >> >> If this is the case, it feels like a pessimisation. >> >> Regards > > > The vdev ashift optimizations from FreeBSD were put in OpenZFS before > the import into base. That sysctl does work now. > Thank you for the clarification! Regards -- Niclas