mirror_zfs/tests/zfs-tests/include
Ameer Hamza 62ca8f721b L2ARC: Scan-based depth cap for persistent markers
With persistent markers and inclusive scanning, the marker traverses the
entire ARC state across many feed cycles, writing buffers far from the
tail that may no longer be relevant.

Track cumulative bytes scanned per pass in l2arc_ext_scanned. When scans
reach l2arc_ext_headroom_pct (default 25%) of the ARC state size, reset
the pass markers to the tail via lazy reset flags. This keeps markers
focused on the tail zone where buffers soon to be evicted have the most
value for L2ARC.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
Closes #18289
2026-03-10 11:00:08 -07:00
..
.gitignore Add zpool events tests 2017-05-22 12:34:42 -04:00
blkdev.shlib SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
commands.cfg Linux 7.0: explicitly set setlease handler to kernel implementation 2026-02-22 11:39:06 -08:00
default.cfg.in SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
kstat.shlib SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
libtest.shlib zfs_main: create, clone, rename: accept -pp for non-mountable parents 2026-03-09 14:50:18 -07:00
math.shlib SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
properties.shlib SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
tunables.cfg L2ARC: Scan-based depth cap for persistent markers 2026-03-10 11:00:08 -07:00
zpool_script.shlib tests: review every awk(1) invocation 2022-04-01 17:57:55 -07:00