Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

pinned: say how many bytes were refused, and stop blaming the privilege

pipeob0d1b30db332a1
diff --git a/src/core/pinned.cu b/src/core/pinned.cu
index 841ca233a..90c22d17c 100644
--- a/src/core/pinned.cu
+++ b/src/core/pinned.cu
@@ -62,9 +62,11 @@ void* reserve(uint64_t bytes, PageBacking& got, std::string& note) {
note = "large pages (" + std::to_string((unsigned long long) large) + " B)";
return p;
}
- note = "large pages refused (GetLargePageMinimum=" + std::to_string((unsigned long long) large) +
- ", VirtualAlloc error " + std::to_string((unsigned long long) GetLastError()) +
- " - needs SeLockMemoryPrivilege); using 4 KB pages";
+ // 1450 (ERROR_NO_SYSTEM_RESOURCES) is the large-page pool saying no, 87 is a size that is not a
+ // multiple of the minimum, 1314 is the privilege: without the byte count the three read as one bug.
+ note = "large pages refused for " + std::to_string((unsigned long long) lbytes) + " B (GetLargePageMinimum=" +
+ std::to_string((unsigned long long) large) + ", VirtualAlloc error " +
+ std::to_string((unsigned long long) GetLastError()) + "); using 4 KB pages";
} else if (std::getenv("STRATA_NO_LARGEPAGES") != nullptr) {
note = "large pages skipped (STRATA_NO_LARGEPAGES); using 4 KB pages";
} else {