Skip to content

Commit 2bd540d

Browse files
gmelikovtonyhutter
authored andcommitted
man: update recordsize max size info
Reflect openzfs@f2330bd change in our man pages and add some context. Wording is primarily copy-pasted from code comments. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tino Reichardt <[email protected]> Signed-off-by: George Melikov <[email protected]> Closes openzfs#16581
1 parent 48482bb commit 2bd540d

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

man/man4/zfs.4

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,6 +1607,11 @@ Therefore, we formerly forbade creating blocks larger than 1M.
16071607
Larger blocks could be created by changing it,
16081608
and pools with larger blocks can always be imported and used,
16091609
regardless of this setting.
1610+
.Pp
1611+
Note that it is still limited by default to
1612+
.Ar 1 MiB
1613+
on x86_32, because Linux's
1614+
3/1 memory split doesn't leave much room for 16M chunks.
16101615
.
16111616
.It Sy zfs_allow_redacted_dataset_mount Ns = Ns Sy 0 Ns | Ns 1 Pq int
16121617
Allow datasets received with redacted send/receive to be mounted.

man/man7/zfsprops.7

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,11 +1463,22 @@ and less than or equal to
14631463
If the
14641464
.Sy large_blocks
14651465
feature is enabled on the pool, the size may be up to
1466-
.Ar 1 MiB .
1466+
.Ar 16 MiB .
14671467
See
14681468
.Xr zpool-features 7
14691469
for details on ZFS feature flags.
14701470
.Pp
1471+
However, blocks larger than
1472+
.Ar 1 MiB
1473+
can have an impact on i/o latency (e.g. tying up a spinning disk for
1474+
~300ms), and also potentially on the memory allocator.
1475+
.Pp
1476+
Note that maximum size is still limited by default to
1477+
.Ar 1 MiB
1478+
on x86_32, see
1479+
.Sy zfs_max_recordsize
1480+
module parameter.
1481+
.Pp
14711482
Changing the file system's
14721483
.Sy recordsize
14731484
affects only files created afterward; existing files are unaffected.

0 commit comments

Comments
 (0)