From nobody Mon Apr 22 13:47:51 2024 X-Original-To: dev-commits-src-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 4VNRQb4VL9z5H7tg; Mon, 22 Apr 2024 13:47:51 +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 4VNRQb40hkz4fLH; Mon, 22 Apr 2024 13:47:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713793671; 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=sKCugiBJF57dzHsEcl5IeR/10PDA/ZAc1b53y3jV/0Q=; b=KjTSwg9pNhzLpt+lueyF60eFj0gXlA8LLvxN+0vFqC0WoktN1k0/r7HO5hN9uCN+Tonyg0 ytOVTrA5Vl6wEBpjOj6A7VsKWEh7b+vmyq+EzQkw2X6fq/A3MWj6IwNfZOj3nUxSyAxtWM ktBqmA5B0JgpFwW9LnErVjNoVQWUxfmgri1m3SASZTsq4aDiYmYIZjFH6b6MWet+6tz0Z8 lc6MsI37sPk4OWVC960hv1m8pq5TTzdNS5Jt5rXYrSyLsN1p2Ez9vpb6WEkbBjeHx1n+73 x3hnlajr90Ms3TqKKebUaCQs5qMlKcbczGqXzzyrwYNZkLP7Bj6hfLYVmG+tJQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713793671; a=rsa-sha256; cv=none; b=TH9G2zMp13nYJvM2ZjxPGT5b3QGdP8qVVm4SKXGmZE3omIWP/BdcnIlx43zYZNIoGy4I2q gGhqrguVgp02RMrhum0U689xNIu6OtV4x6HZBP+u6532pwJ0NZUdKi1AGQqjWN+Oy137ej iLjvnN1B6MaRx99bBUKHXCJiB2vHAPNMeWOsPCnDruIStqMmxmjcYQdr/Gk0ZVdxbc7iCw dSEkxQq3nG/FtRdD/04rB1sgaXe8hwmCBsDVni4eIzlhGc1Swu/HXXFE4RecpPrZv3OrG6 Vu9lG65K54EIJMQHlwk0fRRysgqBLouiqCRZiDV3IH9SODspZ599rtDHcnjCzw== 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=1713793671; 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=sKCugiBJF57dzHsEcl5IeR/10PDA/ZAc1b53y3jV/0Q=; b=WAFiJ7ZcgQKNHzAsT5rG/DS7lAjDuLpc6kooCsrCHOnmdR7i4wb8p7kaBf3aGIYeTmzRhP OxQtjdlD0xZNeNSsmlhHcpUptqxxn0Q4tiz4AJbejJreFZa0AyLxpO+RkkjBfYr5Azq5ye MTpp5UB7MmFeidB1aQWSWjSIJTDDht4w7JjOMX3607UVp9eu0mq2e1LhAEX5SVWNSvqJyr ojOrzQorVGYKxMeIvJmdkXoPayytQvKCEYg9Z9HSIJ1LFeb7STTHGcQVcxW0r6IYsEU+Ma yyfydYGyHgnfbwoZ0D8pSPuEC8Sv6T3WlYA3buqcCaoUkVhvg4j9NXmBEvS1tw== 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 4VNRQb3Tg8zqp0; Mon, 22 Apr 2024 13:47:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43MDlp96021605; Mon, 22 Apr 2024 13:47:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43MDlpNU021602; Mon, 22 Apr 2024 13:47:51 GMT (envelope-from git) Date: Mon, 22 Apr 2024 13:47:51 GMT Message-Id: <202404221347.43MDlpNU021602@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 753de7251761 - stable/14 - tarfs.5: Provide some guidance on zstd frame sizes List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 753de7251761e9ce7dfe7a6196b6d2ef7806d996 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=753de7251761e9ce7dfe7a6196b6d2ef7806d996 commit 753de7251761e9ce7dfe7a6196b6d2ef7806d996 Author: Mark Johnston AuthorDate: 2024-04-05 15:28:55 +0000 Commit: Mark Johnston CommitDate: 2024-04-22 13:47:37 +0000 tarfs.5: Provide some guidance on zstd frame sizes Reviewed by: des, emaste MFC after: 2 weeks Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D44636 (cherry picked from commit fd56d24725860a3c1f12180cf8503d38d8d0c70d) --- share/man/man5/tarfs.5 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/share/man/man5/tarfs.5 b/share/man/man5/tarfs.5 index 5378491b9c9f..56c56ac43287 100644 --- a/share/man/man5/tarfs.5 +++ b/share/man/man5/tarfs.5 @@ -74,6 +74,15 @@ to create the tar file, this can be achieved using the and .Cm ztsd:frame-per-file options. +Sensible frame sizes are powers of 2 between the system's base page size +(see +.Xr arch 7 ) +and the value of the +.Sy kern.maxphys +sysctl. +Smaller frames will generally yield a worse compression ratio and require extra +kernel memory to maintain an index, and larger frames will on average require +more CPU time to access data when performing random I/O. .Sh DIAGNOSTICS If enabled by the .Dv TARFS_DEBUG