From nobody Fri Apr 05 15:44:04 2024 X-Original-To: dev-commits-src-main@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 4VB2pX6JFjz5GgmV; Fri, 5 Apr 2024 15:44:04 +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 4VB2pX5TpKz4QHG; Fri, 5 Apr 2024 15:44:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712331844; 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=Qt8VGc8mySGBubtjuX9MATcvGLkPN9ciocePO8Yqhw8=; b=COwoklhCtFSsqbM961mfuXOfkjnSpfajnVLOIIf4WkdBe+cvpL23ZwYOnOh6v2rBrobGAN wZwsd6sT/DEnX+qMNJyHnEo/QIoUKZaSOfRTGs8lt8U+J1e3hV8+BlsNldTgLiOho4z6rf y2tk8OuDyqzPqq7BxgvicwK805qZotiQfcHTE2NAjZ3QWtzinQq7e8ex7t/a/Y6QPbm4bD GR4Cqt1IIP/HXAH9YtkBSXjQgsIGgoSG/w1xymvcWH4NQjNbgnwuEz6TJyZDyZJjBjZ6PS n84Zu67eUH7uF9tFcs06QfM+yHEDyPsq6fHWHM7bN1F8JE7Vqxz4+ywHyLyF+w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712331844; a=rsa-sha256; cv=none; b=Kwx96F3raLtFNnlMxAwOtN50jg3GFf+gIlKVXHjHXMWIo2Rp6wT8/orpJzuIBHyKpFGmz2 bbIYMoanQSTf7ldQim1gHBMfPKEpe2tROrnYWHJZ3IOFi8D/HQ2tkyyn6bwc3MP/+/qojB h4+mGeL+zh3swWb57YCQWEhvgyv+AFftJrRFkMi0h4NiFzS0dUpFTEVS54q2q64BtrsHB8 YnSmFHZaFpKu8zcvLclJC1oV/oAnLEga+PzmGZUjOQm3oAY8FnjkhaXR+xUPU02hdvYI1F 8GQtbC+ioOIR/i8Eiv1cSoxuALA70rby0Ia8En4IspaaxK1SH7yNbL+doeng9A== 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=1712331844; 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=Qt8VGc8mySGBubtjuX9MATcvGLkPN9ciocePO8Yqhw8=; b=JsnkwwBOBr9j9lAlFWFLcrOswvZtlfZQk1pAxuj1GAR/uYQIIWQVoig2/n4ZVqp00b1ek8 mX+ad4Su1wls640LhEcnaMAmRV19ztrQtucNiWuqeDhu2+0QIY1P+O0gWTAErRWpLxKU6A 8E7DGA31zgRbE2Eo0kigGv4ECZ3AKNaQF4XUwJ9CHa7I3KnjlCnNw8B91/xo0U+QQ1DuW0 zaEcXC9QDbR3+wOkS0YYHQ+PL27z1peXU4Dh5KT3/qTXD+xl+hI7h7cjwPUb+eJtBD5GAU K6b0CI2Uxw9TYqikK+qRwfejjxkS1pJuD7MlRKQ+RCeWTSuybXI/tL7nnRnh2w== 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 4VB2pX554bz15mr; Fri, 5 Apr 2024 15:44:04 +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 435Fi4Yj027856; Fri, 5 Apr 2024 15:44:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 435Fi44E027853; Fri, 5 Apr 2024 15:44:04 GMT (envelope-from git) Date: Fri, 5 Apr 2024 15:44:04 GMT Message-Id: <202404051544.435Fi44E027853@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: fd56d2472586 - main - tarfs.5: Provide some guidance on zstd frame sizes List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: fd56d24725860a3c1f12180cf8503d38d8d0c70d Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=fd56d24725860a3c1f12180cf8503d38d8d0c70d commit fd56d24725860a3c1f12180cf8503d38d8d0c70d Author: Mark Johnston AuthorDate: 2024-04-05 15:28:55 +0000 Commit: Mark Johnston CommitDate: 2024-04-05 15:43:58 +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 --- 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