mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 15:58:53 +00:00
Ported from #4972 (Phlimosx), extended: the residency is checked again at every request's start, so a smaller cache (VRAM resize) or an eviction turns io prefetch, its decode gate and the look-ahead back on, and a regrown cache turns them off again. Only what the defaults switched on is touched: an explicit STRATA_IO_PREFETCH=1 keeps io prefetch and the look-ahead, STRATA_LOOKAHEAD=1 keeps the look-ahead, STRATA_FILE_TIER_IDLE=0 turns the policy off. set_io_prefetch clears the gate flag with the prefetch. Class E: the answers are identical (45 of 45 decode answers on l620, --mmap-experts, 24576 of 24576 resident).