From nobody Mon Apr 20 21:23:57 2026 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 4fzz4y3tyKz6ZfJL for ; Mon, 20 Apr 2026 21:24:02 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fzz4y3HNrz45tT for ; Mon, 20 Apr 2026 21:24:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776720242; 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=IBTS1vQ+a0RBc59lmXvSeG+zvIQFm+KC6nNjUdh+2Q0=; b=yabK79zLuSzkciLW9xW+1fN84sSatmy3J80wyBeCcmDmdOiHdNbqtu2+a/h5SEqh0wqcLw ntCkTdaG/EeV425TT8cUuwFc5vloJ9bVFEShXx7a1DWVxbM3Ss3tq+toVAh21orrhe2ESf HLGLFBbnqXk0ZqCHjSteVFvz5NrskN4U+gGWH2TaZuCwqYA0qi19BXUxOVmXvSpyjfy0wB 200kSezc8W2XJwjdJdMGo+u7ISIcwevaCS0WUD2wKTfZYvFxKrepLQEKQ5/VX4EPkItEvS hTYGbEjxoxNkGSwCBk0zrdVlCcrXJhvLy2YE+8GNe03i+5v7B9mT6ySE7QOtHw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1776720242; a=rsa-sha256; cv=none; b=Spu0xZh1J7B3gkcPff0+gzuA4EE5Xev9tyiptEcSB5Qx8fh6VYjCBwAvrxuzOU2qfgV4o6 Hf1MASg796PL4AnH5yvfTZUnjYjLkfmUTsHM+8Dn0DG4+rPRwOlE+/SmEAGntCAsAhDELa 7oJUhPnP8G45Cry1fzbG3duJWGpsVFBrBhlZt8BI2oqHpVgQyJkhKoWNvjVFjnxFn+W1Fz f1XAVz/eAPCtMsWCPpFcqijQS+3b8+qtMEqqdWKvDqfWxGK96BirhJk2qUwWg1xDpVsG0y kCnPCb3t+ufgHkdNjNRIA4yB11RZpE/xArgxFWxSLEVj5+qy0CwqzMKQEAy6Mw== 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=1776720242; 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=IBTS1vQ+a0RBc59lmXvSeG+zvIQFm+KC6nNjUdh+2Q0=; b=Zn+rV4kc84F6IxhIS1U4+XNm84w8qqXQhHFqtjMqsJnvNPMROyI/EOxrXCMo1Sh9EqGNTK nTpzHDZrsb9Cs+5lwDv2lbrLwhM9rpLi9WzTb4KsJ5j1s9tKbiiu1V28xBjYYioz6JBq0Y XllJZId4mYEEZYMNy8NolDdkvsIZAestdVTFpT5OgtFL/poxCB9W8+IqhKAnhav+BPYGqZ DwFLJ+YyiQShZAsghq6mvougoet0knh/SvjIkg9K5qCjH7TFPUW28mfe6G6Lr8f2++sXeo iK88JtlBqANg61sZyNBL+W1PXU9g4fFtJRHf3XCACFNIYrVdyFN4421qiahiPQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fzz4y2vBVzJ0 for ; Mon, 20 Apr 2026 21:24:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 30eb6 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 20 Apr 2026 21:23:57 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alexander Ziaee Subject: git: 975e3605ebb1 - main - geom manuals: Clarify units 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: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 975e3605ebb15cbaf5a25c1c9d1f51aed41291d0 Auto-Submitted: auto-generated Date: Mon, 20 Apr 2026 21:23:57 +0000 Message-Id: <69e6996d.30eb6.164a66af@gitrepo.freebsd.org> The branch main has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=975e3605ebb15cbaf5a25c1c9d1f51aed41291d0 commit 975e3605ebb15cbaf5a25c1c9d1f51aed41291d0 Author: Alexander Ziaee AuthorDate: 2026-04-20 17:21:23 +0000 Commit: Alexander Ziaee CommitDate: 2026-04-20 21:22:57 +0000 geom manuals: Clarify units The gpart manual says that sizes are specified in blocks, unless an SI unit suffix is provided. This confuses new operators because GEOM uses binary bytes, a large difference at modern storage pool sizes. Rewrite suffixes in all GEOM manuals to consistently clarify this, matching what we and the rest of the industry have been doing in other documentation. While here, use non-breaking spaces between numbers and units, unless they are already written with a hyphen. MFC after: 3 days Reviewed by: fuz Reported by: bbaovanc Differential Revision: https://reviews.freebsd.org/D56534 --- lib/geom/cache/gcache.8 | 4 ++-- lib/geom/eli/geli.8 | 8 +++---- lib/geom/part/gpart.8 | 52 ++++++++++++++++++++++++++-------------------- sbin/ggate/ggatec/ggatec.8 | 8 +++---- sbin/ggate/ggated/ggated.8 | 4 ++-- 5 files changed, 41 insertions(+), 35 deletions(-) diff --git a/lib/geom/cache/gcache.8 b/lib/geom/cache/gcache.8 index 026c66b0966b..072f35e92c01 100644 --- a/lib/geom/cache/gcache.8 +++ b/lib/geom/cache/gcache.8 @@ -82,9 +82,9 @@ The utility is used to control GEOM cache, which can speed up read performance by sending fixed size read requests to its consumer. It has been developed to address -the problem of a horrible read performance of a 64k blocksize FS +the problem of a horrible read performance of a 64\~KiB blocksize FS residing on a RAID3 array with 8 data components, where a single -disk component would only get 8k read requests, thus effectively +disk component would only get 8\~KiB read requests, thus effectively killing disk performance under high load. .Pp Caching can be configured using two different methods: diff --git a/lib/geom/eli/geli.8 b/lib/geom/eli/geli.8 index 876caf67ab40..b38f54d82293 100644 --- a/lib/geom/eli/geli.8 +++ b/lib/geom/eli/geli.8 @@ -249,7 +249,7 @@ Additional options include: .It Fl a Ar aalgo Enable data integrity verification (authentication) using the given algorithm. This will reduce the size of storage available and also reduce speed. -For example, when using 4096 bytes sector and +For example, when using 4096\~bytes sector and .Nm HMAC/SHA256 algorithm, 89% of the original provider storage will be available for use. Currently supported algorithms are: @@ -883,8 +883,8 @@ The crypto card and the driver have to support this feature. .It Va kern.geom.eli.key_cache_limit : No 8192 Specifies how many Data Keys to cache. The default limit -(8192 keys) will allow caching of all keys for a 4TB provider with 512 byte -sectors and will take around 1MB of memory. +(8192 keys) will allow caching of all keys for a 4\~TiB provider with 512\~byte +sectors and will take around 1\~MiB of memory. .It Va kern.geom.eli.key_cache_hits Reports how many times we were looking up a Data Key and it was already in cache. @@ -936,7 +936,7 @@ Exit status is 0 on success, and 1 if the command fails. .Sh EXAMPLES Initialize a provider which is going to be encrypted with a passphrase and random data from a file on the user's pen drive. -Use 4kB sector size. +Use 4\~KiB sector size. Attach the provider, create a filesystem, and mount it. Do the work. Unmount the provider and detach it: diff --git a/lib/geom/part/gpart.8 b/lib/geom/part/gpart.8 index 97dd60182435..32a247529dfe 100644 --- a/lib/geom/part/gpart.8 +++ b/lib/geom/part/gpart.8 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd December 4, 2025 +.Dd April 20, 2026 .Dt GPART 8 .Os .Sh NAME @@ -168,7 +168,9 @@ to be multiple of value. .It Fl b Ar start The logical block address where the partition will begin. -An SI unit suffix is allowed. +A single-character suffix +.Pq k, m, g, etc. +is allowed to specify binary byte sizes. .It Fl f Ar flags Additional operational flags. See the section entitled @@ -187,7 +189,9 @@ partition labels. .It Fl s Ar size Create a partition of size .Ar size . -An SI unit suffix is allowed. +A single-character suffix +.Pq k, m, g, etc. +is allowed to specify binary byte sizes. .It Fl t Ar type Create a partition of type .Ar type . @@ -422,8 +426,10 @@ about its use. .It Fl i Ar index Specifies the index of the partition to be resized. .It Fl s Ar size -Specifies the new size of the partition, in logical blocks. -An SI unit suffix is allowed. +Specifies the new size of the partition, in logical blocks, +or binary byte sizes if a single-character suffix +.Pq k, m, g, etc. +is provided. .El .\" ==== RESTORE ==== .It Cm restore @@ -1134,7 +1140,7 @@ with type (see the .Sx "PARTITION TYPES" section). -It uses 8 KB size bootstrap code image +It uses 8\~KiB size bootstrap code image .Pa /boot/boot , embedded into the partition table's metadata area. .Pp @@ -1149,7 +1155,7 @@ partition (see the section) and runs the next bootstrap stage from it. The .Cm freebsd-boot -partition should be smaller than 545 KB. +partition should be smaller than 545\~KiB. It can be located either before or after other .Fx partitions on the disk. @@ -1190,13 +1196,13 @@ After all pools are detected, is started from the first one found set as bootable. .Pp The APM scheme also does not support embedding bootstrap code. -Instead, the 800 KBytes bootstrap code image +Instead, the 800\~KiB bootstrap code image .Pa /boot/boot1.hfs should be written with the .Cm gpart bootcode command to a partition of type .Cm apple-boot , -which should also be 800 KB in size. +which should also be 800\~KiB in size. .Sh OPERATIONAL FLAGS Actions other than the .Cm commit @@ -1351,8 +1357,8 @@ naming scheme. .Sh EXIT STATUS Exit status is 0 on success, and 1 if the command fails. .Sh EXAMPLES -The examples below assume that the disk's logical block size is 512 -bytes, regardless of its physical block size. +The examples below assume that the disk's logical block size is 512\~bytes, +regardless of its physical block size. .Ss GPT In this example, we will format .Pa ada0 @@ -1384,31 +1390,31 @@ for UFS or .Pa /boot/gptzfsboot for ZFS .Pc , -but smaller than 545 kB since the first-stage loader will load the +but smaller than 545\~KiB since the first-stage loader will load the entire partition into memory during boot, regardless of how much data it actually contains. -We create a 472-block (236 kB) boot partition at offset 40, which is -the size of the partition table (34 blocks or 17 kB) rounded up to the -nearest 4 kB boundary. +We create a 472-block (236\~KiB) boot partition at offset 40, which is +the size of the partition table (34\~blocks or 17\~KiB) rounded up to the +nearest 4\~KiB boundary. .Bd -literal -offset indent /sbin/gpart add -b 40 -s 472 -t freebsd-boot ada0 /sbin/gpart bootcode -p /boot/gptboot -i 1 ada0 .Ed .Pp -We now create a 4 GB swap partition at the first available offset, -which is 40 + 472 = 512 blocks (256 kB). +We now create a 4\~GiB swap partition at the first available offset, +which is 40 + 472 = 512 blocks (256\~KiB). .Bd -literal -offset indent /sbin/gpart add -s 4G -t freebsd-swap ada0 .Ed .Pp -Aligning the swap partition and all subsequent partitions on a 256 kB +Aligning the swap partition and all subsequent partitions on a 256\~KiB boundary ensures optimal performance on a wide range of media, from plain old disks with 512-byte blocks, through modern .Dq advanced format disks with 4096-byte physical blocks, to RAID volumes with stripe -sizes of up to 256 kB. +sizes of up to 256\~KiB. .Pp -Finally, we create and format an 8 GB +Finally, we create and format an 8\~GiB .Cm freebsd-ufs partition for the root filesystem, leaving the rest of the device free for additional filesystems: @@ -1424,8 +1430,8 @@ using a traditional .Bx disklabel. .Pp -First, we create the partition table as well as a single partition 64 GB in -size and an alignment of 4 kB, then we mark that partition active (bootable) +First, we create the partition table as well as a single partition 64\~GiB in +size and an alignment of 4\~KiB, then we mark that partition active (bootable) and install the first-stage boot loader: .Bd -literal -offset indent /sbin/gpart create -s MBR ada0 @@ -1444,7 +1450,7 @@ with room for up to 20 partitions: /sbin/gpart create -s BSD -n 20 ada0s1 .Ed .Pp -We then create an 8 GB root partition and a 4 GB swap partition: +We then create an 8\~GiB root partition and a 4\~GiB swap partition: .Bd -literal -offset indent /sbin/gpart add -t freebsd-ufs -s 8G ada0s1 /sbin/gpart add -t freebsd-swap -s 4G ada0s1 diff --git a/sbin/ggate/ggatec/ggatec.8 b/sbin/ggate/ggatec/ggatec.8 index 99f9bcab5964..b8c5af570f06 100644 --- a/sbin/ggate/ggatec/ggatec.8 +++ b/sbin/ggate/ggatec/ggatec.8 @@ -101,7 +101,7 @@ providers. .El .Pp Available options: -.Bl -tag -width ".Fl s Cm ro | wo | rw" +.Bl -tag -width "-q queue_size" .It Fl f Forcibly destroy .Nm ggate @@ -136,15 +136,15 @@ start to be canceled. Default is 1024. .It Fl R Ar rcvbuf Size of receive buffer to use. -Default is 131072 (128kB). +Default is 131072 (128\~KiB). .It Fl S Ar sndbuf Size of send buffer to use. -Default is 131072 (128kB). +Default is 131072 (128\~KiB). .It Fl s Ar sectorsize Sector size for .Nm ggate provider. -If not specified, it is taken from the device, or set to 512 bytes for files. +If not specified, it is taken from the device, or set to 512\~bytes for files. .It Fl t Ar timeout Number of seconds to wait before an I/O request will be canceled. Default is 0, which means no timeout. diff --git a/sbin/ggate/ggated/ggated.8 b/sbin/ggate/ggated/ggated.8 index 8e3ad68d1db0..c48967268df8 100644 --- a/sbin/ggate/ggated/ggated.8 +++ b/sbin/ggate/ggated/ggated.8 @@ -72,10 +72,10 @@ PID file that uses. .It Fl R Ar rcvbuf Size of receive buffer to use. -Default is 131072 (128kB). +Default is 131072 (128\~KiB). .It Fl S Ar sndbuf Size of send buffer to use. -Default is 131072 (128kB). +Default is 131072 (128\~KiB). .It Fl v Do not fork, run in foreground and print debug information on standard output.