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

This commit is contained in:
Niko1221 committed 2026-10-10 23:00:37 +02:00
1 parent 2eaeda2e4b
commit 0d761d99aa
1 file changed
+5
+5
View File
@@ -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) {