HomeFreeBSD

Add prefetch property

Description

Add prefetch property

ZFS prefetch is currently governed by the zfs_prefetch_disable
tunable. However, this is a module-wide settings - if a specific
dataset benefits from prefetch, while others have issue with it,
an optimal solution does not exists.

This commit introduce the "prefetch" tri-state property, which enable
granular control (at dataset/volume level) for prefetching.

This patch does not remove the zfs_prefetch_disable, which remains
a system-wide switch for enable/disable prefetch. However, to avoid
duplication, it would be preferable to deprecate and then remove
the module tunable.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Signed-off-by: Gionatan Danti <g.danti@assyoma.it>
Co-authored-by: Gionatan Danti <g.danti@assyoma.it>
Closes #15237
Closes #15436

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Oct 24 2023, 6:00 PM
GitHub <noreply@github.com>Committed on Oct 24 2023, 6:00 PM
Parents
rGe57909265b43: "ARC prefetch metadata accesses:" appears twice in the output.
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG07345ac25247: Add prefetch property (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Oct 24 2023, 6:00 PM