#1 [high] PR #589 — verified code facts (my own reads)
PR #589 (lukealonso, merged 2026-11-28, head aed8039, base main; +994/−133, 21 files). Already merged; base commit branch v042-jetson-tarball-vlm-cuda12.
VERIFIED BY ME (file:line at PR head):
- CUDA copy fallback: helios/src/cuda.rs 801-822 uses
memcpy_batchwhen present; 824-833 new fallback loopscopy_async(cuMemcpyAsync) per entry.copy_async: symbol!("cuMemcpyAsync")at cuda.rs:303 → REQUIRED entry point (symbol! macro 239-248 returns Err), so a driver lacking it fails Driver::load, not the copy.memcpy_batchat 282-285 islibrary.get(...).ok()= OPTIONAL, so fallback selection is purely "is cuMemcpyBatchAsync_v2 exported". There is NO env var / feature flag / test seam to force the fallback (grep FLARE_*, std::env::var in cuda.rs: only FLARE_OFFLOAD_TEST_DIR at 1445/1693). ⇒ On a CUDA 13 driver the new branch is unreachable. cn5 = RTX PRO 6000 Blackwell (sm_120) and cn7 = GB10 (sm_121) both require CUDA 13.x drivers, which export cuMemcpyBatchAsync_v2. So the PR's headline fix (#1) CANNOT be exercised on our hardware. is_host_numa_unsupported(status) = matches!(status, 1 | 801)at cuda.rs:535-537, applied at 4 sites inside try_map_device_host_parts: 579 (cuDeviceGetAttribute), 587 (cuMemGetAllocationGranularity), 642 (cuMemCreate), 658 (cuMemSetAccess); each returns Ok(None) → selene/src/offload.rs 627-638 falls back to SlabPool::sized + cuMemHostRegister_v2. Doc at cuda.rs:539-547 claims "real failures (such as out-of-memory) return Err" — overstated. NUANCE worth reporting: ATTRIBUTE_HOST_NUMA_ID = 134 (cuda.rs:150) is CUDA 12.2+; an older driver legitimately returns CUDA_ERROR_INVALID_VALUE for an unknown attribute, so status-1 is defensible for cuDeviceGetAttribute/granularity but NOT for cuMemCreate/cuMemSetAccess. Address reserve (cuda.rs:609-611) still hard-errors, so a non-HOST_NUMA platform can also Err depending on which call reports first.- RoCE dlopen shim helios/native/roce_proxy_dlopen.c 84-100 hard-requires 17 symbols via FLARE_LOAD_IBV (macro 72-82: on NULL → snprintf "missing required symbol", dlclose, return → flare_ibv_ready stays 0). Line 89 requires plain
ibv_query_port@IBVERBS_1.1. But the trampoline flare_ibv_query_port (146-154) is a reimplementation via verbs_get_ctx_op +struct _compat_ibv_port_attr*, i.e. the modern rdma-core inline form whose real exported symbol is the compat one. Server/roce.rs:192-195 turns any load failure into "RoCE transport setup failed: ..." → multi-host dead, single-host fine. UNRESOLVED: whether rdma-core exports unprefixedibv_query_portto dlsym. Cheap to settle withnm -Din ubuntu:22.04 — no GPU needed. - Vacuous test: helios/src/execution/roce.rs:511-523 asserts only inside
if status != 0; on any host with libibverbs1 installed status==0 and the test asserts nothing. eos/src/unix.rs:207-248 likewise only asserts VmFlags "hg" inside 4 nested if-let/if-let-on-smaps. - Budget plumbing verified consistent: memory.rs:825-840 computes initial_budget via host_budget_for then headroom_with_inputs_for_budget; planned_offload_host = tier_host − cfg.memory_bytes (1109) or tier_host.max(chain_bytes) for capture (1102-1107); threaded model.rs:909-918 → prepare_offload(967-977) → selene prepare_with_inputs_budget (522-534) → headroom_with_inputs_for_budget (151-206). No leak on early Ok(None) (Drop at cuda.rs:516-530).
- DUPLICATION w/ divergence: memory.rs:192-221 integrated_offload_host_budget vs 267-298 limited_budget. For MemoryLimit::Bytes/Fraction the new one does
cap.saturating_sub(loaded+future)(→0) where limited_budget returns Err "memory limit is {cap} bytes, but loaded model resources require {required}". Also integrated_state min-total (657-661) vs observations[index].total (887), and max observed drop (674-680) vs initial[index] (904) — two live copies ~200 lines apart in the same function. - Dead code confirmed: helios/src/cuda.rs:667-676 map_device_host_parts has no caller except CudaRegistrar::map_split (helios/src/offload/registrar.rs:27-29), and CudaRegistrar overrides try_map_split (31-38) which is what slab.rs:215 reaches; trait default selene/src/registrar.rs:32-37 is the only route to map_split. helios/src/offload/mod.rs:72
preparehas no caller at all. selene/src/slab.rs:261-270 sized_by_rank has test-only callers. selene/src/offload.rs:858-886 host_pool_budget_with_reserve flag only ever true in production (memory.rs:202-207, offload.rs:853) and false only in tests.rs:722-723. - Stale docs confirmed verbatim: helios/src/frontend/mod.rs:1400-1402 still says "HOST_SERVICE_HEADROOM_BYTES (2 GiB) plus one twentieth"; THIRD_PARTY_NOTICES.md:76-78 still says "Linux aarch64 builds also link the system libibverbs and pthread interfaces"; docs/TODO.txt has zero matches for JetPack|Orin|GA10B|WDDM|aarch64|libibverbs while docs/release.md:30-31 claims JetPack 6 coverage.
- Scope confirmed: helios/build.rs:67-77 gates the dlopen shim only on #[cfg(feature="roce")] with NO target_arch gate → x86_64 --features roce builds also switch to dlopen (behaviour change not in the description). GA10B is pre-existing supported hardware (helios/src/core/naming.rs:15,54-57; ignition/planning.py:38 SM87), so the integrated-GPU budget fix is fixing support the project already committed to, not new hardware scope — this corrects the Architecture/Value reviewers' "charter Non-Goals" framing.
- release.yml diff verified: arm64 leg (ubuntu-24.04-arm, build-packages libibverbs-dev) existed before; continues to build inside ubuntu:22.04; adds readelf DT_NEEDED libibverbs check (92-95), GLIBC_>2.35 regex (96-107, GLIBC_ only, not GLIBCXX_), and clean ubuntu:22.04+24.04 smoke of
flare --version/run|agent|orbit --helpwith no libibverbs1. No transport open anywhere in CI.
#2 [high] Hardware mapping — what cn5/cn7 can and cannot exercise
Available: cn5 = 4× RTX PRO 6000 Blackwell Max-Q (sm_120, discrete, 96 GiB each), amd64, 48 CPU/125 GiB/16 GiB scratch. cn7 = 1× NVIDIA GB10 (sm_121, integrated/unified memory), arm64, 10 CPU/60 GiB/16 GiB scratch.
Per changed behaviour:
- #1 CUDA 12 cuMemcpyAsync fallback (cuda.rs:824-833): precondition = driver does NOT export cuMemcpyBatchAsync_v2, i.e. CUDA 12.x driver. cn5 Blackwell needs r580/CUDA 13; cn7 GB10 needs CUDA 13. ⇒ NOT EXERCISABLE on either host. Testing on cn5/cn7 only exercises the unchanged cuMemcpyBatchAsync_v2 path (regression only, and that path also needs a multi-GPU / offload workload to hit at all).
- #2 lazy libibverbs + glibc 2.35 arm64 archive: the glibc ceiling is a property of the ubuntu:22.04 build container, provable in CI with readelf — no GPU. The arm64 archive CAN be built+smoked on cn7 (arm64). But cn7 is DGX Spark (Ubuntu 24.04-class, glibc 2.39) and almost certainly HAS libibverbs1 present via the driver stack, so it does not prove the "no libibverbs1 on stock JetPack 6" case. The dlopen symbol-table risk is settled by
nm -D libibverbs.so.1 | grep -E 'query_port|reg_mr'— free, any CPU. Actual RoCE data path: neither host is stated to have RDMA HCAs ⇒ multi-host RoCE NOT TESTABLE. - #3 unified-memory host budgeting: precondition = integrated GPU. cn7 GB10 qualifies ⇒ TESTABLE here, and this is the only new behaviour our hardware can genuinely validate:
--prefix-cache-memoryon an integrated GPU, pool-only capture, no post-KV-alloc shrink. But the HOST_NUMA→cuMemHostRegister fallback branch still won't fire on a healthy GB10 (HOST_NUMA VMM supported), so only the budget half is reachable. - HOST_NUMA split pool (try_map_device_host_parts happy path): needs ≥2 ranks/GU contexts → cn5 (4 GPUs). Regression-only (path unchanged by this PR except the status-1 predicate).
- eos map_host THP ordering: cn5/cn7 both Linux ≥5.14 ⇒ MADV_POPULATE_WRITE succeeds, so the write_volatile fallback loop is NOT exercised; only the "dst" test can show VmFlags hg / and the existing eos unit test already asserts it on any Linux.
Conclusion: 3 of the 4 headline claims map to preconditions our hardware does not satisfy. Residual hardware-testable surface = (a) integrated-GPU prefix-cache budgeting on cn7, (b) aarch64 build+packaging smoke on cn7, (c) generic regression on cn5 (pre-existing paths). No throughput A/B is warranted: no hot-path change — the copy fallback keeps the same sequential per-entry loop, and the budget change alters sizing not speed (only indirect: larger intake on small SoCs → possibly higher prefix hit rate).
#3 [high] Reachability analysis + review correction
CORRECTION to all six reviewer summaries (I checked the code): helios/src/execution/roce.rs:511-523 is NOT a fully vacuous test. The shim's three failure texts differ:
- dlopen failure (roce_proxy_dlopen.c:65-68): "cannot load libibverbs.so.1 (...); install libibverbs1 and ibverbs-providers ..." → contains BOTH "libibverbs.so.1" and "libibverbs1" → test passes (correct: expected outcome without the package).
- missing symbol (c:76-78): "libibverbs.so.1 is missing required symbol X" → contains "libibverbs.so.1" but NOT "libibverbs1" → assertion FAILS.
- success (status==0): no assertion. So the test does distinguish "library absent" from "library present but a required symbol unresolved". It is weak (silent on success) but it is a genuine guard, and it is exactly the check that would catch a broken dlopen symbol table on a host that has libibverbs1 — cheap to run on cn7.
OPEN, cheap, CPU-only question raised by the Correctness reviewer: does rdma-core export plain ibv_query_port / ibv_reg_mr? In modern rdma-core these are static inline in verbs.h, with the real exports being ___ibv_query_port / ___ibv_reg_mr in IBVERBS_1.1 (plus possibly IBVERBS_1.0 compat symbols). flare_ibv_sym (c:50-56) tries dlvsym(IBVERBS_1.1) then falls back to plain dlsym, and the table field is typed struct _compat_ibv_port_attr* (c:27-28), i.e. the author expected the legacy 3-arg symbol. If neither version-map entry nor a default-version symbol named ibv_query_port/ibv_reg_mr exists, flare_ibv_init dead-ends and every RoCE transport open fails while single-host serving still works. Settle with objdump -T / nm -D libibverbs.so.1 inside ubuntu:22.04/24.04 — no GPU, no arm64 needed. Severity if true: multi-host RoCE completely dead. This is the cheapest high-value gate on the whole PR.
Reachability facts that bound any hardware test:
- copy_batch fallback (cuda.rs:824-833) needs a CUDA 12.x driver (cuMemcpyBatchAsync_v2 is CUDA 13.0). cn5 = RTX PRO 6000 Blackwell, cn7 = GB10 → both run CUDA 13 drivers → fallback unreachable. No env var/feature flag forces it (memcpy_batch is
Optionpurely from symbol lookup, cuda.rs:282-285). - HOST_NUMA→registered fallback (selene/src/offload.rs:627-638) needs a driver without HOST_NUMA VMM (GA10B/WDDM). GB10 is not that → unreachable on cn7; covered only by the mock registrar test.
- host_service_headroom_bytes <=16 GiB arm (offload.rs:808-814) keys off MemTotal; cn7 job has 60 GiB → only the min(2 GiB, total/32) arm is reachable.
- What IS reachable on cn7: the integrated-GPU (CU_DEVICE_ATTRIBUTE_INTEGRATED) prefix-cache sizing path end to end, plan-vs-prepare budget continuity, explicit --memory-limit semantics, and (with a pre-PR build) a direct A/B of the claimed double-subtraction.
- eos::map_host THP change affects EVERY pinned host mapping → present in any served request on either host.
- cn5 could in principle run a CUDA 12.8 driver (sm_120 is supported from CUDA 12.8), which would make the fallback reachable — but a driver downgrade on shared hardware is disproportionate and I recommend against it. Explicitly rejected.
#4 [high] Findings ledger — severity adjudication
Finding severity ledger for the report (my adjudication of the six summaries, after reading code):
MUST FIX BEFORE ANY HW TIME (substantive, code quality/architecture):
- cuda.rs:535-537
is_host_numa_unsupportedaccepts status 1 (CUDA_ERROR_INVALID_VALUE) at 4 sites (579/587/642/658) → silent substitution of the allocation strategy for genuine argument errors. Charter: "Bug fixes need to address the root cause; don't just swallow...". Partial defence I verified: ATTRIBUTE_HOST_NUMA_ID (134, cuda.rs:150) is CUDA 12.2+, so an older driver legitimately returns INVALID_VALUE for an unknown attribute → status-1 is defensible at the two probe sites, NOT at cuMemCreate/cuMemSetAccess. Recommended fix: narrow to 801 for create/access, keep {1,801} for the probes with that reason documented. Also cuda.rs:539-547's "real failures return Err" is only true for non-1/801. - Dlopen shim symbol table (roce_proxy_dlopen.c:84-100) — unverified and potentially fatal for ALL multi-host RoCE. One-line-wrong, hard-fails 17-for-17 (macro at 72-82 returns on any miss). MUST be settled by objdump/nm before trusting any RoCE statement, and before any RoCE test.
- integrated_offload_host_budget (memory.rs:192-221) re-implements limited_budget (267-298) with divergent error semantics: explicit Bytes/Fraction cap that cannot hold loaded+future saturates to 0 (216) instead of raising "memory limit is {cap} bytes, but loaded model resources require {required}" (294-296). Operator-reachable silent under-sizing; also the duplicate-deletion target (~93 lines incl. test per Subtractive).
DEFER / NITS (do not gate hardware, do not test):
- copy_batch contract (cuda.rs:781-790) stale vs the new fallback at 824-827 — doc only, but it is the contract future callers read.
- frontend/mod.rs:1400-1402 stale 2 GiB+total/20 comment (the only place the constraint is spelled out).
- THIRD_PARTY_NOTICES.md:76-78 "aarch64 builds link libibverbs" — now false; it ships in the archive.
- docs/release.md:30-31 JetPack 6 qualification vs only-amd64 evidence; no docs/TODO.txt entry (searched: zero matches).
- docs/prefix-cache-offload.md:1483-1485 says roce+rdma "link libibverbs" (only rdma does).
- Dead code: cuda.rs:667-676 map_device_host_parts; helios/src/offload/mod.rs:72 prepare; slab.rs:261-270 sized_by_rank (test-only); offload.rs:858-886 host_pool_budget_with_reserve (flag always true in prod).
- integrated_state (646-683) vs per-rank loop (877-909) duplicated arithmetic that already disagrees (min total vs observations[index].total; max observed drop vs initial[index]).
- eos/unix.rs:109-117 duplicates eos/windows.rs:178-183 loop; case-1 CUDA literals vs named constants (driver.rs:94-97 convention); CopyAsync alias == CopyDtoD (cuda.rs:80-81).
SCOPE (I disagree with 2 of 6 reviewers): GA10B/Orin is NOT new hardware scope — helios/src/core/naming.rs:15,54-57 lists ga10b as a platform and ignition/planning.py:38 advertises SM87. The integrated-GPU budget fix repairs support already on main, so the "charter Non-Goals / needs maintainer sign-off" charge is unfounded. The real scope problem stands: 4 unrelated outcomes in one PR (CUDA copy, release/dlopen, budgeting/HOST_NUMA, eos THP) — charter: "Keep each PR focused on one coherent outcome" — so a regression cannot be bisected.
MERGED STATUS: already merged (aed8039 → ba3afb13, 2026-11-28, same day, zero human review, while sibling PRs #497/#323 carried review rounds). Open #323 rewrites budget()/host_pool_budget() again; open #497 deletes selene::offload::prepare and removes the Option budget seam that #589 re-adds. → a re-test after either lands would be invalidated; note in the report that #589's test result has a short shelf life and that behaviour-level (not implementation-level) tests are the only durable choice.