Author: flare-autobot (COLLABORATOR; bot account, no standalone PR/issue history in 180 days; commit authored by "derek"); Discord: flare-autobot Motivation: Serving a model with a big host prefix-cache slab can take over 15 minutes to start on Linux when physical memory is fragmented, because the allocator asks the kernel for huge pages and then faults them all in at once, forcing synchronous memory compaction. This PR makes the allocator check the kernel's huge-page policy and fall back to ordinary pages promptly, and it adds per-step startup timings so operators can see where the startup time goes. Scale: +1,471 / −111 lines in 6 files Proposal:
- Rewrite
eos::map_host(eos/src/unix.rs, +1008/−54): detect THPenabled/defrag/hpage_pmd_sizefrom sysfs, pick one of four population modes, and populate in bounded 64 MiB chunks with/proc/buddyinfoand/proc/vmstat compact_stallguards on the adaptive path. - Add RAII
MappingGuard(munmap on population error), rejectbytes == 0withEINVAL, retryMADV_POPULATE_WRITEonEINTR, and fall back to volatile zero writes only onEINVAL/ENOSYS. - Add
PrepareTimings { slab_populate, cuda_register, disk_scan }andprepare_with_inputs_budget_with_progress(..., on_step)toselene/src/offload.rs, and appendallocate/populate/register/scandurations toPrepared::summary(). - Re-export the new items from
helios/src/offload/mod.rsand forward step labels viaphase.detail(step)inNativeModel::prepare_offload, keeping thePrepare host prefix cachephase andStartupStage::PrepareHostPrefixCacheidentifier. - Update
docs/prefix-cache-offload.md§2.5 and §2.11; no Protobuf, core-format or serving-ABI change. Touches: eos/src/unix.rs— the host slab allocator used by every host prefix-cache slab, pool staging, and CUDA tests (highest risk).selene/src/offload.rs+selene/src/offload/tests.rs— the prepare path and its public API/summary text.helios/src/offload/mod.rs+helios/src/runtime_core/model.rs— re-export and startup progress wiring. Related items:- #616 v0.4.4 takes over 15 minutes to prepare a 119 GiB host prefix cache on fragmented Linux memory (open): the bug this fixes; it explicitly blames #589.
- #589 Fix CUDA 12 batched copies, Linux ARM64 release portability, and Selene unified-memory budgeting (merged): introduced the
MADV_HUGEPAGE-then-MADV_POPULATE_WRITEorder that #625 replaces. - #323 Make the system headroom of unified-memory cache sizing configurable (open): edits the same five non-eos files and the same
prepare_with_inputs*signature family. - #576 (open): adds CPU-capacity helpers and tests to the same
eos/src/unix.rs. - #497 Reduce disk offload restore latency and integrated-memory intake overhead (merged): last substantive change to
selene/src/offload.rsbefore this; stacked on cleanly. Link: https://github.com/NVIDIA/hyperflare-inference/pull/625 Autobot comments: Undeclared behaviours: 64 MiB chunking applies to every THP policy and non-Linux Unix, not just synchronous-compaction cases; error handling is reversed so non-EINVAL/ENOSYSpopulation errors now abort startup instead of silently falling back (not in the compatibility section);map_hostnow does/sysand/procI/O on every call including 4 KiB test pools and pool staging; a mid-slab fallback appliesMADV_NOHUGEPAGEto the whole range; the last PMD of both-ends-aligned slabs is always base pages. Claims rest on an author-supplied standalone benchmark (no servedflare runmeasurement, which the charter requires, and the PR admits it), and no benchmark script or logs are committed. #625 also partially reverses merged maintainer PR #589 one day after it caused #616. CI failed on head 9639e57 for a reason not determinable from the repo; my earlier Windows-test hypothesis was wrong (eos/src/unix.rsis#[cfg(unix)]-only). Zero comments, reviews or labels.
Case file: PR #625 — Avoid THP compaction stalls in eos::map_host and report offload startup timings
Repository: NVIDIA/hyperflare-inference · Head commit 9639e57 · Base main · Branch fix/issue-616-host-slab-thp-fallback-timings (parent 59adc480, #540) · Opened 2026-11-30, state ready for review, single commit · Fixes #616.
Key findings
- This is a one-day-old regression fix against a merged maintainer PR, not a new feature. Issue #616 (open, P2, labels
area:memory,area:preparation,area:selene,bug,performance,triage:investigate) reports 914.6 s inPrepare host prefix cachefor a 119.4 GiB slab (133,790 slots), versus 71.1 s withdefrag=defer. It attributes the regression explicitly to merged PR #589 (Luke Alonso, 2026-11-28 22:18), whoseeos/src/unix.rshunk replacedMAP_POPULATEwithmadvise(MADV_HUGEPAGE)followed by onemadvise(MADV_POPULATE_WRITE). #625 rewrites that same function (+1008/−54) while keeping #589's intent (huge pages when available) — so it builds on, and partially reverses, work merged two days before it. - Undeclared behaviour changes in the allocator. The description frames chunking as part of the synchronous-compaction strategy, but
POPULATE_CHUNK_BYTES = 64 MiBapplies to every policy and to non-Linux Unix (eos/src/unix.rs:88,populate_chunks:462, non-Linux branch :671-679). Error handling is also reversed: previously anyMADV_POPULATE_WRITEfailure silently fell back to volatile writes; now onlyEINVAL/ENOSYSfall back and everything else propagates (:446-453), and the mapping ismunmaped (MappingGuarddrop,:173) —SlabPool::newturns that into a hardinvalid("allocate host slots: …")(selene/src/slab.rs:164-165). That new failure mode is not in the description's compatibility section. - Side effects of putting kernel introspection inside the allocator.
map_hostnow reads/sys/kernel/mm/transparent_hugepage/*,/proc/buddyinfoand/proc/vmstaton every call (eos/src/unix.rs:383, :272, :572), including for 4 KiB/8 KiB test pools and for pool staging viaRegion::anonymous(selene/src/pool/shm.rs:78). After a mid-slab fallback the final whole-range advice isMADV_NOHUGEPAGEeven when the policy did not need it, because the branch compares onlyfell_back(:611-616) — so THP hints are dropped for the whole slab, head included. When both ends are PMD-aligned the code shrinks the huge-page interior by one PMD (:542-550), so the last PMD of such slabs is always base pages. - Claims are backed in code but the headline numbers are unverifiable from the repository. Every mechanism in the description matches the code (see the claim table below), and the test counts cited are consistent with CI's job list. But the 128.56 s → 30.99 s (4.15x) and 57.19 s + 11.27 s figures come from a standalone
map_host+cuMemHostRegister_v2harness on the author's two machines; no script, raw log orflare runend-to-end timing is committed, and the description itself says "Expected benefit (not yet timed inside a liveflare runlaunch)". The charter requires performance PRs to show "an actual speedup overmainon a served workload (#210)", so this is the central evidence gap. - No engagement at all. Zero comments, reviews, inline comments, reactions, labels, assignees or requested reviewers. Issue #616 has exactly one comment — the bot's copy of the PR description. Sibling bot PRs (#589, #576) drew an Autobot Review within ~90 minutes and #576 a human
CHANGES_REQUESTED; #625 has had neither. - CI failed on head
9639e57, cause not determinable from the repo. Bothnative-serving.yml(Linux x86_64 + windows-2022 + rdma) andhelios-lifecycle.yml(path filters includeeos/**,selene/**) apply. There is nocargo fmt/clippy gate in any workflow. My working hypothesis that the newmap_host_rejects_zero_bytes_with_einvaltest breaks on windows-2022 is wrong:eos/src/unix.rsis compiled only under#[cfg(unix)](eos/src/lib.rs:9-12), so neither that test (:816) normapping_guard_unmaps_on_population_error(:822) builds on Windows, andeos/src/windows.rs:166is untouched. The failing job and log were not accessible with the available tools.
The change
Size and shape (all six files, pr_files):
| File | Diff | Content |
|---|---|---|
eos/src/unix.rs |
+1008/−54 | map_host rewrite: policy detection, adaptive chunked population, MappingGuard, ~440 lines of new unit tests |
selene/src/offload.rs |
+139/−47 | PrepareTimings, prepare_with_inputs_budget_with_progress, on_step plumbing, summary() durations |
selene/src/offload/tests.rs |
+274/−0 | four new tests: split-by-rank, split-fallback-to-contiguous, contiguous+disk, restore-only |
helios/src/offload/mod.rs |
+24/−3 | re-export PrepareTimings; prepare_with_inputs_budget now forwards to the new function with ` |
helios/src/runtime_core/model.rs |
+2/−1 | pass |step| phase.detail(step) into the new call |
docs/prefix-cache-offload.md |
+24/−6 | §2.5 population strategy, §2.11 startup phase summary |
Verified mechanics in eos/src/unix.rs (post-change):
map_host(bytes)keeps itspub fn map_host(bytes: usize) -> io::Result<usize>signature (:664) and delegates tomap_host_with(:652), which returnsEINVALforbytes == 0(:656-658), wraps allocation inMappingGuard(:139), and only commits (returns the pointer) after population succeeds (:659-661).detect_thp_policy(:383) parses/sys/kernel/mm/transparent_hugepage/{enabled,defrag,hpage_pmd_size};read_hpage_pmd_size(:228-240) validates power-of-two and> page_size()and otherwise derives 2/32/512 MiB for 4/16/64 KiB pages.select_thp_mode/select_population_mode(:243) yields four modes:BasePages(enabled=never),EagerHugepage(defrag=defer|never),KernelDefaultOpportunistic(enabled=always+defrag=madvise|defer+madvise),AdaptiveHugepage { fallback_needs_nohugepage }for everything else including unknown policy.populate_chunks(:462) drives every non-adaptive mode in 64 MiB pieces viapopulate_chunk(:434), which retriesEINTRand falls back to page-stridedwrite_volatile(0)only onEINVAL/ENOSYS.- Adaptive path
populate_adaptive_with(:489): PMD-aligned interior, chunk starts athpage_pmd_sizeand doubles up tomax(16 MiB, hpage_pmd_size)(:558,:596); a single-PMD shortcut avoids splitting (:514); before each chunk it requires order-weighted free huge pages (Normal+Movable zones, else all zones;:272,:343) of at leastchunk_hugepages + (total_hugepages/16).min(32); latency gatesstall_floor = max(15 ms, chunk_bytes/1 GiB/s)andhard_ceiling = max(50 ms, chunk_bytes/256 MiB/s)(:348-360);/proc/vmstatcompact_stallis re-sampled only when latency lands in(stall_floor, hard_ceiling](:581-595); on fallback it continues in 64 MiB base-page chunks; a final whole-rangemadvise(MADV_NOHUGEPAGEafter fallback, elseMADV_HUGEPAGE,:611-616) letsvma_mergecollapse sub-VMAs. - Windows (
eos/src/windows.rs:166-185) andunmap_host(:687) are unchanged; the Windows path keeps its monolithic virtual-lock-and-zero loop.
What the description does not say (beyond findings 2–3 above): the heuristic constants are compile-time only — no CLI flag, config key, env var or metric exposes 64 MiB / 16 MiB / 15 ms / 50 ms / 1 GiB/s / 256 MiB/s / total÷16 min 32 (.github/docs confirm no new key; docs/prefix-cache-offload.md:985-986 still says [prefix_cache] rejects unknown keys). Public Rust surface grows additively: Prepared::timings (selene/src/offload.rs:368), PrepareTimings (:331-340), prepare_with_inputs_budget_with_progress (:594; helios wrapper helios/src/offload/mod.rs:101), re-exported at helios/src/offload/mod.rs:30-31. The startup log line changes shape: memory X GiB (N slots, populate 12.3s, register 4.8s) · disk DIR (limit L, N records, staged, scan 0.9s) (asserted at selene/src/offload/tests.rs:1189-1193, :1246-1248, :1304-1310).
What the description says that the code does not quite do: nothing material was found — the description's technical claims all check out (claim table below). The one framing gap is scope: "advises MADV_HUGEPAGE once upfront and populates in bounded 64 MiB chunks" is presented as the defrag=defer|never behaviour, but the 64 MiB chunking is universal, so readers may underestimate how much of the old path changed for all hosts.
The why
- Issue #616, "v0.4.4 takes over 15 minutes to prepare a 119 GiB host prefix cache on fragmented Linux memory", opened by ktsaou 2026-11-29 19:10, updated 2026-11-30 01:38. Measurements, all with a 119.4 GiB slab / 133,790 slots, two-NUMA Linux 7.0.0-42, 2× RTX PRO 6000 Blackwell, Qwen TP2 C32 MTP core,
--prefix-cache-memory 128G+ local disk tier: 914.6 s with THPenabled=madvise+defrag=madvise; 71.1 s withdefrag=defer; 1,279.5 s when the operator changeddefragmid-run. - The operator's own mitigation is a host-wide sysctl, which they note "also affects unrelated workloads". They ask specifically for "an allocation strategy that falls back promptly to base pages" and "separate startup timings for slab population and CUDA registration" — the two deliverables of #625.
- Regression chain: #589 merged 2026-11-28 22:18; v0.4.4 ships it; report follows ~1 day later. Issue text: "[PR 589 changed]
eos::map_hostfrom populating the mapping before advising huge pages to issuingMADV_HUGEPAGEbeforeMADV_POPULATE_WRITE". - How widely wanted: exactly one operator report.
search_itemsfor "transparent hugepage compaction map_host" returns only #616 and #625; there is no second report and no competing proposal. Age of the want is ~1 day at PR open; the diagnosis was already in the issue.
Related work
- #589 (merged 2026-11-28, Luke Alonso, +994/−133) — the cause. Its
eos/src/unix.rshunk (+60/−1) introducedMADV_HUGEPAGE→ singleMADV_POPULATE_WRITEand removedMAP_POPULATE. #625 does not restoreMAP_POPULATE; it replaces the population step with policy detection plus adaptive chunks. Direction preserved, implementation reversed. - #576 (open, fordbmorris) — also edits
eos/src/unix.rs(+145) addingselect_high_capacity_cpus/prefer_high_capacity_cpus. Autobot's review of #576 already flagged a rebase need against #589 because tests were added ateos/src/unix.rs:207-248; #625 adds a ~600-line implementation and its own test module (from:766), so textual conflict is likely. - #323 (open, javieratomic) — touches the same five non-eos files:
selene/src/offload.rs,selene/src/offload/tests.rs,docs/prefix-cache-offload.md,helios/src/runtime_core/model.rs,helios/src/offload/mod.rs, addingsystem_headroom_bytes. Autobot's review of #323 recommended moving the value ontoPrefixCacheOffloadand dropping the positional parameter from all fourprepare_with_inputs*signatures — precisely the signatures #625 extended and thePrepared { … }struct literal atselene/src/offload.rs:770it now populates withtimings. Semantic overlap, both additive to the same prepare API. - #497 (merged 2026-11-29, FujitsuPolycom) — last substantive change to
selene/src/offload.rs,selene/src/offload/tests.rs,helios/src/runtime_core/model.rs; #625's base59adc480is after it and its hunks preserve #497's headroom/checkpoint/intake logic verbatim, reworking only the pool-construction body. - Context only (merged before #625's base, no textual conflict): #504, #455, #365, #609, #610, #611, #612, #607, #620, #613, #496. Nothing is superseded or undone by #625, and no other THP-compaction fix exists.
Recent activity
Chronology around #625's base (59adc480 = #540, 2026-11-29):
- 2026-11-28
ba3afb13(#589) — the commit #625 partly reverses ineos/src/unix.rs(see above). - 2026-11-29
dad2fa56(#497) — offload intake latency; #625 keeps its logic and only restructures the pool-construction body from athen(...).transpose()closure into anifblock. - 2026-11-29, five consecutive yatesdr hardening PRs in the same area: #607
5df8edd3(pool staging UAF / offload lifecycle), #609e2522eb0(DMA/RDMA lifetimes), #610a56333a0(local storage tier), #6118d05b9b6(pool client event loop), #6123801ff1d(selene-manager). None conflict textually, but they establish that reviewers in this area care about teardown/lifetime invariants; #625'sMappingGuardmunmap-on-error is in the same spirit and does not weaken them. - 2026-11-29
c146d7be(#620) last touchedhelios/src/runtime_core/model.rs; #625's two-line change there sits in that function. docs/prefix-cache-offload.mdis heavily edited (#589, #497, #504, #323, #621, #607, #496 within 180 days); #625 confines itself to §2.5 and §2.11, minimising overlap with #323/#621.- Loose end noted, out of this PR's scope:
selene-manager/src/arena.rs:93still issues an unconditionalmadvise(MADV_HUGEPAGE)on its own mapping, so it remains on the old strategy. - File ownership in 180 days:
eos/src— Luke Alonso 4, yatesdr 2, R4yHarris 1;selene/src— yatesdr 36, Luke Alonso 5, Martin Vit 2;docs/— Luke Alonso 383, Martin Vit 55, yatesdr 47;helios/src— Luke Alonso 228, Martin Vit 52, yatesdr 47.
People
- Author
flare-autobot: GitHub association COLLABORATOR, 0 merged / 0 closed / 0 open PRs or issues of its own in 180 days, every recent bot PR carries aDiscord: <handle>trailer. This PR's commit9639e576is authored by "derek" (the identity behind the bot). The bot is a regular contributor vehicle for this project — #589 and #576 are its outputs — but has no independent standing. - Charter "Respect contributors" names @voipmonitor, @original-el8, @lukealonso as priority contributors; the author is not among them, and the person whose change this fixes (
lukealonso, #589) is. - Area owners who would normally review: yatesdr (selene/src), Luke Alonso (eos, helios, docs), and for the offload path FujitsuPolycom (#497) / PCCessna (#496, #497, #540).
- Reported by ktsaou (#616); nobody else has engaged on either item.
Community
- PR #625:
pr_commentsreturns nothing — no comments, no reviews, no inline review comments, no reactions, no labels, no assignee, no requested reviewers. Opened and last updated 2026-11-30 01:32. - Issue #616: exactly one comment,
flare-autobotat 2026-11-30 01:33, a verbatim reproduction of the PR description (root cause, implemented fix, verification, unrun checks). No reply from the reporter or a maintainer. - Normal cadence for comparison: #589 (opened 2026-11-28 21:47) had an Autobot Review 2h45m later and merged the next day at 22:18; #576 (opened 19:22) had an Autobot Review at 20:41 and a human
CHANGES_REQUESTEDfromoriginal-el8at 22:12. The Case File / Intake Report artifacts those PRs carry are absent from #625, so no intake report exists yet.
Project fit
- Charter, "What gets merged": "PRs that address a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs." #616 is a reproducible bug with measured memory/performance data, and the change touches the roadmap goal "Store prefix-cache checkpoints in host memory and share them across Flare instances via Selene". Squarely in scope.
- Charter, "Bring real evidence": "Performance PRs need benchmarks showing an actual speedup over
mainon a served workload (#210)." The PR's benchmark is a standalone allocator/registration harness, not a served workload, and the PR says so — the main documented tension. - Charter, "Be explicit and pin everything. No magic defaults…" (#215). The new behaviour is entirely compile-time constants plus auto-detected kernel policy, with no operator override. Defensible given the stated goal of avoiding sysctls and new switches, but it is the rule this design sits nearest.
docs/design-review.mdprinciple 12 (performance claims require equivalent baselines and complete measurements, and must disclose unrun checks) is well satisfied on disclosure: the PR lists unrun checks explicitly — no end-to-endflare run, no live RDMAibv_reg_mr, no 16 KiB/64 KiB kernel runs, no kernel withoutCONFIG_TRANSPARENT_HUGEPAGE, skipped checkpoint-gated and torch tests.- Principle 6 (lifetimes) and 8 (budget physical memory): mapping stays zeroed, prefaulted-writable, page-aligned, single-VMA and unregistered before
munmap;MappingGuardadds an error-path munmap. Consistent. - Testing hierarchy: eos, selene, selene-manager, helios, flare, flare-cli tests are all cited, matching
native-serving.yml:47,51-52,63,73,77. The RDMA evidence iscargo check --features rdma, which the design hierarchy says does not substitute for tests, but CI's rdma job is alsocargo checkonly (native-serving.yml:109-113), so it matches CI. - Process paperwork:
AGENTS.md:52-59wants designed-but-unimplemented behaviour flagged and unresolved defects/unrun checks recorded indocs/TODO.txt; #625 adds nodocs/TODO.txtentry (contrast #323, which adds 13 lines there). PR description has the required four parts (why / what changed / claimed result / evidence) and the Discord line, matching design-review principles 16–17. - Documentation:
docs/prefix-cache-offload.md§2.5 (:517-535) and §2.11 (:987-995) are rewritten; the old text describing "4 KiB aligned anonymous mapping … advised for transparent huge pages with MADV_HUGEPAGE before prefaulting via MADV_POPULATE_WRITE" is gone, so the doc no longer describes the behaviour that still applies on Windows and non-Linux Unix.
Claims and evidence
| Claim | Verified? | Citation |
|---|---|---|
map_host(bytes: usize) -> io::Result<usize> unchanged |
Yes | eos/src/unix.rs:664 |
bytes == 0 → EINVAL |
Yes | :656-658; test :816 |
MappingGuard munmaps on population error |
Yes | Drop :173; test :822-831 |
EINTR retry; volatile fallback only on EINVAL/ENOSYS |
Yes | :446-453 |
| sysfs THP/PMD parsing, 2/32/512 MiB portable defaults | Yes | :228-240, :383-398; tests :834+ |
| 24-cell (enabled, defrag) matrix | Yes — 4 enableds × 6 defrags | test :866-930 |
Growing PMD-aligned chunks up to max(16 MiB, hpage_pmd_size) |
Yes | :558, :596 |
stall_floor = max(15 ms, bytes/1 GiB/s), hard_ceiling = max(50 ms, bytes/256 MiB/s) |
Yes | :348-360; classification test :1040-1046 |
compact_stall re-sampled only when latency in (floor, ceiling] |
Yes | :581-595 |
Fallback below chunk_hugepages + (total/16).min(32) |
Yes | :343 |
| Final whole-range advice to merge sub-VMAs | Yes | :611-616; smaps tests :1050-1075, :1077-1141, :1143+ |
PrepareTimings { slab_populate, cuda_register, disk_scan: Option<Duration> } |
Yes | selene/src/offload.rs:331-340, field :368 |
prepare_with_inputs_budget_with_progress(..., on_step: impl FnMut(&str)) |
Yes | selene/src/offload.rs:594; helios helios/src/offload/mod.rs:101 |
| Step/timer reset on split→contiguous fallback | Yes — steps asserted as allocating / populating / registering |
selene/src/offload/tests.rs:1230-1240 |
Summary adds allocate/populate, register/scan |
Yes | tests :1189-1193, :1242-1250, :1304-1310 |
| Restore-only and disabled summaries byte-for-byte unchanged | Yes | tests :1347, :1375, :255 |
Phase label and StartupStage::PrepareHostPrefixCache unchanged |
Yes | helios/src/runtime_core/model.rs:934; helios/src/startup.rs:41,82; phase.detail pre-existing :325 |
| No Protobuf/model-core/serving-ABI change | Consistent — diff touches no .proto or core-format code |
pr_files |
128.56 s → 30.99 s (4.15x); 48 GiB in 13.78 s; 119 GiB populate 57.19 s + register 11.27 s; compact_stall +25,654 → +62 |
Author-supplied, not reproducible from the repo — no harness, raw logs or machine setup committed | description |
| Served-workload speedup | Not claimed — description says "Expected benefit (not yet timed inside a live flare run launch)" |
description |
| Test suites cited (eos 11, selene 552+1, helios 1753+62, flare 245, flare-cli 228, selene-manager 412) | Counts are plausible and match the CI job list; not re-run here | native-serving.yml:47-77 |
Note on test strength: map_host_advises_hugepages_and_prefaults_zeroed_pages (eos/src/unix.rs:1077-1141) was rewritten to branch on the detected policy, asserting hg only in EagerHugepage, and hg-or-nh in adaptive mode — so its VmFlags assertion is policy-dependent rather than a fixed expectation. The fallback path is exercised deterministically by adaptive_mid_mapping_fallback_merges_into_single_vma (:1143+) through a synthetic read_buddyinfo_free_hugepages closure (returns u64::MAX then 0).
Reach
- Affected users: operators running
flare runwith--prefix-cache-memorycombined with--prefix-cache-disk,--prefix-cache-pool,--lossless-kv-compression, or the non-VMM host fallback — exactly #616's configuration (--prefix-cache-memory 128G+ disk tier, 119.4 GiB). - Configuration surface: no new CLI flag, config key, env var, metric or Protobuf field;
[prefix_cache]still rejects unknown keys (docs/prefix-cache-offload.md:985-986). Defaults change behaviourally on Linux because the allocator now adapts to the host's THP policy. - Observability: the
Prepare host prefix cachecompletion line gains parenthetical durations and sub-stepdetailupdates; the phase name and identifier are stable. No in-repo test asserts the old text (the Python server test only asserts the phase is absent when disabled,tests/server/test_prefix_cache_offload.py:135), but external dashboards/scripts matching the old parenthetical could notice. - Beyond prefix cache:
eos::map_hostalso backs pool staging (selene/src/pool/shm.rs:78) and CUDA tests (helios/src/cuda.rs:1599,1665), so both inherit the policy-aware population and the stricter error propagation. - Platform scope: THP logic is
#[cfg(target_os = "linux")]; other Unixes get chunked volatile zeroing only; Windows is untouched and keeps monolithic zeroing (eos/src/windows.rs:166-185). 16 KiB/64 KiB-page ARM64 kernels are covered only by parser unit tests, not live runs. - Dependencies/deployment: none added (libc only); no migration; the change is per-process allocation strategy.
Process
- Not a draft: orientation packet says "open, ready for review". One commit
9639e576(authored by "derek"), opened 2026-11-30 01:32 and updated the same minute — under a day old at time of this file. - Review state: none. No reviewers requested, nobody assigned, no labels.
- CI on head
9639e57: failed. Applicable workflows:native-serving.yml(jobs:nativeon ubuntu-24.04 + windows-2022,rdmaon ubuntu-24.04) andhelios-lifecycle.yml(path filters includeeos/**andselene/**). Nocargo fmt --checkor clippy step exists in any workflow, so formatting/lint is not a plausible gate. The specific failing job and log could not be retrieved with the tools available; the earlier Windows-test hypothesis is disproved (eos/src/unix.rsis Unix-only viaeos/src/lib.rs:9-12). - Toolchain consistency: the new code uses let-chains and
is_none_or, needing Rust ≥ 1.88;eos/Cargo.toml:6andselene/Cargo.toml:6declarerust-version = "1.88". - Documentation obligations: design-review principle 17 (Discord line) satisfied;
docs/TODO.txtentry for the unrun end-to-end check absent (AGENTS.md:52-59).
Open questions / not found
- Which job failed on
9639e57, and why. Not retrievable here; both workflows apply, and no formatting gate exists, so the failure is likely a real test/compile failure on one matrix leg (Linuxnative, Windowsnative,rdma, orhelios-lifecycle). - Whether the strict error propagation (non-
EINVAL/ENOSYSnow fatal) can turn a previously recoverableENOMEMunder memory pressure into a startup failure in practice — the description does not discuss it and no test covers the fatal path end to end beyondmapping_guard_unmaps_on_population_error's syntheticENOMEM. - What the served-workload effect actually is: no
flare runtiming exists for eithermainor the branch (acknowledged in the PR). The charter's #210 requirement is therefore unmet by the evidence as filed. - Whether the final
MADV_NOHUGEPAGEover the whole range after a mid-slab fallback has any measurable cost for slabs that already got huge pages at the head (measuredAnonHugePages=2,046 MiBretained, so populated huge pages are not split back, but no study of subsequent growth is cited). - Whether
selene-manager/src/arena.rs:93's unconditionalMADV_HUGEPAGEwill be brought in line; not in this PR's scope and not mentioned anywhere. - Interaction with #323's pending signature refactor of
prepare_with_inputs*and with #576's additions toeos/src/unix.rs— neither has been reconciled.