mirror_zfs/module
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
..
avl Prefer VERIFY0P(n) over VERIFY(n == NULL) 2025-08-07 11:41:37 -07:00
icp Fix check for .cfi_negate_ra_state on aarch64 2026-03-06 11:04:37 -08:00
lua SPDX: license tags: MIT 2025-03-13 17:56:54 -07:00
nvpair nvpair: chase FreeBSD xdrproc_t definition 2026-01-28 21:41:33 -05:00
os FreeBSD: Improve dmesg kernel message prefix 2026-03-09 10:17:23 -07:00
zcommon Convert all HAVE_<name> SIMD gates to HAVE_SIMD(<name>) 2026-03-05 15:01:37 -08:00
zfs L2ARC: Scan-based depth cap for persistent markers 2026-03-10 11:00:08 -07:00
zstd Zstd: Document update policy 2026-01-20 13:41:24 -08:00
.gitignore FreeBSD: Ignore symlink to i386 includes 2022-08-02 16:34:23 -07:00
Kbuild.in Add simd_config.h and HAVE_SIMD() selector 2026-03-05 15:01:42 -08:00
Makefile.bsd Add simd_config.h and HAVE_SIMD() selector 2026-03-05 15:01:42 -08:00
Makefile.in Fix --enable-invariants on FreeBSD 2026-01-14 14:54:12 -08:00