From nobody Fri Sep 15 11:55:20 2023 X-Original-To: current@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 4RnCM31FnMz4t9RD for ; Fri, 15 Sep 2023 11:55:59 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from mailgate.Leidinger.net (bastille.leidinger.net [89.238.82.207]) (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 ECDSA (P-256) client-digest SHA256) (Client CN "mailgate.leidinger.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RnCM25JL3z3JS8 for ; Fri, 15 Sep 2023 11:55:58 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Authentication-Results: mx1.freebsd.org; none List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1694778940; 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=gz/K573+uN0bGyxFvQctnILdctG72odrEaW5NjYq0k0=; b=DLKDMQ7ZhPO93MMpELJjbeEQMpWojNBPONg0aVocvfoVXqYskX0hG1WQ1fHWzc7PRulHaw 377kOPw2iNWAglR5se0z7DHIrALGjxpHq4wKbRrXYJjmKQKq5Zv4o8qPDDnlG87w8r6Jev PVRQJLjuXNDZw5b6XyxG0gNt7PAxleWumcfjPACNHLt5HpWiRGn6KIMsvbPObMtR+FhwpW RWPMTUd6DGydlFa80f8WohJGhG5miLoyf8ohySXKOtXMh+KHKLBtK825fYXHzIKXKNXuyN HhLrpPeWm6bqj7j6jU3SqFfFBN3obXciCfUUUKqZLFyhtpAte1nxc/4ADcTJLw== Date: Fri, 15 Sep 2023 13:55:20 +0200 From: Alexander Leidinger To: George Michaelson Cc: Mateusz Guzik , Konstantin Belousov , current@freebsd.org Subject: Re: Speed improvements in ZFS In-Reply-To: References: <88e837aeb5a65c1f001de2077fb7bcbd@Leidinger.net> <4d60bd12b482e020fd4b186a9ec1a250@Leidinger.net> <73f7c9d3db8f117deb077fb17b1e352a@Leidinger.net> <58493b568dbe9fb52cc55de86e01f5e2@Leidinger.net> <58ac6211235c52d744666e8ae2ec7568@Leidinger.net> <444770b977b02b98985928bea450e4ce@Leidinger.net> <076f09cc0b99643072d8b80a6ec5b03b@Leidinger.net> <1d0d37f27e4898f1604c6ddc6ad3e831@Leidinger.net> Message-ID: <6107c0b30c80625467ad3d3b10f79be2@Leidinger.net> X-Sender: Alexander@Leidinger.net Organization: No organization, this is a private message. Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=_8c53d5bafc13c998a610677978dffbc0"; micalg=pgp-sha256 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:34240, ipnet:89.238.64.0/18, country:DE] X-Rspamd-Queue-Id: 4RnCM25JL3z3JS8 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --=_8c53d5bafc13c998a610677978dffbc0 Content-Type: multipart/alternative; boundary="=_901e2a62eec775052deb185dcd1f4a0c" --=_901e2a62eec775052deb185dcd1f4a0c Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Am 2023-09-15 13:40, schrieb George Michaelson: > Not wanting to hijack threads I am interested if any of this can > translate back up tree and make Linux ZFS faster. > > And, if there are simple sysctl tuning worth trying in large (tb) > memory model pre 14 FreeBSD systems with slow zfs. Older freebsd alas. The current part of the discussion is not really about ZFS (I use a lot of nullfs on top of ZFS). So no to the first part. The tuning I did (maxvnodes) doesn't really depend on the FreeBSD version, but on the number of files touched/contained in the FS. The only other change I made is updating the OS itself, so this part doesn't apply to pre 14 systems. If you think your ZFS (with a large ARC) is slow, you need to review your primary cache settings per dataset, check the arcstats, and maybe think about a 2nd level arc on fast storage (cache device on nvm or ssd). IF you have a read-once workload, nothing of this will help. So all depends on your workload. Bye, Alexander. -- http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_901e2a62eec775052deb185dcd1f4a0c Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

Am 2023-09-15 13:40, schrieb George Michaelson:

Not wanting to hijack threads I am interested if any of t= his can translate back up tree and make Linux ZFS faster. 
 
And, if there are simple sysctl tuning worth trying in la= rge (tb) memory model pre 14 FreeBSD systems with slow zfs. Older freebsd a= las.

The current part of the discussion is not really about ZFS (I use a lot = of nullfs on top of ZFS). So no to the first part.

The tuning I did (maxvnodes) doesn't really depend on the FreeBSD versio= n, but on the number of files touched/contained in the FS. The only other c= hange I made is updating the OS itself, so this part doesn't apply to pre 1= 4 systems.

If you think your ZFS (with a large ARC) is slow, you need to review you= r primary cache settings per dataset, check the arcstats, and maybe think a= bout a 2nd level arc on fast storage (cache device on nvm or ssd). IF you h= ave a read-once workload, nothing of this will help. So all depends on your= workload.

Bye,
Alexander.

--
--=_901e2a62eec775052deb185dcd1f4a0c-- --=_8c53d5bafc13c998a610677978dffbc0 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc; size=833 Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmUERjgACgkQEg2wmwP4 2IbvrhAAiAvPgtZQ7QxH9+6twK9dF0aDz8dIUKVXSKH/DwzJoOINifRxAMv5TOEq Gd/vM+Y9WRyUWPZDYoz6ryHtY5+1W4tVd50e6F3/e6sfJm+CGwiaxCXzjyM+9zdc ftRVQTiypexUa9m/gvHCiUkoH8UKMYRuEYmV3qa72XASCljEQiht5o4nipAXXVmI Z5A0d4nRoxQP4v7Nm2JTlcYQ7N75ZRAUEtRY10XkK4QsuCdXIDHloDT19tDlEuSz Pf6HAi+st9s6R8mFO9onSrcCk4qNVNI5Tu54K3XUT/a/IRxIboVs0leAEMhjWaUR PgqmBldMJDZgTFMoL3mJUY2dUl8fN8zrM3yURCg9i+0NujZ0eCTISN0S8alu+yHd k2PoHz3J5U8JZwWSITebFfmTXbue+C1YVC7tJu8aLPul1nkCYu8IJmXzlOEKJOFZ ih0wVIiLQ4XBaCsJjeLltfnw46fdH8xTWa7dp7Cg35yLtZXJ74GkMy9aVGTuPtQa bqI33m0AyST0w9PY8nlb9ehBriBMqyIRWqISWsGvgdUFybQJtHKdMpM3re2Snnb/ lJjfG3EpF9pAcePYTtllSRsBa3SLBd5gzAjwnyHqdm0dxV5nGWMYuHq3eIvGNTfj dnnsMv0XMbaJ/MHCpmLOsCoDPYmRVthKkv5Lyqxm63iQxFkBw28= =PGXX -----END PGP SIGNATURE----- --=_8c53d5bafc13c998a610677978dffbc0--