Explore report · NVIDIA/hyperflare-inference #669

Raw Markdown for agents: https://autobot.eidonix.com/p/0763461e-7593-4fe3-b049-e0515111f52f.md

Case file — PR #669 "Fall back to host-backed CUDA VMM when registered host memory lacks identity addressing"

Author kbenkhaled (CONTRIBUTOR) · open, "ready for review" · base main, head ea65cb2 (single commit) · 7 files, +417 / −71 · 0 comments, 0 reviews, no labels, no CI on head · opened 2026-12-01 22:54. https://github.com/NVIDIA/hyperflare-inference/pull/669

Key findings

  1. It collides head-on with open PR #658 on the same five lines. Both rewrite the integrated SM87 (8, 7) default window in ignition/preparation/core_storage.py:66-71, in opposite directions. #669 lowers DEVICE_BASE 72 GiB → 48 GiB (0x12_0000_0000 → 0x0c_0000_0000) and keeps EXTERNAL_FLOOR at 12 GiB (0x300000000), because the 8 GiB Orin Nano VMM ceiling is 96.56 GiB (0x18_23c0_0000). #658 (lukealonso, COLLABORATOR, opened ~5 h earlier the same afternoon) raises EXTERNAL_FLOOR to 36 GiB (0x900000000) and explicitly keeps DEVICE_BASE = 0x1200000000, stating "total 120 GiB inside the 128 GiB GA10B VMM window". Both also append tests at tests/preparation/test_core_storage.py:83+. #658 carries a test asserting DEVICE_BASE == 0x1200000000, which #669 would break; landing both leaves only 12 GiB below the device window. Neither PR mentions the other.
  2. It empirically contradicts merged #589 and leaves that code and docs stale. #589 (merged 2026-11-28) codified that host-NUMA VMM is unsupported "on Windows WDDM and integrated Tegra/GA10B GPUs" — helios/src/cuda.rs:552-557 (is_host_numa_unsupported(status 1|801)), selene/src/offload.rs:693-695, docs/prefix-cache-offload.md:588-590. #669 measures 141 (HOST_NUMA_VMM) == 1 on Orin Nano, and touches none of those three places. Two capability-detection idioms now coexist (attribute query at init vs. probe-the-call-and-fall-back).
  3. Undeclared in the description but in the diff: #[cfg(any(windows, test))] mod host becomes pub mod host (helios/src/runtime_core/mod.rs:22), exposing pub unsafe host_numa_properties as new public runtime API; the device-granularity check is tightened from granule != 0 to granule.is_power_of_two() for every platform (heliopause/src/allocator.rs:495-502); heliopause now queries device attributes 99 and 91 unconditionally at init (allocator.rs:465-480); core_storage.py:103 hard-indexes layout["host_vmm"] with no native-ABI/version handshake, so a stale flare_heliopause raises KeyError rather than a version error; WindowsHostRegion is renamed HostVmmRegion with no alias (core_storage.py:492).
  4. A capability hole with no third fallback: a Linux device with 99 == 0 or 91 == 0 and 141 == 0 now commits to host_vmm (allocator.rs:511-518), reports host_vmm=true in the snapshot (allocator.rs:863), and then fails hard — export raises "mapped core storage requires host-backed CUDA VMM" (core_storage.py:499-502) and Helios load raises the same (host.rs:115-116). Before the PR such a device exported and only failed at serve ("requires identical CPU and CUDA addresses", core_storage.py:461-462). The failure moves earlier, but the mmap+cuMemHostRegister path is gone with no message about the missing 141.
  5. All end-to-end evidence is hardware-local and self-reported; no CI ran. The replay path used for the Orin/Thor validation (helios/tests/fixed_core_fixture.py:111 → helios/src/runtime_core/event_tests.rs:14-53) is #[ignore]d and needs FLARE_EVENT_TEST_CORE, so CI cannot reproduce any of it. Suite counts (helios 1775 pass/6 template-401 failures; heliopause 228/1 export::blob ctime; flare 253; flare-cli 241; pytest 18 pass/1 skip) are unattached to any run.
  6. Charter tension (fact, not verdict): the change adds hardcoded 8 GiB window, 1 GiB alignment, and 12/1 GiB min_host_base thresholds (allocator.rs:386-392, 526-530) with no config surface against "No magic defaults"; and it validates only SM87 + SM110 while the shared MappedHost path serves every target in docs/cli-design.md:6 (SM87/103/110/120/121) — Windows WDDM, GB10/SM121, AGX Orin 64 GiB and discrete Linux GPUs are declared unrun, against the charter's "Supported matrix & compatibility" rule.

The change

Plain terms: mapped host buffers (offload/embedding mailboxes) need CPU and GPU to see the same virtual address. Linux got that from mmap + cuMemHostRegister + cuMemHostGetDevicePointer_v2 and then asserted gpu_ptr == cpu_ptr (helios/src/runtime_core/mod.rs:643-677, :709-722; Python mirror ignition/preparation/core_storage.py:432-476). Windows already used host-backed CUDA VMM (host-NUMA allocations reserved at chosen addresses); that code was #[cfg(windows)] only. #669 makes the Windows mechanism selectable on Linux by capability and retunes two address windows.

Five functional pieces (all as described, verified against the diff):

Size: 7 files — heliopause/src/allocator.rs +206/−8, helios/src/{driver,host,mod}.rs +128/−50, tests/preparation/test_core_storage.py +59, ignition/preparation/core_storage.py +13/−7, docs/runtime-core-design.md +11/−6. Total +417/−71.

Nothing the description says is missing from the code (8 GiB window, GiB alignment, full-span probe with error propagation, cuMemRelease status check, snapshot key all present). The undeclared items are in Key finding 3.

The why

The problem statement is self-authored: no linked issue, no maintainer request, no roadmap line names Orin. What exists:

Who it blocks, by feature — each uses MappedHost storage and therefore cannot export or replay on Orin today: offloaded embedding/n-gram mailboxes (helios/tests/engram_core_fixture.py:133 (not opened), #566, and the author's own #664), persistent-worker stop flag and metrics counters (#431, #507), and the fixed-core replay fixture itself (helios/tests/fixed_core_fixture.py:111).

Two secondary defects, also unlinked: the pre-PR SM87 window 72..120 GiB exceeds the 8 GiB Orin Nano VMM ceiling 0x18_23c0_0000 (96.56 GiB), and the 12 TiB HOST_BASE (core_storage.py:37) lies outside Orin's VMM aperture.

Recent activity

All four touched directories churned heavily in the four days before #669, mostly by maintainers: heliopause/src (#628, #652, #646, #647, #620, #586, #618, #1fbd4210), helios/src (#666, #657, #628, #656, #638, #625, #645, #646), tests/preparation + ignition/preparation (#647, #641, #624, #618, #581, #608). #669 builds on top of that state but only modifies allocator init/snapshot/tests, the runtime-core host module, and the SM87 defaults — it does not reverse any of those commits. The one live conflict is with concurrent, still-open #658 (Key finding 1). #625 ("Avoid THP compaction stalls in eos::map_host") and #656 are host-memory adjacent but different files.

People

Community

Zero comments, zero reviews, zero reactions, no labels, no autobot intake or case-file comment (contrast #664 and #658, both of which got the flare-autobot intake note within minutes and a full review within ~1 h — #669 may simply be younger than the auto-review window). Comparable open PRs carry labels such as triage:review, area:memory, area:preparation (#658) and area:engram, enhancement, performance (#664); #669 has none. No review instructions or prompt-injection attempts were found in #669's body or in the related PR bodies read.

Project fit (charter facts)

Claims and evidence

Claim in the PR Evidence in the PR Independently checkable in tree?
Orin Nano 8 GiB attributes 18=1, 91=0, 99=1, 134=0, 141=1; max 2 MiB VMM end 0x18_23c0_0000 Author's hardware measurement; no device query log attached No
CoreStorage → host_vmm=True, DEVICE_BASE=0xc00000000, HOST_BASE=0xa00000000, 6-allocation core exported, native replay + byte-exact output + clean teardown in 1.04 s Author's run via fixed_core_fixture.py:111 → event_tests.rs:14-53 No — that test is #[ignore]d and needs FLARE_EVENT_TEST_CORE
Thor SM110 keeps host_vmm=False, DEVICE_BASE=0x80000000000, export + replay + teardown in 0.37 s Author's run No
Suite counts (helios 1775/6, heliopause 228/1, flare 253, flare-cli 241, pytest 18 pass/1 skip) Self-reported with failure explanations No CI on head ea65cb2
use_host_vmm logic correct Verified: exact expression at host.rs:12-18 plus 8-combination unit test host.rs:202-221 Yes
vmm_host_window handles narrow apertures, floor collision, GiB alignment, multi-rank, invalid granularity, probe-cleanup errors Verified: one parameterised test (allocator.rs:1589-1638) with in-test closures covering Nano 96.56 GiB cap, AGX 64 GiB cap, floor collision, world=2, default-fit, granules 0 and 3 MiB, unreservable, probe-cleanup error Yes
HostVmmRegion dispatch, overflow non-mutation, 141 rejection Verified: tests/preparation/test_core_storage.py:83-139 Yes
— Untested: the !cfg!(windows) branch condition, min_host_base selection (allocator.rs:526-530), snapshot → CoreStorage propagation of host_vmm, and helios's three if !self.host_vmm MappedHost branches (mod.rs:645, :711, :1610) Absent

Reach

Process

Open and marked ready for review; single commit ea65cb27; no CI checks on the head commit; no reviews, no comments, no labels; hours old at the time of this case file, with two competing same-area PRs (#658 same afternoon, #664 same evening, different authors) in flight. No linked issue and no maintainer ack.

Open questions / not found