From nobody Wed Nov 02 21:40:44 2022 X-Original-To: dev-commits-doc-all@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 4N2gL43hgxz4h0xB for ; Wed, 2 Nov 2022 21:40:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N2gL4395Pz3DCc; Wed, 2 Nov 2022 21:40:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667425244; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LzsMeaOHI+iIhfKseoaNp/a7k7ELD/UwFufQxuzUUH0=; b=h+POYlBA6tTbbmi+Uh3U64PDntI59L7JaO+obBreVMj+8TDgALohirMAtHEHXzMP5Ur7ca Cw09ZzdRrGQMJOajtviNcQTK1X5Yu/4PZcNrDiyeXb0wbWpTRg3EIS/1f+rLUCFa5UeNCt P6o1QI/ks68kfS2Yb5HjJBDDcF3tHUIeaBHGQee4wGvTKO8+YlrVCuUSEt6F6sO8fRQ6w+ 7OiKFiSvNj+leIj0pAMNVbQ8sL0EapykWQ1oHhK4Qymq+k+DSkbmerKUs2ntW9+y8DggZb VtcdGsv7ZdxRs5zvFym0YZoaVFoXPUTgbfYK/bPRHTTw7mB/34Z4VeIbIGozKw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N2gL42CkKz1Bh2; Wed, 2 Nov 2022 21:40:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2A2Leiow056317; Wed, 2 Nov 2022 21:40:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A2Leisd056316; Wed, 2 Nov 2022 21:40:44 GMT (envelope-from git) Date: Wed, 2 Nov 2022 21:40:44 GMT Message-Id: <202211022140.2A2Leisd056316@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Pau Amma Subject: git: 80403a756d - main - Update ZFS arc min/max/meta_limit sysctl loader variables List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pauamma X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 80403a756d2c14769c32b3e999974dc7e3bb8935 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667425244; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LzsMeaOHI+iIhfKseoaNp/a7k7ELD/UwFufQxuzUUH0=; b=j74kpvBgu8NXmvSeZJ70Tptq50n++fx9OU//YHYO6+W2QDZSQuEZsGjmOlUZ3xFtkmPyMq 0A1kXuzWjoOdMenE8mbIc0NOsWA23Q7dIDJs93P/AKSUCAZjXFTyI0zadY7ejIGNN1y4sK Zdaboc0NMV6HSAMJisHHloHDUfwOAmdREhNo6HqChbZ1PwwQ9B0zZLbV7gXMaF2DdLV2Vn n8J601gGHesklV2h9vC+h5Hhgw9G5xl7/dKH6IvsnMc1n6BK/lRiwAVt6XL46JvBzvc6UP tK0Z+Lh2GCsxnfpfWXyWOQABszK0HHF1KEyO2ZoeyDBophQMKfXxB4sb+e7AbQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667425244; a=rsa-sha256; cv=none; b=KrNghktjhr6M6X8rcQbk4os30jipK62D/b42ExxSbx7tGM3GX14QzE8H+5DPiRPHTiVChE OF0puwpBpWtkn36U23J+Wzvu+GT2VEzkU/6G9WAVlVF83YTuZhj6H6OD9FrlYwd30BJkvf nViVGNA1C+raA4LBs326PXrFWGNbvfU9SWIbzFeDweBuJH4xaC7igfGwpHSCK4Ms4Oc5iw smUOWw6CVTVuzJiEXz8ShmINfrMuhRQiFQYjqy7CeptZkuhxuBUWTVmuk0G/JvTlo2gfJ1 UQCJ7EMVT3pXhezFZcabiDVk+YfPZmS6kZpj+eMGotPMNy7P4BNUtX4Yi0ms+w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pauamma: URL: https://cgit.FreeBSD.org/doc/commit/?id=80403a756d2c14769c32b3e999974dc7e3bb8935 commit 80403a756d2c14769c32b3e999974dc7e3bb8935 Author: Jerry Jacobs AuthorDate: 2022-11-01 05:39:08 +0000 Commit: Pau Amma CommitDate: 2022-11-02 21:36:13 +0000 Update ZFS arc min/max/meta_limit sysctl loader variables Pull Request: https://github.com/freebsd/freebsd-doc/pull/92 Reviewed by: carlavilla, gjb, pauamma (implicit) Approved by: carlavilla (mentor), gjb (mentor) --- documentation/content/en/books/handbook/zfs/_index.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/documentation/content/en/books/handbook/zfs/_index.adoc b/documentation/content/en/books/handbook/zfs/_index.adoc index 5400afa7b5..9720122a84 100644 --- a/documentation/content/en/books/handbook/zfs/_index.adoc +++ b/documentation/content/en/books/handbook/zfs/_index.adoc @@ -2619,9 +2619,9 @@ If a user has the `snapshot` permission and the `allow` permission, that user ca Adjust tunables to make ZFS perform best for different workloads. -* [[zfs-advanced-tuning-arc_max]] `_vfs.zfs.arc_max_` - Upper size of the <>. The default is all RAM but 1 GB, or 5/8 of all RAM, whichever is more. Use a lower value if the system runs any other daemons or processes that may require memory. Adjust this value at runtime with man:sysctl[8] and set it in [.filename]#/boot/loader.conf# or [.filename]#/etc/sysctl.conf#. -* [[zfs-advanced-tuning-arc_meta_limit]] `_vfs.zfs.arc_meta_limit_` - Limit the amount of the <> used to store metadata. The default is one fourth of `vfs.zfs.arc_max`. Increasing this value will improve performance if the workload involves operations on a large number of files and directories, or frequent metadata operations, at the cost of less file data fitting in the <>. Adjust this value at runtime with man:sysctl[8] in [.filename]#/boot/loader.conf# or [.filename]#/etc/sysctl.conf#. -* [[zfs-advanced-tuning-arc_min]] `_vfs.zfs.arc_min_` - Lower size of the <>. The default is one half of `vfs.zfs.arc_meta_limit`. Adjust this value to prevent other applications from pressuring out the entire <>. Adjust this value at runtime with man:sysctl[8] and in [.filename]#/boot/loader.conf# or [.filename]#/etc/sysctl.conf#. +* [[zfs-advanced-tuning-arc_max]] `_vfs.zfs.arc.max_` starting with 13.x (`_vfs.zfs.arc_max` for 12.x) - Upper size of the <>. The default is all RAM but 1 GB, or 5/8 of all RAM, whichever is more. Use a lower value if the system runs any other daemons or processes that may require memory. Adjust this value at runtime with man:sysctl[8] and set it in [.filename]#/boot/loader.conf# or [.filename]#/etc/sysctl.conf#. +* [[zfs-advanced-tuning-arc_meta_limit]] `_vfs.zfs.arc.meta_limit_` starting with 13.x (`_vfs.zfs.arc_meta_limit` for 12.x)` - Limit the amount of the <> used to store metadata. The default is one fourth of `vfs.zfs.arc.max`. Increasing this value will improve performance if the workload involves operations on a large number of files and directories, or frequent metadata operations, at the cost of less file data fitting in the <>. Adjust this value at runtime with man:sysctl[8] in [.filename]#/boot/loader.conf# or [.filename]#/etc/sysctl.conf#. +* [[zfs-advanced-tuning-arc_min]] `_vfs.zfs.arc.min_` starting with 13.x (`_vfs.zfs.arc_min` for 12.x) - Lower size of the <>. The default is one half of `vfs.zfs.arc.meta_limit`. Adjust this value to prevent other applications from pressuring out the entire <>. Adjust this value at runtime with man:sysctl[8] and in [.filename]#/boot/loader.conf# or [.filename]#/etc/sysctl.conf#. * [[zfs-advanced-tuning-vdev-cache-size]] `_vfs.zfs.vdev.cache.size_` - A preallocated amount of memory reserved as a cache for each device in the pool. The total amount of memory used will be this value multiplied by the number of devices. Set this value at boot time and in [.filename]#/boot/loader.conf#. * [[zfs-advanced-tuning-min-auto-ashift]] `_vfs.zfs.min_auto_ashift_` - Lower `ashift` (sector size) used automatically at pool creation time. The value is a power of two. The default value of `9` represents `2^9 = 512`, a sector size of 512 bytes. To avoid _write amplification_ and get the best performance, set this value to the largest sector size used by a device in the pool. + @@ -2684,7 +2684,7 @@ A test system with 1 GB of physical memory benefitted from adding these options .... vm.kmem_size="330M" vm.kmem_size_max="330M" -vfs.zfs.arc_max="40M" +vfs.zfs.arc.max="40M" vfs.zfs.vdev.cache.size="5M" ....