From 0d761d99aa3901732d17491b0b8e6d5de021cac3 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Sat, 10 Oct 2026 23:00:37 +0200 Subject: [PATCH] Resident RAM mode overlap: opt-in (STRATA_ADAPT_OVERLAP_RESIDENT=1); exact, +7.0% on an A4000, -2.6% on a RAM-bound 3060 box --- src/program/generate.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/program/generate.cpp b/src/program/generate.cpp index 0d3be8b3..893cd090 100644 --- a/src/program/generate.cpp +++ b/src/program/generate.cpp @@ -8152,6 +8152,11 @@ int main(int argc, char** argv) { : pin_blobs_on() ? "not with page-locked swap sources" : strata::core::dma_batch_mode() != 0 ? "not with STRATA_DMA_BATCH" : adapt_lag() != 1 || adapt_nowait() ? "not with STRATA_ADAPT_LAG / STRATA_ADAPT_NOWAIT" + // the resident RAM mode is exact too (soft_commit_exchanges) but not a win everywhere: RTX A4000 +7.0% + // (5/5 pairs), RTX 3060 on a 46 GB box -2.6% (0/5; the CPU experts and the copies share the RAM bandwidth) + : src.complement_ready() && !(std::getenv("STRATA_ADAPT_OVERLAP_RESIDENT") && + std::getenv("STRATA_ADAPT_OVERLAP_RESIDENT")[0] == '1') + ? "not in the resident RAM mode unless STRATA_ADAPT_OVERLAP_RESIDENT=1" : drive.d.usage.empty() ? "the adaptive tier is off" : nullptr; if (why == nullptr) {