]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Turn default_bs and default_ibs into ZFS_MODULE_PARAMs
authorMateusz Piotrowski <mateusz.piotrowski@klarasystems.com>
Wed, 11 Jan 2023 17:38:20 +0000 (18:38 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 7 Mar 2023 21:58:36 +0000 (13:58 -0800)
commit576d34cb11248f8091f75d16b568a94299cc61a1
treec0127604fdd81608ebae644945a69e71bf1a352c
parent6281b5c4882f12655c9485eebb681665b7422bef
Turn default_bs and default_ibs into ZFS_MODULE_PARAMs

The default_bs and default_ibs tunables control the default block size
and indirect block size.

So far, default_bs and default_ibs were tunable only on FreeBSD, e.g.,

    sysctl vfs.zfs.default_ibs

Remove the FreeBSD-specific sysctl code and expose default_bs and
default_ibs as tunables on both Linux and FreeBSD using
ZFS_MODULE_PARAM.

One of the use cases for changing the values of those tunables is to
lower the indirect block size, which may improve performance of large
directories (as discussed during the OpenZFS Leadership Meeting
on 2022-08-16).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Signed-off-by: Mateusz Piotrowski <mateusz.piotrowski@klarasystems.com>
Sponsored-by: Wasabi Technology, Inc.
Closes #14293
man/man4/zfs.4
module/os/freebsd/zfs/sysctl_os.c
module/zfs/dnode.c