[GH-ISSUE #3725] [Engine] Windows: the auto RAM complement ignores the WDDM shared-segment cap, the engine dies at start on a 2-GPU layer split (patch inside) #1557

Open
opened 2026-11-04 01:52:13 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @altiber on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3725

Problem: on Windows the auto size of the pinned RAM complement is taken from the commit capacity only; it can exceed the WDDM shared (non-local) segment of the GPUs, and the engine dies at start on the next tiny allocation.

Environment: Windows 11, Strata v0.2.2 (011c9e60), engine 0.1.47 built from source (CUDA 13.0, archs 86;120), Q2_0 native pack, layer split over RTX 5070 Ti 16 GB + RTX 3070 8 GB (gpu: [0,1], card order 1,0), Ryzen 7 9700X, 31 GB RAM, --resident-experts, --max-context 131072 --kv int8, MTP + --spec 4.

Reproduce:

  1. Config without --resident-budget-gib (auto complement), layer split over the two cards as above.
  2. Stop a running Strata and start it again right away (more RAM is free then: 19.06 GiB of available commit).
  3. The engine sizes the complement at 14.81 GiB and pins it.

Expected: the engine starts; the auto size stays within what the GPUs can map.

Actual: EngineDied before READY - prefill: the token id buffer (out of memory): the failing allocation is cudaMalloc(chunk * 4) in Prefill::init (~26 KB), so it is not the VRAM.

Evidence:

FileExpertSource: room for the complement: 14.81 GiB (19.06 GiB available commit minus 4 GiB headroom and a 0.25 GiB margin)
FileExpertSource: mapped pinned cache complement ready: resident 14.81 GiB, pinned 14.81 GiB in 6 s; page-locked and mapped
...
strata serve: layer split, CUDA1 prompt path: prefill: the token id buffer (out of memory)
EngineDied: the engine exited before it was ready

Windows counter GPU Adapter Memory\Shared Usage: 11.98 GB on both NVIDIA adapters with a 10.5 GiB complement.

Reproduction status: reproduced on this machine - two starts in a row failed (14.81 and 14.91 GiB pinned); starts that pinned 10.3-10.6 GiB worked. With the patch below several starts worked (10.57-12.68 GiB pinned, all READY). The WDDM explanation is our analysis, confirmed by the counter above, not by a statement of the driver.

Cause. Under WDDM every page-locked mapped host buffer counts against the GPU's shared (non-local) segment, on every CUDA device it is mapped into, and Windows caps that segment at about half the RAM (here ~15.5 GB). The Windows counter GPU Adapter Memory\Shared Usage shows 11.98 GB on both NVIDIA adapters with a 10.5 GiB complement, i.e. ~1.5 GB of other mapped buffers on top. 14.8 GiB + ~1.5 GB > ~15.5 GB, so the next allocation fails. The commit capacity (RAM + page file) does not show this limit at all.

Fix (tested here). Ask DXGI how much of the non-local segment this process has left on each NVIDIA adapter (IDXGIAdapter3::QueryVideoMemoryInfo(0, DXGI_MEMORY_SEGMENT_GROUP_NON_LOCAL), Budget - CurrentUsage), take the smallest, keep 2 GiB for the buffers mapped after the complement (STRATA_WDDM_SHARED_RESERVE_MIB overrides), and clamp the budget to it. Result on the same PC, full auto, no manual budget:

FileExpertSource: room for the complement: 12.90 GiB (17.15 GiB available commit minus 4 GiB headroom and a 0.25 GiB margin)
FileExpertSource: WDDM shared segment: 12.97 GiB left on the tightest NVIDIA GPU, 2.00 GiB kept for the engine's later mapped buffers
FileExpertSource: the complement is limited by the WDDM shared segment: 12.90 -> 10.97 GiB
FileExpertSource: mapped pinned cache complement ready: resident 10.97 GiB, pinned 10.97 GiB in 5 s; page-locked and mapped

READY in 25 s, serving a coding agent since. The 2 GiB reserve is a fixed guess from the measured ~1.5 GB; a better value could come from the lend ring / hand-off sizes the engine knows later. The adapter filter is VendorId 0x10DE; matching the CUDA devices by LUID would be more exact.

diff --git a/src/core/expert_source.cpp b/src/core/expert_source.cpp
index b8ad8fb4..bae20af5 100644
--- a/src/core/expert_source.cpp
+++ b/src/core/expert_source.cpp
@@ -45,6 +45,8 @@
 #define NOMINMAX   // std::numeric_limits<T>::max() below
 #endif
 #include <windows.h>
+#include <dxgi1_4.h>   // the WDDM shared segment (wddm_shared_room_bytes)
+#pragma comment(lib, "dxgi.lib")
 #else
 #include <fcntl.h>
 #if defined(__APPLE__)
@@ -474,6 +476,39 @@ bool available_memory_bytes(uint64_t& bytes, uint64_t* commit = nullptr) {
     return bytes > 0;
 }
 
+#if defined(_WIN32)
+/// The WDDM shared (non-local) segment of the NVIDIA GPUs: Windows lets a GPU map about half the RAM of system memory,
+/// and every page-locked, mapped host buffer counts against that segment on each CUDA device it is mapped into.  The
+/// commit capacity does not show this limit: a 31 GB PC (layer split over two cards) with 14.9 GiB of available commit
+/// pinned a 14.8 GiB complement, the segment then held ~16.3 of its ~15.5 GiB, and the next 26 KB cudaMalloc on the
+/// second card failed with out of memory ("prefill: the token id buffer").  The smallest room this process has left
+/// over the NVIDIA adapters (Budget - CurrentUsage), or false when DXGI cannot tell.
+bool wddm_shared_room_bytes(uint64_t& room) {
+    IDXGIFactory1* f = nullptr;
+    if (FAILED(CreateDXGIFactory1(__uuidof(IDXGIFactory1), (void**) &f)) || f == nullptr) return false;
+    bool found = false;
+    room = std::numeric_limits<uint64_t>::max();
+    IDXGIAdapter1* a = nullptr;
+    for (UINT i = 0; f->EnumAdapters1(i, &a) != DXGI_ERROR_NOT_FOUND; ++i) {
+        DXGI_ADAPTER_DESC1 d{};
+        IDXGIAdapter3* a3 = nullptr;
+        if (SUCCEEDED(a->GetDesc1(&d)) && d.VendorId == 0x10DE && !(d.Flags & DXGI_ADAPTER_FLAG_SOFTWARE) &&
+            SUCCEEDED(a->QueryInterface(__uuidof(IDXGIAdapter3), (void**) &a3)) && a3 != nullptr) {
+            DXGI_QUERY_VIDEO_MEMORY_INFO info{};
+            if (SUCCEEDED(a3->QueryVideoMemoryInfo(0, DXGI_MEMORY_SEGMENT_GROUP_NON_LOCAL, &info)) && info.Budget > 0) {
+                const uint64_t left = info.Budget > info.CurrentUsage ? info.Budget - info.CurrentUsage : 0;
+                room = std::min<uint64_t>(room, left);
+                found = true;
+            }
+            a3->Release();
+        }
+        a->Release();
+    }
+    f->Release();
+    return found;
+}
+#endif
+
 /// #1250: the pages that are really free (MemFree), not the reclaimable cache MemAvailable counts; false when unknown.
 bool free_memory_bytes(uint64_t& bytes) {
 #if defined(__linux__)
@@ -3541,6 +3576,26 @@ bool FileExpertSource::pin_cache_complement(
                              (double) headroom_bytes / 1073741824.0, (double) clamped / 1073741824.0);
             budget_bytes = clamped;
         }
+#if defined(_WIN32)
+        {   // the WDDM shared segment (wddm_shared_room_bytes); what the engine maps after the complement (the lend
+            // ring, the hand-off and staging buffers: ~1.5 GiB on a two-card layer split) needs room in it too
+            uint64_t room = 0;
+            const char* r = std::getenv("STRATA_WDDM_SHARED_RESERVE_MIB");
+            const uint64_t reserve = (uint64_t) (r != nullptr ? std::strtoull(r, nullptr, 10) : 2048) << 20;
+            if (wddm_shared_room_bytes(room)) {
+                const uint64_t cap = room > reserve ? room - reserve : 0;
+                std::fprintf(stderr, "FileExpertSource: WDDM shared segment: %.2f GiB left on the tightest NVIDIA GPU, "
+                                     "%.2f GiB kept for the engine's later mapped buffers\n",
+                             (double) room / 1073741824.0, (double) reserve / 1073741824.0);
+                if ((uint64_t) budget_bytes > cap) {
+                    std::fprintf(stderr, "FileExpertSource: the complement is limited by the WDDM shared segment: "
+                                         "%.2f -> %.2f GiB\n", (double) budget_bytes / 1073741824.0,
+                                 (double) cap / 1073741824.0);
+                    budget_bytes = cap;
+                }
+            }
+        }
+#endif
         std::vector<uint64_t> ranked(offsets.size(), kNoComplement);
         uint64_t at = 0;
         int64_t held = 0;

Originally created by @altiber on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3725 **Problem:** on Windows the auto size of the pinned RAM complement is taken from the commit capacity only; it can exceed the WDDM shared (non-local) segment of the GPUs, and the engine dies at start on the next tiny allocation. **Environment:** Windows 11, Strata v0.2.2 (011c9e60), engine 0.1.47 built from source (CUDA 13.0, archs 86;120), Q2_0 native pack, layer split over RTX 5070 Ti 16 GB + RTX 3070 8 GB (`gpu: [0,1]`, card order 1,0), Ryzen 7 9700X, 31 GB RAM, `--resident-experts`, `--max-context 131072 --kv int8`, MTP + `--spec 4`. **Reproduce:** 1. Config without `--resident-budget-gib` (auto complement), layer split over the two cards as above. 2. Stop a running Strata and start it again right away (more RAM is free then: 19.06 GiB of available commit). 3. The engine sizes the complement at 14.81 GiB and pins it. **Expected:** the engine starts; the auto size stays within what the GPUs can map. **Actual:** `EngineDied` before READY - `prefill: the token id buffer (out of memory)`: the failing allocation is `cudaMalloc(chunk * 4)` in `Prefill::init` (~26 KB), so it is not the VRAM. **Evidence:** ``` FileExpertSource: room for the complement: 14.81 GiB (19.06 GiB available commit minus 4 GiB headroom and a 0.25 GiB margin) FileExpertSource: mapped pinned cache complement ready: resident 14.81 GiB, pinned 14.81 GiB in 6 s; page-locked and mapped ... strata serve: layer split, CUDA1 prompt path: prefill: the token id buffer (out of memory) EngineDied: the engine exited before it was ready ``` Windows counter `GPU Adapter Memory\Shared Usage`: 11.98 GB on **both** NVIDIA adapters with a 10.5 GiB complement. **Reproduction status:** reproduced on this machine - two starts in a row failed (14.81 and 14.91 GiB pinned); starts that pinned 10.3-10.6 GiB worked. With the patch below several starts worked (10.57-12.68 GiB pinned, all READY). The WDDM explanation is our analysis, confirmed by the counter above, not by a statement of the driver. **Cause.** Under WDDM every page-locked *mapped* host buffer counts against the GPU's shared (non-local) segment, on every CUDA device it is mapped into, and Windows caps that segment at about half the RAM (here ~15.5 GB). The Windows counter `GPU Adapter Memory\Shared Usage` shows 11.98 GB on **both** NVIDIA adapters with a 10.5 GiB complement, i.e. ~1.5 GB of other mapped buffers on top. 14.8 GiB + ~1.5 GB > ~15.5 GB, so the next allocation fails. The commit capacity (RAM + page file) does not show this limit at all. **Fix (tested here).** Ask DXGI how much of the non-local segment this process has left on each NVIDIA adapter (`IDXGIAdapter3::QueryVideoMemoryInfo(0, DXGI_MEMORY_SEGMENT_GROUP_NON_LOCAL)`, `Budget - CurrentUsage`), take the smallest, keep 2 GiB for the buffers mapped after the complement (`STRATA_WDDM_SHARED_RESERVE_MIB` overrides), and clamp the budget to it. Result on the same PC, full auto, no manual budget: ``` FileExpertSource: room for the complement: 12.90 GiB (17.15 GiB available commit minus 4 GiB headroom and a 0.25 GiB margin) FileExpertSource: WDDM shared segment: 12.97 GiB left on the tightest NVIDIA GPU, 2.00 GiB kept for the engine's later mapped buffers FileExpertSource: the complement is limited by the WDDM shared segment: 12.90 -> 10.97 GiB FileExpertSource: mapped pinned cache complement ready: resident 10.97 GiB, pinned 10.97 GiB in 5 s; page-locked and mapped ``` READY in 25 s, serving a coding agent since. The 2 GiB reserve is a fixed guess from the measured ~1.5 GB; a better value could come from the lend ring / hand-off sizes the engine knows later. The adapter filter is VendorId 0x10DE; matching the CUDA devices by LUID would be more exact. ```diff diff --git a/src/core/expert_source.cpp b/src/core/expert_source.cpp index b8ad8fb4..bae20af5 100644 --- a/src/core/expert_source.cpp +++ b/src/core/expert_source.cpp @@ -45,6 +45,8 @@ #define NOMINMAX // std::numeric_limits<T>::max() below #endif #include <windows.h> +#include <dxgi1_4.h> // the WDDM shared segment (wddm_shared_room_bytes) +#pragma comment(lib, "dxgi.lib") #else #include <fcntl.h> #if defined(__APPLE__) @@ -474,6 +476,39 @@ bool available_memory_bytes(uint64_t& bytes, uint64_t* commit = nullptr) { return bytes > 0; } +#if defined(_WIN32) +/// The WDDM shared (non-local) segment of the NVIDIA GPUs: Windows lets a GPU map about half the RAM of system memory, +/// and every page-locked, mapped host buffer counts against that segment on each CUDA device it is mapped into. The +/// commit capacity does not show this limit: a 31 GB PC (layer split over two cards) with 14.9 GiB of available commit +/// pinned a 14.8 GiB complement, the segment then held ~16.3 of its ~15.5 GiB, and the next 26 KB cudaMalloc on the +/// second card failed with out of memory ("prefill: the token id buffer"). The smallest room this process has left +/// over the NVIDIA adapters (Budget - CurrentUsage), or false when DXGI cannot tell. +bool wddm_shared_room_bytes(uint64_t& room) { + IDXGIFactory1* f = nullptr; + if (FAILED(CreateDXGIFactory1(__uuidof(IDXGIFactory1), (void**) &f)) || f == nullptr) return false; + bool found = false; + room = std::numeric_limits<uint64_t>::max(); + IDXGIAdapter1* a = nullptr; + for (UINT i = 0; f->EnumAdapters1(i, &a) != DXGI_ERROR_NOT_FOUND; ++i) { + DXGI_ADAPTER_DESC1 d{}; + IDXGIAdapter3* a3 = nullptr; + if (SUCCEEDED(a->GetDesc1(&d)) && d.VendorId == 0x10DE && !(d.Flags & DXGI_ADAPTER_FLAG_SOFTWARE) && + SUCCEEDED(a->QueryInterface(__uuidof(IDXGIAdapter3), (void**) &a3)) && a3 != nullptr) { + DXGI_QUERY_VIDEO_MEMORY_INFO info{}; + if (SUCCEEDED(a3->QueryVideoMemoryInfo(0, DXGI_MEMORY_SEGMENT_GROUP_NON_LOCAL, &info)) && info.Budget > 0) { + const uint64_t left = info.Budget > info.CurrentUsage ? info.Budget - info.CurrentUsage : 0; + room = std::min<uint64_t>(room, left); + found = true; + } + a3->Release(); + } + a->Release(); + } + f->Release(); + return found; +} +#endif + /// #1250: the pages that are really free (MemFree), not the reclaimable cache MemAvailable counts; false when unknown. bool free_memory_bytes(uint64_t& bytes) { #if defined(__linux__) @@ -3541,6 +3576,26 @@ bool FileExpertSource::pin_cache_complement( (double) headroom_bytes / 1073741824.0, (double) clamped / 1073741824.0); budget_bytes = clamped; } +#if defined(_WIN32) + { // the WDDM shared segment (wddm_shared_room_bytes); what the engine maps after the complement (the lend + // ring, the hand-off and staging buffers: ~1.5 GiB on a two-card layer split) needs room in it too + uint64_t room = 0; + const char* r = std::getenv("STRATA_WDDM_SHARED_RESERVE_MIB"); + const uint64_t reserve = (uint64_t) (r != nullptr ? std::strtoull(r, nullptr, 10) : 2048) << 20; + if (wddm_shared_room_bytes(room)) { + const uint64_t cap = room > reserve ? room - reserve : 0; + std::fprintf(stderr, "FileExpertSource: WDDM shared segment: %.2f GiB left on the tightest NVIDIA GPU, " + "%.2f GiB kept for the engine's later mapped buffers\n", + (double) room / 1073741824.0, (double) reserve / 1073741824.0); + if ((uint64_t) budget_bytes > cap) { + std::fprintf(stderr, "FileExpertSource: the complement is limited by the WDDM shared segment: " + "%.2f -> %.2f GiB\n", (double) budget_bytes / 1073741824.0, + (double) cap / 1073741824.0); + budget_bytes = cap; + } + } + } +#endif std::vector<uint64_t> ranked(offsets.size(), kNoComplement); uint64_t at = 0; int64_t held = 0; ```
Author
Owner

@altiber commented on GitHub (Oct 23, 2026):

Follow-up: the WDDM cap alone is not enough on a 31 GB PC - a second clamp is needed, and with both the auto sizing works without any manual budget.

What happened with the WDDM cap only (no KV streaming, auto budget): the shared segment allowed 14.68 GiB, the complement got 12.68 GiB, the engine started fine - but then the process held ~20 GiB, the standby list (page cache) fell to 0.13 GiB, the file tier was read from the SSD at ~150 MB/s (Memory\Pages Input/sec) and decode on a coding-agent workload fell from ~83 to 61-70 tok/s at the same context lengths. Pinning more experts is not better when it leaves Windows no page cache: the engine itself grows by ~7 GiB after the complement is placed (buffers, mapped dense weights, the file tier's pages in the working set).

Second clamp (keep 10 GiB of the RAM read before pinning for that later working set and the page cache, STRATA_RAM_LATER_RESERVE_GIB overrides):

@@ FileExpertSource::pin_cache_complement, after the WDDM clamp @@
        {   // the RAM the engine takes after this point (its buffers, the mapped dense weights and the file tier's
+            // pages, which Windows keeps in this process's working set) and the file tier's page cache: a 31 GB PC
+            // pinned 12.68 GiB of a 24.96 GiB reading, the process then held 20 GiB, 0.13 GiB stayed for the page
+            // cache, the file tier read ~150 MB/s from the SSD and decode fell from ~83 to ~67 tok/s; 10.5-11 GiB
+            // (the same reading less ~14 GiB) kept ~83 tok/s.  STRATA_RAM_LATER_RESERVE_GIB overrides the 10 GiB.
+            const char* r = std::getenv("STRATA_RAM_LATER_RESERVE_GIB");
+            const double gib = r != nullptr ? std::atof(r) : 10.0;
+            const uint64_t later = (uint64_t) (gib > 0.0 ? gib * 1073741824.0 : 0.0);
+            const uint64_t avail = budget_physical;
+            const uint64_t keep = headroom_bytes + later;
+            const uint64_t cap = avail > keep ? avail - keep : 0;
+            std::fprintf(stderr, "FileExpertSource: RAM for the engine's later working set and the page cache: %.1f GiB "
+                                 "(of %.2f GiB available, %.0f GiB headroom): at most %.2f GiB for the complement\n",
+                         gib, (double) avail / 1073741824.0, (double) headroom_bytes / 1073741824.0,
+                         (double) cap / 1073741824.0);
+            if ((uint64_t) budget_bytes > cap) budget_bytes = cap;
+        }

A/B, fresh start each, same bench (4 fresh prompts of 15.8-21.6K tokens from real Pascal code, 300 generated tokens; the first request after start excluded as warm-up):

stock 0.1.47 + manual --resident-budget-gib 10.5 both patches, full auto
complement 10.50 GiB (manual) 10.70 GiB (auto)
fresh prompt read 21.4-26.2 s (739-824 tok/s) 13.5-16.3 s (1172-1398 tok/s)
decode 71-84 tok/s 71-90 tok/s

The 10 GiB is measured on this one machine (31 GB RAM, 5070 Ti + 3070 split, Q2_0); a reserve derived from what the engine allocates after the complement would be better than a constant.

<!-- gh-comment-id:6360879659 --> @altiber commented on GitHub (Oct 23, 2026): Follow-up: the WDDM cap alone is not enough on a 31 GB PC - a second clamp is needed, and with both the auto sizing works without any manual budget. **What happened with the WDDM cap only** (no KV streaming, auto budget): the shared segment allowed 14.68 GiB, the complement got 12.68 GiB, the engine started fine - but then the process held ~20 GiB, the standby list (page cache) fell to 0.13 GiB, the file tier was read from the SSD at ~150 MB/s (`Memory\Pages Input/sec`) and decode on a coding-agent workload fell from ~83 to 61-70 tok/s at the same context lengths. Pinning more experts is not better when it leaves Windows no page cache: the engine itself grows by ~7 GiB after the complement is placed (buffers, mapped dense weights, the file tier's pages in the working set). **Second clamp** (keep 10 GiB of the RAM read before pinning for that later working set and the page cache, `STRATA_RAM_LATER_RESERVE_GIB` overrides): ```diff @@ FileExpertSource::pin_cache_complement, after the WDDM clamp @@ { // the RAM the engine takes after this point (its buffers, the mapped dense weights and the file tier's + // pages, which Windows keeps in this process's working set) and the file tier's page cache: a 31 GB PC + // pinned 12.68 GiB of a 24.96 GiB reading, the process then held 20 GiB, 0.13 GiB stayed for the page + // cache, the file tier read ~150 MB/s from the SSD and decode fell from ~83 to ~67 tok/s; 10.5-11 GiB + // (the same reading less ~14 GiB) kept ~83 tok/s. STRATA_RAM_LATER_RESERVE_GIB overrides the 10 GiB. + const char* r = std::getenv("STRATA_RAM_LATER_RESERVE_GIB"); + const double gib = r != nullptr ? std::atof(r) : 10.0; + const uint64_t later = (uint64_t) (gib > 0.0 ? gib * 1073741824.0 : 0.0); + const uint64_t avail = budget_physical; + const uint64_t keep = headroom_bytes + later; + const uint64_t cap = avail > keep ? avail - keep : 0; + std::fprintf(stderr, "FileExpertSource: RAM for the engine's later working set and the page cache: %.1f GiB " + "(of %.2f GiB available, %.0f GiB headroom): at most %.2f GiB for the complement\n", + gib, (double) avail / 1073741824.0, (double) headroom_bytes / 1073741824.0, + (double) cap / 1073741824.0); + if ((uint64_t) budget_bytes > cap) budget_bytes = cap; + } ``` **A/B, fresh start each, same bench** (4 fresh prompts of 15.8-21.6K tokens from real Pascal code, 300 generated tokens; the first request after start excluded as warm-up): | | stock 0.1.47 + manual `--resident-budget-gib 10.5` | both patches, full auto | |---|---|---| | complement | 10.50 GiB (manual) | 10.70 GiB (auto) | | fresh prompt read | 21.4-26.2 s (739-824 tok/s) | 13.5-16.3 s (1172-1398 tok/s) | | decode | 71-84 tok/s | 71-90 tok/s | The 10 GiB is measured on this one machine (31 GB RAM, 5070 Ti + 3070 split, Q2_0); a reserve derived from what the engine allocates after the complement would be better than a constant.
Author
Owner

@thestigma commented on GitHub (Oct 31, 2026):

Related fix now in PR #4860: an opt-in STRATA_RESIDENT_PIN_MODE=register pins the complement through the arena's own sliced cudaHostRegister (per-slice device aliases, DXGI-budgeted). Measured anatomy on a desktop 3090 Ti + 3090 / 64 GiB RAM box: the DXGI NON_LOCAL budget is one global 46.16 GiB pool (cumulative 1-GiB pins reach 45.0 GiB, 46.0 fails, identical for alloc and register), but a SINGLE pinned allocation caps at ~23 GiB regardless of free RAM — so the refusal here and in #2535 is the per-allocation ceiling, not pool exhaustion. Slicing keeps every registration under the ceiling; the engine's own pin guard (Budget minus Usage minus headroom) then bounds the total. Answers are byte-identical with the env on vs off (token-for-token parity, temp 0).

<!-- gh-comment-id:6550022280 --> @thestigma commented on GitHub (Oct 31, 2026): Related fix now in PR #4860: an opt-in `STRATA_RESIDENT_PIN_MODE=register` pins the complement through the arena's own sliced `cudaHostRegister` (per-slice device aliases, DXGI-budgeted). Measured anatomy on a desktop 3090 Ti + 3090 / 64 GiB RAM box: the DXGI NON_LOCAL budget is one global 46.16 GiB pool (cumulative 1-GiB pins reach 45.0 GiB, 46.0 fails, identical for alloc and register), but a SINGLE pinned allocation caps at ~23 GiB regardless of free RAM — so the refusal here and in #2535 is the per-allocation ceiling, not pool exhaustion. Slicing keeps every registration under the ceiling; the engine's own pin guard (Budget minus Usage minus headroom) then bounds the total. Answers are byte-identical with the env on vs off (token-for-token parity, temp 0).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1557
No description provided.