From nobody Sat Sep 23 18:12:35 2023 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RtHL83PZfz4v2hl for ; Sat, 23 Sep 2023 18:12:48 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RtHL82v6hz4hCG; Sat, 23 Sep 2023 18:12:48 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695492768; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ntH8Ya63M6HqM3IzOOjRLWz7+HXwottz4alwsfi/K9A=; b=CteHZElAxLRuRSBcOGoEkHq29j58sXI1pw+6ElQeqbpA7i148eKTAz+fhxarxWz6uFOaj3 YmBPe3psEOY2gQnOEB96VgP05/rxZ7YAVGyF3cR3siEIri+D4mGoOp5Xb9wOgMjuiBrWDr 8uvDvm16zXFIQCVpHyduLDSe5mrvFMHzb+7S8Dxqs7jlnSYAJNw5UMdZsKvRVtzIXK0t3y zloeXzSNt7q28anUbbLftDv4ZIvh4iBD0cF2LUUWgkuZFuRad4M6ZQHZHZgWHsurqbCzfw cnGodr0QPkMvqJ9zP/cKKDrlIg3ktnu2z9dVzj/bLJi+wRWT+ON8bNKfZTzZSQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695492768; a=rsa-sha256; cv=none; b=lCYhn5u25jEjZfg0UEuNdd75jQVmiUI37oFA1txIWaFVBXK5HWj73v6Gh3hblg0zv3xPAM rsFn3Q7mIETO6SmUiHiCLBPOmAk9ew6kfhl2fcRQ3FK6jbG76bnag1dPv7cgXPqbuKY4WP 3LBzQtQA/v9wjx20HTvIay1Q37Mrk9sXXzCAlXouUNNu0Rsciz1NScamEtHX7ev2zT0baH g2uJ51NUgu0m12abm/mYIjwoxaHc2v/m2IPS4Z1pgV/KnYC9Gje1jpoD39Xp4/mwzxoiSU rsy1tP9bIjt3JjL9UvKnV2bFZOlckFmt14FuETnx+4K52HG07xfit4NfyNrp+Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695492768; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ntH8Ya63M6HqM3IzOOjRLWz7+HXwottz4alwsfi/K9A=; b=jn/JyPo8v3PBtEG5DQQ0LxkuDum8i17VSfw1Deo8QLaC6hLOh7Yg2ZuC+EDCQIkkBGUSz6 iX/GI5MAhtGJ6ytiRmo+mHtCPw8yVCxSw/ZRQXDexlCA4/CaYFXOznNHCmUqNjVCegde35 4DguCpXUwqd+V2rZU/RFIP7ukhNxKxmJAT24kA9/IBPBXAtiO2cOaasW5mUDRXYzTpqd1e guKb5ALVqu8CLPJunCTktw/Ax5Otq5RTO9vrdg/Lyu8/8d7EZ/3jNMGBm1ub4mnZJaYGFB feOaoZX5G87vPBYjcD5iPLZ/ARpb+hbLKd6YBbGTEnlimSoBZZZWzeQs3EPtjg== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RtHL81Lp3z1Mqp; Sat, 23 Sep 2023 18:12:48 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.wg.andric.com [10.69.1.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 4FCF42843A; Sat, 23 Sep 2023 20:12:46 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_4B998D1C-DD4B-409F-AA24-9AB80B5A4A91"; protocol="application/pgp-signature"; micalg=pgp-sha1 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: nvd->nda switch and blocksize changes for ZFS From: Dimitry Andric In-Reply-To: <1b6190d1-1d42-6c99-bef6-c6b77edd386a@harz2023.behrens.de> Date: Sat, 23 Sep 2023 20:12:35 +0200 Cc: freebsd-stable@freebsd.org Message-Id: References: <1b6190d1-1d42-6c99-bef6-c6b77edd386a@harz2023.behrens.de> To: Frank Behrens X-Mailer: Apple Mail (2.3731.700.6) --Apple-Mail=_4B998D1C-DD4B-409F-AA24-9AB80B5A4A91 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 23 Sep 2023, at 18:31, Frank Behrens = wrote: >=20 > I created a zpool with a FreeBSD-14.0-CURRENT on February. With = 15.0-CURRENT/14.0-STABLE from now I get the message: >=20 > status: One or more devices are configured to use a non-native block = size. > Expect reduced performance. > action: Replace affected devices with devices that support the > configured block size, or migrate data to a properly = configured > pool. > NAME STATE READ WRITE CKSUM > zsys ONLINE 0 0 0 > raidz1-0 ONLINE 0 0 0 > nda0p4 ONLINE 0 0 0 block size: 4096B = configured, 16384B native > nda1p4 ONLINE 0 0 0 block size: 4096B = configured, 16384B native > nda2p4 ONLINE 0 0 0 block size: 4096B = configured, 16384B native >=20 > I use: > nda0: > nda0: nvme version 1.4 > nda0: 953869MB (1953525168 512 byte sectors) >=20 > I cannot imagine, that the native blocksize changed. Do I really = expect a reduced performance? > Is it advisable to switch back to nvd? It could be due to a bug in nda so it reports the native block size = incorrectly, in which case you would not need to do anything but ignore = the message. However, if the native block size is really 16kiB, you will = get write amplification effects, which could needlessly shorten the life = of your SSD. I would try running e.g. smartmontools's smartctl, which can sometimes = tell you what the real block size is. Although as far as I know, it = retrieves this information from some internal database. You could also = try to look up the information in the SSD vendor's data sheet, or ask = the vendor directly? -Dimitry --Apple-Mail=_4B998D1C-DD4B-409F-AA24-9AB80B5A4A91 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCZQ8qkwAKCRCwXqMKLiCW o/GQAJwK/AafYZZR8OGo3ktZWjXiNghqZACgjnKr4tH/FYhdNd3tkvXMDsK8aZc= =Wf4G -----END PGP SIGNATURE----- --Apple-Mail=_4B998D1C-DD4B-409F-AA24-9AB80B5A4A91--