#1 [high] Change: PR #625 size and file map
PR #625 "Avoid THP compaction stalls in eos::map_host and report offload startup timings", fixes #616. Open, ready for review, opened 2026-11-30, head 9639e57, base main. Author flare-autobot (COLLABORATOR). No comments, no reviews, labels none. CI on head: FAILED (per orientation packet).
Files (pr_files):
- eos/src/unix.rs +1008/−54 — map_host rewrite: THP policy detection, adaptive chunked population, MappingGuard RAII, unit tests (most of the diff)
- selene/src/offload.rs +139/−47 — PrepareTimings struct, prepare_with_inputs_budget_with_progress, on_step callbacks, summary() formatting
- selene/src/offload/tests.rs +274/−0 — 4 new tests (split-by-rank, split fallback, contiguous+disk, restore-only)
- helios/src/offload/mod.rs +24/−3 — re-export PrepareTimings + new function wrapper
- helios/src/runtime_core/model.rs +2/−1 — pass |step| phase.detail(step)
- docs/prefix-cache-offload.md +24/−6 — sections 2.5 (slab population) and 2.11 (startup phase summary)
Description's "What Changed" matches the diff contents; no schema/ABI change claimed. Diff contains nothing beyond the described scope (verify further).
#2 [high] Change: eos::map_host rewrite mechanics (verified in code)
- Before (main,
eos/src/unix.rs:85-119):map_hostmmaps,madvise(MADV_HUGEPAGE)over whole range, then ONEmadvise(MADV_POPULATE_WRITE); on any failure it page-strideswrite_volatile(0)over the whole mapping; never munmaps on error; acceptsbytes == 0. - After (PR head):
map_host(bytes)→map_host_with(line 652) →MappingGuardRAII (line 139) munmaps on error;bytes==0→ EINVAL (line 656);populate_chunk(line 434) retries EINTR, falls back to volatile only on EINVAL/ENOSYS, propagates other errnos;POPULATE_CHUNK_BYTES = 64 MiB(line 88) universal chunking. - Linux policy detection
detect_thp_policy(line 383) reads/sys/kernel/mm/transparent_hugepage/{enabled,defrag,hpage_pmd_size};select_population_mode(line 243) maps (enabled,defrag,pmd) → 4 modes: BasePages, EagerHugepage (defrag=defer|never), KernelDefaultOpportunistic (enabled=always + defrag=madvise|defer+madvise), AdaptiveHugepage{fallback_needs_nohugepage} (everything else incl. unknown). - Adaptive path
populate_adaptive_with(line 489): PMD-aligned interior walk; chunk starts at hpage_pmd_size and doubles tomax(16 MiB, hpage_pmd_size)(line 558, 596); before each chunk reads weighted free huge pages from/proc/buddyinfo(line 272, order-weighted, Normal+Movable zones else all) and requireschunk_hugepages + (total_hugepages/16).min(32)(line 343); latency thresholdsstall_floor=max(15ms, bytes/1GiB/s),hard_ceiling=max(50ms, bytes/256MiB/s)(line 348-360);/proc/vmstat compact_stallsampled before/after only when latency in (floor, ceiling] (line 572, 587); fallback → 64 MiB base-page chunks for the remainder; final whole-range madvise MADV_NOHUGEPAGE after fallback else MADV_HUGEPAGE (line 611-616) to let vma_merge collapse sub-VMAs. - Special single-PMD case at line 514 avoids splitting.
- Non-Linux Unix: chunked volatile writes (line 671-679); Windows path (
eos/src/windows.rs:166) unchanged.
#3 [high] Change: what the diff does that the description understates
Details present in the diff that the PR description does not call out (potential reviewer interest):
POPULATE_CHUNK_BYTES = 64 MiBchunking applies to every policy and to non-Linux Unix too (eos/src/unix.rs:88,populate_chunksline 462) — the description only frames chunking as part of the THP-policy strategy; the mmap_lock-hold reduction is therefore global, not only under synchronous-compaction policies.- Error-handling reversal: previously any
madvise(MADV_POPULATE_WRITE)failure silently fell back to volatile writes; now only EINVAL/ENOSYS fall back and other errnos (e.g. ENOMEM) propagate, and the mapping is unmapped (MappingGuard drop).SlabPool::newmaps this toinvalid("allocate host slots: …")(selene/src/slab.rs:164-165). This turns previously-silent degradation into a hard startup failure for non-EINVAL/ENOSYS errors. Not mentioned in the description's compatibility section. map_hostnow performs file I/O (/sys/.../transparent_hugepage/*,/proc/buddyinfo,/proc/vmstat) on every call; callers includeSlabPool::new(selene/src/slab.rs:164) and pool stagingRegion::anonymous(selene/src/pool/shm.rs:78), i.e. also for small mappings (tests create 4 KiB/8 KiB pools).- In the adaptive path the final whole-range advice after a fallback is
MADV_NOHUGEPAGEeven whenfallback_needs_nohugepage == false(line 611-616 compares onlyfell_back), i.e. a mid-slab fallback disables THP hints for the whole slab, including the head that already got huge pages (measuredAnonHugePages=2,046 MiBretained, so populated huge pages are not split back). - When the single-PMD shortcut is not taken and both ends are PMD-aligned, the code anchors the last byte and shrinks the hugepage interior by one PMD (line 542-550); this is described, but the consequence is that the last PMD of such slabs is always populated as base pages.
- Heuristic constants (15 ms / 50 ms / 1 GiB/s / 256 MiB/s / total/16 min 32 / 64 MiB / 16 MiB) are compile-time constants with no operator override — description frames avoiding sysctl/switch as a benefit; charter line "Be explicit and pin everything. No magic defaults" is the matching project rule.
- New public item on
Prepared:timings: PrepareTimingsfield (selene/src/offload.rs:368), plusPrepareTimingsandprepare_with_inputs_budget_with_progressre-exported fromhelios(helios/src/offload/mod.rs:30-31, 101). Public API surface growth (additive). - Summary text change is user-visible in startup log:
memory X GiB (N slots, populate 12.3s, register 4.8s) · disk DIR (limit L, N records, staged, scan 0.9s)versus previously no durations (selene/src/offload.rs:415-475; assertionsselene/src/offload/tests.rs:1189-1193, 1246-1248, 1304-1310).
#4 [high] Why: #616 is a live P2 regression report tracing back to #589
- Issue #616 "v0.4.4 takes over 15 minutes to prepare a 119 GiB host prefix cache on fragmented Linux memory" (open, labels area:memory, area:preparation, area:selene, bug, performance, priority:P2, triage:investigate), opened by ktsaou 2026-11-29 19:10, updated 2026-11-30 01:38. Measured: 914.6 s in
Prepare host prefix cachewith THP enabled=madvise + defrag=madvise; 71.1 s with defrag=defer; 1,279.5 s when the operator switched defrag mid-run. All runs 119.4 GiB / 133,790 slots. Two-NUMA, Linux 7.0.0-42-generic, 2× RTX PRO 6000 Blackwell, Qwen TP2 C32 MTP core,--prefix-cache-memory 128G+ local disk tier. Operator mitigation is a host-wide sysctl (they note it "also affects unrelated workloads"); they explicitly ask for "an allocation strategy that falls back promptly to base pages" and "separate startup timings for slab population and CUDA registration" — both are exactly what the PR delivers. - Issue #616 blames PR #589 (
eos::map_hostordering changed from MAP_POPULATE→MADV_HUGEPAGE): "[PR 589 changed]eos::map_hostfrom populating the mapping before advising huge pages to issuingMADV_HUGEPAGEbeforeMADV_POPULATE_WRITE". #589 merged 2026-11-28 22:18; v0.4.4 ships it; the regression report follows ~1 day later. So #625 is a follow-up fix to a maintainer (lukealonso) regression, not a new feature. - Age of the want: single report, 1 day old at PR open; the diagnosis is in the issue itself. No other issue/PR duplicates the THP-compaction topic (search_items for "transparent hugepage compaction map_host" returns only #616 and #625).
- PR #625's own comment on #616 (2026-11-30 01:33) is a full copy of the PR description; the issue has only that one comment.
#5 [high] Related work: #589 caused it, #576 and #323 collide on the same files
- #589 (merged 2026-11-28 22:18, lukealonso, +994/−133) is the direct cause: its
eos/src/unix.rshunk (+60/−1) replaced MAP_POPULATE withmadvise(MADV_HUGEPAGE)then onemadvise(MADV_POPULATE_WRITE). #625 rewrites that same function (+1008/−54). - #576 (open, fordbmorris) also edits
eos/src/unix.rs(+145): addsselect_high_capacity_cpus/prefer_high_capacity_cpusto the same file that #625 rewrites wholesale. Autobot's own review of #576 noted a rebase was needed against #589 because "main is 11 commits ahead … including #589, which … added tests at eos/src/unix.rs:207-248". Textual conflict risk: both add large test modules toeos/src/unix.rs; #625's tests start around line 766+ (offset after the new ~600-line implementation), #576's around 172-314 pre-#589 numbering. - #497 (merged, FujitsuPolycom, +… ) touches
selene/src/offload.rsandhelios/src/runtime_core/model.rs— merged 2026-11-29 (dad2fa56) after #589; #625 is based on 59adc480 which is after #497, so it stacks cleanly on it. - #323 (open, javieratomic) touches
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— the same five files as #625 (all but eos/src/unix.rs). #323 changesprepare_with_inputs*signatures/PrefixCacheOffload(system_headroom_bytes) and its own Autobot review recommended "Put the value onPrefixCacheOffload… drop the positional parameter from all four signatures" — which would collide with #625's newprepare_with_inputs_budget_with_progressarguments and itsPrepared { timings }struct-literal atselene/src/offload.rs:770. Overlap: both add parameters/fields to the same prepare path. - #609, #610, #611, #612, #607, #504, #455, #365, #399, #496: merged selene/offload-area PRs by yatesdr / PCCessna / lukealonso, all predate this PR's base and are context, not conflicts.
- Nothing supersedes or is undone by #625; no competing THP fix exists.
#7 [high] Project fit: charter alignment and the rule-nearby tensions
- Charter (
read_charter): "What gets merged: PRs that address a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs." #625 addresses a reproducible bug with a measured memory/perf problem (#616) → squarely in scope. Goal "Store prefix-cache checkpoints in host memory and share them across Flare instances via Selene" is the exact subsystem touched. - Charter: "Bring real evidence. Performance PRs need benchmarks showing an actual speedup over
mainon a served workload (#210)." #625's benchmark is a standaloneeos::map_host+cuMemHostRegister_v2harness, notflare runon a served workload — and the description itself says "Expected benefit (not yet timed inside a liveflare runlaunch)". This is the main charter tension to note. - Charter: "Be explicit and pin everything. No magic defaults, and pin dependencies to exact versions or commits (#215)." The new allocator behavior is entirely driven by compile-time constants and auto-detected kernel policy (64 MiB, 16 MiB, 15 ms, 50 ms, 1 GiB/s, 256 MiB/s, total/16 min 32) with no operator knob. Defensible as "no new switches", but worth flagging as a rule-nearby tension.
docs/design-review.mdprinciple 12: "Performance claims require equivalent baselines, complete GPU steps across all ranks, and actual Helios service measurements… disclose unrun checks and material limitations." The PR does disclose limitations thoroughly (no end-to-endflare run, no live RDMA, no 16 KiB/64 KiB kernels, no non-CONFIG_TRANSPARENT_HUGEPAGE kernel).docs/design-review.mdprinciple 6 (lifetimes) and 8 (budget physical memory) are the relevant invariants; the PR keeps the mapping zeroed/prefaulted/single-VMA and adds munmap-on-error, which fits.docs/design-review.mdtesting hierarchy requirescargo test --locked --releaseon every affected crate matchingnative-serving.yml. The PR ran eos, selene, selene-manager, helios, flare, flare-cli (all listed). It listscargo checkforselene --features rdma, which the hierarchy says "does not substitute for cargo test" — but the rdma job in CI is also onlycargo check(native-serving.yml:111-113), so it matches CI.AGENTS.md:52-59requires designed-but-unimplemented behavior to be marked as such and unresolved defects/unrun checks to go indocs/TODO.txt, not design docs. #625 does not add adocs/TODO.txtentry for the unrun end-to-end check (contrast #323, which adds 13 lines todocs/TODO.txt).- Documentation:
docs/prefix-cache-offload.md:517-535(§2.5) and:987-995(§2.11) rewritten; the doc previously described "4 KiB aligned anonymous mapping … advised for transparent huge pages with MADV_HUGEPAGE before prefaulting via MADV_POPULATE_WRITE" — that text is replaced, so the doc no longer states the behavior on kernels/Windows where the old path applies.
#8 [high] Claims and evidence: each claim checked in code; benchmarks unverifiable from repo
Claims vs evidence (verified by reading the description and diffs):
- "map_host keeps its
pub fn map_host(bytes: usize) -> io::Result<usize>signature" — TRUE (eos/src/unix.rs:664). No caller changes needed;flare_eos::map_hostre-exported viaeos/src/lib.rs:10-12. - "rejects bytes == 0 with EINVAL" — TRUE (line 656), tested at
eos/src/unix.rs:816. - "MappingGuard munmaps on any population error" — TRUE (Drop at line 173), tested at line 824.
- "retries on EINTR; volatile fallback only on EINVAL/ENOSYS" — TRUE (line 446-453).
- "reads sysfs THP enabled/defrag/hpage_pmd_size, portable 2/32/512 MiB defaults" — TRUE (lines 228-240, 383-398), unit-tested (line 838+).
- "24-cell (enabled,defrag) mode matrix" — the test iterates 4 enableds × 6 defrags = 24 (
eos/src/unix.rs:866-930). - "walks growing PMD-aligned chunks from hpage_pmd_size up to max(16 MiB, hpage_pmd_size)" — TRUE (lines 558-596): chunk doubles each iteration, capped.
- "stall_floor = max(15 ms, chunk_bytes / 1 GiB/s), hard_ceiling = max(50 ms, chunk_bytes / 256 MiB/s)" — TRUE (lines 348-360).
- "compact_stall sampled a second time only when latency falls in (stall_floor, hard_ceiling]" — TRUE (lines 581-595).
- "falls back when free huge pages drop below chunk_hugepages + (total_hugepages / 16).min(32)" — TRUE (line 343).
- "finishes with one whole-range madvise so Linux merges all sub-VMAs" — TRUE (line 611-616); live smaps assertions in tests at line 1103+ and 1196+.
- "PrepareTimings (slab_populate, cuda_register, disk_scan, each Option)" — TRUE (
selene/src/offload.rs:331-340). - "prepare_with_inputs_budget_with_progress(..., on_step: impl FnMut(&str))" — TRUE (
selene/src/offload.rs:594, helios wrapperhelios/src/offload/mod.rs:101). - "progress step and timer reset before SlabPool::sized and again before pool.register" on split fallback — TRUE (
selene/src/offload.rs:~710-730), asserted step sequence atselene/src/offload/tests.rs:1203-1250. - "restore-only and disabled summaries byte-for-byte unchanged" — TRUE:
selene/src/offload/tests.rs:1347, 1375assert exact strings;selene/src/offload/tests.rs:255asserts "disabled". - "
Prepare host prefix cachelabel and StartupStage::PrepareHostPrefixCache unchanged" — TRUE (helios/src/runtime_core/model.rs:934,helios/src/startup.rs:41,82);phase.detailis the pre-existing method (helios/src/startup.rs:325). - "No Protobuf schema, model core format, or serving ABI changed" — plausible; diff touches no .proto, no core format code.
- Benchmark numbers (128.56 s → 30.99 s, 4.15x; 119 GiB in 57.19 s + 11.27 s register; compact_stall +25,654 → +62): author-supplied, not reproducible from the repo; no benchmark script or raw logs committed. No
flare runend-to-end timing. Standard test suites are cited with counts (eos 11, selene 552+1, helios 1,753+62, flare 245, flare-cli 228, selene-manager 412). - Test for
map_host_advises_hugepages_and_prefaults_zeroed_pageswas rewritten to accepthgORnhdepending on detected policy (line 1091-1130) — i.e. the old assertion "expects hg" is now conditional; on adefrag=madvisehost the test assertsnhonly whenfallback_needs_nohugepage. Assertion strength is policy-dependent. - The test
adaptive_mid_mapping_fallback_merges_into_single_vmaforces fallback with a synthetic buddyinfo closure (returns u64::MAX then 0) so it exercises the fallback path deterministically (eos/src/unix.rs:1145-1200).
#10 [high] Process: ready-for-review, zero reviews, CI failed, and the Windows-test hypothesis
- Process: DRAFT? No — orientation packet says "State: open, ready for review". Opened 2026-11-30 01:32, updated same minute, so age < 1 day at time of review. Single commit 9639e576 ("Avoid THP compaction stalls in eos::map_host and report offload startup timings", authored by "derek"), branch
fix/issue-616-host-slab-thp-fallback-timings→main, base parent 59adc480 (#540). - Review state: no labels, no reviewers requested, no reviews, no comments. Compare #589 which got an Autobot Review within 90 minutes and #576 which got a human CHANGES_REQUESTED from original-el8.
- CI on head commit 9639e57: FAILED (orientation packet). The applicable workflows are
native-serving.yml(x86_64 Linux + windows-2022 + rdma) andhelios-lifecycle.yml(path filtereos/**,selene/**→ both trigger). Reason not determined from the repo; there is no fmt/clippy gate in.github/workflows(searched: nocargo fmt/clippystep anywhere in workflows), so a rustfmt/clippy-only failure is possible but the actual failing job/log is not visible from these tools. - CI coverage that exists:
native-serving.yml:47runseostests on both ubuntu-24.04 and windows-2022 (so the new eos tests run on Windows too — all new eos tests are#[cfg(target_os = "linux")]exceptmap_host_rejects_zero_bytes_with_einvalandmapping_guard_unmaps_on_population_error, which run everywhere, andeos/src/windows.rs:166map_hostdoes NOT reject zero bytes — somap_host_rejects_zero_bytes_with_einvalwill FAIL on windows-2022 if WindowsVirtualAlloc(0)succeeds or returns a different error). This is a concrete, checkable candidate for the Windows CI failure: the new cross-platform test assertsraw_os_error() == Some(libc::EINVAL)but only the Unixmap_hostsets EINVAL explicitly; the Windows implementation (eos/src/windows.rs:166-185) callsVirtualAllocwith size 0 and returnslast_os_error(). NOTE: treat as a hypothesis, not verified (I cannot see the CI log). native-serving.yml:51-52runs selene + selene-manager with--features test-support;:63helios withruntime-core,server;:73flare-cli;:77flare;:111-113rdmacargo check.- No
cargo fmt --check/ clippy in CI, but the new code useslet … && …chains andis_none_or, which need Rust ≥ 1.88 stable — crates declarerust-version = "1.88"(eos/Cargo.toml:6,selene/Cargo.toml:6), so this is consistent. - Charter/AGENTS process: PR description has the required four parts (why / what changed / claimed result / evidence) in order, matching design-review principle 16 and AGENTS "Required PR descriptions". Discord line present (
Discord: flare-autobot), satisfying principle 17.
#11 [high] Research summary
I gathered the case file for PR #625 across all eight angles, with 10 scratchpad entries carrying file:line and PR/issue citations.
The change. A 6-file, +1471/−111 PR that rewrites eos::map_host (+1008/−54 in eos/src/unix.rs) into a THP-policy-aware chunked populator, and adds per-step startup timings/progress to the offload prepare path (selene/src/offload.rs, selene/src/offload/tests.rs, helios/src/offload/mod.rs, helios/src/runtime_core/model.rs, docs/prefix-cache-offload.md). I verified every mechanism it describes in the code: the 4-mode policy matrix, the order-weighted /proc/buddyinfo reserve, the 15 ms/50 ms latency thresholds, the compact_stall re-sample, the final whole-range madvise for VMA merging, and the new PrepareTimings/on_step plumbing.
What a reader could not learn from the description (highest-value findings): 64 MiB chunking is applied to every policy and to non-Linux Unix, not just synchronous-compaction cases; error handling is reversed so non-EINVAL/ENOSYS population errors now abort startup (previously silent volatile fallback) — a hard failure mode not in the compatibility section; the allocator now reads /sys and /proc on every map_host call, including 4 KiB test pools and pool staging; a mid-slab fallback applies MADV_NOHUGEPAGE to the whole range even when the policy didn't require it; the last PMD of both-ends-aligned slabs is always base pages; and the new cross-platform test map_host_rejects_zero_bytes_with_einval asserts EINVAL but Windows map_host (eos/src/windows.rs:166) does not reject zero bytes — my leading (unverified) hypothesis for the reported CI failure on the ubuntu/windows-2022 matrix.
Connections. #616 is a live P2 regression that traces directly to merged maintainer PR #589's map_host reordering, so this is a follow-up fix to a day-old regression rather than a new feature; no competing THP fix exists. #576 (open) and #323 (open) both edit the same files — #576 adds tests to the same eos/src/unix.rs test module, #323 adds parameters to the same prepare_with_inputs* path and was already advised to refactor those signatures.
Fit and process. The change squarely meets the charter's "reproducible bug / measured performance issue" bar, but its benchmark is a standalone harness rather than the charter's required served flare run workload (the PR admits this), and its behavior is entirely compile-time constants with no operator knob, which sits near the "no magic defaults" rule. Zero reviews or comments; open <1 day; CI failed on head.
Full detail, citations and the claim-by-claim verification table are in the scratchpad entries.
#12 [high] Community: no comments, reviews or reactions at all
- PR #625 discussion: completely empty (
pr_commentsreturned "No comments."). No reviews, no inline review comments, no reactions, no labels, no assignee, no requested reviewers. Opened 2026-11-30 01:32 and last updated 2026-11-30 01:32. - Issue #616 discussion: exactly one comment, by
flare-autobotat 2026-11-30 01:33, which is a verbatim reproduction of the PR #625 description (root cause, implemented fix, verification, unrun checks). No maintainer or reporter reply on the issue after that. - Sibling cadence for comparison:
flare-autobotopened PR #589 at 2026-11-28 21:47 and received an "Autobot Review" 2h45m later, merged at 22:18 next day; PR #576 opened 2026-11-28 19:22 drew an Autobot Review at 20:41 and a humanCHANGES_REQUESTEDreview fromoriginal-el8at 22:12 plus a follow-up Autobot review at 2026-11-29 04:15. So the project's normal pattern is a machine review within ~90 minutes plus maintainer attention; #625 has had neither within its first day. - The bot's own review artifacts (Case File / Intake Report links) that appear on #576/#589/#323 are absent from #625, so no intake report exists yet for this PR.
- Interest level: exactly one operator (ktsaou, #616 reporter) is waiting on the outcome; there is no wider thread of interest or competing proposal anywhere in the searched items.
#13 [high] Recent activity: what changed lately in these files and whether #625 builds on or reverses it
Chronology immediately before #625 (base parent 59adc480, #540, 2026-11-29):
- 2026-11-28
ba3afb13= PR #589 (Luke Alonso): the commit #625 partially reverses ineos/src/unix.rs. #589 introducedMADV_HUGEPAGE-before-MADV_POPULATE_WRITE(replacingMAP_POPULATE); #625 keeps the intent (huge pages when available) but replaces the monolithic sequence with policy detection + adaptive chunks. It does NOT revert #589's other hunks (MAP_POPULATE stays removed). So: builds on #589's direction, reverses its implementation of the population step, and fixes #616 which #589 caused. - 2026-11-29
dad2fa56= PR #497 (FujitsuPolycom): touchesselene/src/offload.rs,selene/src/offload/tests.rs,helios/src/runtime_core/model.rs; #625 is based after it and keeps its budget/intake logic untouched (effective.headroom_inner,checkpoint_memory,intakecalculations are preserved verbatim; only the pool-construction body was restructured from athen(...).transpose()closure into anifblock). - 2026-11-29, five consecutive yatesdr fixes in the same area: #607 (
5df8edd3pool staging UAF / offload lifecycle), #609 (e2522eb0DMA/RDMA lifetimes), #610 (a56333a0local storage tier), #611 (8d05b9b6pool client event loop), #612 (3801ff1dselene-manager hardening). None conflicts textually with #625, but they show the area is under active hardening by yatesdr — a reviewer will expect #625 not to weaken those lifetime/teardown invariants. #625'sMappingGuardadds a new munmap-on-error path, which is a lifetime-safety improvement in the same spirit. - 2026-11-29
c146d7be= #620 (Luke Alonso) touchedhelios/src/runtime_core/model.rsanddocs/; #625's two-line change there (prepare_offloadcalling the new function with|step| phase.detail(step)) sits in the function #620 last touched. - Docs area:
docs/prefix-cache-offload.mdis edited by many PRs (#589, #497, #504, #323, #621, #607, #496 all within 180 days); #625's edits are confined to §2.5 and §2.11 lines, minimising conflict surface with #323/#621. - No recent commit in these files introduced conflicting THP policy logic;
selene-manager/src/arena.rs:93still does an unconditionalmadvise(MADV_HUGEPAGE)on its own mapping — untouched by #625 and therefore left inconsistent with the new policy-aware path (a loose end a reviewer may raise, though it is out of the PR's stated scope).
#15 [high] Amendments to report #14 after 2026-11-30 push f2d03bc + Autobot Review
Report #14 is entry #14. This entry supersedes the named findings where they conflict.
A. HEAD / SHAPE (supersedes #1, #10, #13 chronology)
- Head is now
f2d03bc1"Avoid THP compaction stalls in eos::map_host and report offload startup timings" by yatesdr (2026-11-30), rebased ontomain8da73911(= #624 merge, itself after #637, #626, #620). Base parent is no longer59adc480. - Diff now 7 files, +1621/−109 (was 6 files/+1471/−111). New file
docs/TODO.txt (+7/−0). - Line numbers all shifted ≈+150 in
eos/src/unix.rs. Current citations:POPULATE_CHUNK_BYTES=64 MiB:88,ADAPTIVE_MAX_CHUNK_BYTES=16 MiB:92,MappingGuard:139–181,select_population_mode:243,parse_mems_allowed_list:270,parse_buddyinfo_free_hugepages_for_nodes:312,parse_vmstat_counter:398,buddyinfo_required_hugepages:410,stall_thresholds:415,read_hpage_pmd_size:442,detect_thp_policy:450,read_mems_allowed_list:468,read_buddyinfo_free_hugepages:474,read_compact_stall:484,advise_range:490,populate_chunk:511 (EINTR retry :524, EINVAL/ENOSYS→volatile :525, else Err :529),populate_chunks:539,populate_adaptive_with:566 (one-PMD shrink :626, final whole-range advice :693–700),populate_linux:705,map_host_with:737,map_host:749, tests :835–1350 (12 eos tests; linux-only ones at :1182, :1249, :1310). - selene:
PrepareTimings:333–340,Prepared.timings:368,summary():415–475,prepare_with_inputs_budget_with_progress:595, timings recorded :710/:722/:726/:745. helios:offload/mod.rs:31,101–118;runtime_core/model.rs:966,978. docs:prefix-cache-offload.md:517–536,990–996;TODO.txt:1–6.
B. DESCRIPTION NOW DISCLOSES WHAT #14 CALLED UNDECLARED (supersedes Key finding 2 and most of 3, and #3 note)
PR body (updated 2026-11-30) now states explicitly: 64 MiB bounded chunking "across all Unix modes"; rejects bytes == 0 with EINVAL; MappingGuard munmap; EINTR retry; volatile fallback only on EINVAL/ENOSYS with "propagates all other errnos cleanly"; /proc/self/status Mems_allowed_list NUMA filtering; two-consecutive-compact_stall confirmation; the one-PMD interior shrink; the whole-range MADV_NOHUGEPAGE-after-fallback; and the compatibility section now names the 64 MiB chunking and the summary-token changes.
Still not stated: (i) map_host now does sysfs//proc file I/O on every call including 4 KiB/8 KiB test pools and pool staging (selene/src/pool/shm.rs:74–86 via os::map_host); (ii) after a mid-slab fallback the whole range gets MADV_NOHUGEPAGE even when fallback_needs_nohugepage=false (branch keys only on fell_back, eos/src/unix.rs:693–700), so THP hints are dropped for the head too; (iii) heuristic constants remain compile-time only (no flag/config/env/metric — grep of eos/src/unix.rs shows no env::var/FLARE_*).
C. PROCESS / ENGAGEMENT (supersedes #6, #10, #12 process parts)
- Labels now present:
area:memory,area:selene,bug,performance,priority:P2,triage:review; PR updated 2026-11-30 13:23; still open. - Discussion is no longer empty:
flare-autobotcase file 02:09 and an Autobot Review at 02:32 with "Recommendation: Changes Requested" (1 blocker = CI failing on head9639e57, 3 should-fix, 2 subtract/simplify, 5 nits). Still no human review, no assignee. - Commit author is now yatesdr, who owns these files (#80, #92, #141, #399, #504, #455, #628) — so the "bot account with no standalone history" framing in #6/#14 no.5 applies to the opening account, not the current committer.
docs/TODO.txt:1–6now records the unrunflare runA/B, liveibv_reg_mr, 16 KiB/64 KiB ARM64 validation and theselene-manager/src/arena.rsaudit → the AGENTS.md:57–59 paperwork gap is closed; the Charter #210 served-workload gap remains (still unrun; PR sayscmakeforturbojpeg-sysand no exported cores).
D. CI CAUSE (supersedes open question 1 / #10 CI paragraph)
Likely explanation found: Python CPU tests runs on every PR (.github/workflows/python-cpu.yml:6 pull_request:, no path filter) and was permanently red — issue #623: 0 green runs of 61, two stale assertions, root-caused there and fixed by merged #624 (8da73911), which is exactly the new base f2d03bc was rebased onto. So the 02:32 review's "CI is failing" may be that pre-existing failure, not a defect in #625. Not verified against job logs; state as hypothesis.
E. RELATED WORK / MERGE RISK (supersedes #5 and the #323 half of #14 nos.4–6)
- #323 is now CLOSED (2026-11-30 13:20, yatesdr: "superseded by
c9935887(v0.4.1) and #589"), so the pendingprepare_with_inputs*signature refactor /system_headroom_bytesconflict is gone;system_headroomdoes not exist inselene/srcat this head.prepare_with_inputs*now has three entry points (selene/src/offload.rs:562, 573, 595). - New overlap: #628 (open, yatesdr, P1, fixes #627) shares
docs/prefix-cache-offload.md,helios/src/offload/mod.rs,helios/src/runtime_core/model.rswith #625 — same attach/prepare area inNativeModel(model.rs:966vs #628'sattach_offload/CopyEngineGatewiring). #621 (open) also sharesdocs/TODO.txtanddocs/prefix-cache-offload.md. - #576 remains the only
eos/src/unix.rscollision (open, fordbmorris); #589 merged and unchanged in framing.
F. SMALLER CORRECTIONS
- The 4 new selene tests do assert the new summary text (
selene/src/offload/tests.rs:1155, 1197, 1254, 1317), including restore-only summary unchanged; #14's "no in-repo test asserts old text" still true. - Description's ARM64 SM121 evidence was refreshed post-rebase: eos 12 tests, selene 552+1, helios 1748 lib + 62 integration, flare 245, flare-cli 227.
#16 [high] Research summary
Amendments to the report of 2026-11-29 (report #14). Notes: scratchpad #15.
1. Head, author and size all changed — findings 1 and 5 and the file-map table are superseded. PR #625 was rebased and re-pushed as f2d03bc1 (2026-11-30) by yatesdr, not the bot/derek identity the report described; it is now rebased onto main 8da73911 (the #624 merge), no longer 59adc480. Diff is 7 files, +1621/−109 (was 6 files, +1471/−111): the new file is docs/TODO.txt (+7/−0). All eos/src/unix.rs citations in the old report shift by ≈+150; current anchors: POPULATE_CHUNK_BYTES eos/src/unix.rs:88, MappingGuard :139-181, select_population_mode :243, detect_thp_policy :450, populate_chunk :511 (EINTR :524, EINVAL/ENOSYS→volatile :525, else Err :529), populate_adaptive_with :566 (one-PMD shrink :626, whole-range advice :693-700), populate_linux :705, map_host :749; PrepareTimings selene/src/offload.rs:333-340, summary() :415-475, prepare_with_inputs_budget_with_progress :595; helios/src/offload/mod.rs:31,101-118; helios/src/runtime_core/model.rs:966,978; docs/prefix-cache-offload.md:517-536, 990-996.
2. "Undeclared behaviour changes" (key finding 2, most of 3) must be withdrawn; three items survive. The updated description now states the universal 64 MiB chunking "across all Unix modes", the bytes == 0 EINVAL, MappingGuard munmap, EINTR retry, volatile fallback only on EINVAL/ENOSYS with other errnos propagated, Mems_allowed_list filtering, two-consecutive-compact_stall confirmation, the one-PMD interior shrink, and the whole-range MADV_NOHUGEPAGE after fallback; its compatibility section now names the chunking and the new summary() tokens. Still undeclared and still worth reporting: (i) map_host performs sysfs//proc file I/O on every call, including 4 KiB/8 KiB test pools and pool staging (selene/src/pool/shm.rs:74-86 → os::map_host); (ii) after a mid-slab fallback the final whole-range advice is MADV_NOHUGEPAGE even when the policy did not need it (fallback branch keys only on fell_back, eos/src/unix.rs:693-700), dropping THP hints for the head too; (iii) every heuristic constant (64 MiB, 16 MiB, 15 ms, 50 ms, 1 GiB/s, 256 MiB/s, total÷16 min 32) remains compile-time only — no flag, config key, env var or metric.
3. Process finding (6, 10) is superseded: labels and a review now exist, but still no human sign-off. Labels area:memory, area:selene, bug, performance, priority:P2, triage:review; PR updated 2026-11-30 13:23, still open. flare-autobot opened a case file 02:09 and posted an Autobot Review at 02:32, "Recommendation: Changes Requested" (1 blocker = CI failing on head 9639e57, 3 should-fix, 2 subtract/simplify, 5 nits, including the same charter/TODO points this report made). No human comment, review, assignee or reviewer request. Because the committer is now yatesdr — owner of eos/selene offload (#80, #92, #141, #455, #504, #628) — the "no author standing" framing applies only to the opening account.
4. The CI finding (6, open question 1) has a probable cause and must be softened. Python CPU tests runs on every PR with no path filter (.github/workflows/python-cpu.yml:6 (not opened)), and per issue #623 it was permanently red — 0 green runs in 61 — from two stale library assertions, fixed by merged #624 (8da73911), which is precisely the new base f2d03bc sits on. So the 02:32 review's blocker may be that pre-existing failure on the now-superseded head rather than a defect in #625; unverified without job logs, so report as hypothesis and note the head moved after the review.
5. The AGENTS paperwork gap is closed; the Charter #210 gap is not. docs/TODO.txt:1-6 now records the unrun end-to-end flare run A/B, live ibv_reg_mr, 16 KiB/64 KiB ARM64 validation and the selene-manager/src/arena.rs (not opened) MADV_HUGEPAGE audit. The served-workload measurement required by Charter #210 remains unrun and still unrecorded as evidence (the PR states the SM120 host lacked cmake for turbojpeg-sys and the SM121 host had no exported cores).
6. Related-work finding (5) is partly obsolete and partly new. #323 was closed 2026-11-30 13:20 by yatesdr as "superseded by c9935887 (v0.4.1) and #589", so the anticipated prepare_with_inputs*/system_headroom_bytes signature conflict is gone (system_headroom no longer exists in selene/src); that family now has three entry points (selene/src/offload.rs:562, 573, 595). New overlaps: #628 (open, yatesdr, P1, fixes #627) on docs/prefix-cache-offload.md, helios/src/offload/mod.rs, helios/src/runtime_core/model.rs — i.e. the same NativeModel attach/prepare region that #625 edited at model.rs:966-978 — and #621 (open) on docs/TODO.txt plus the offload doc. #576 remains the only eos/src/unix.rs collision.
7. Minor. The four new selene tests do assert the new summary() strings, including restore-only unchanged (selene/src/offload/tests.rs:1155, 1197, 1254, 1317). Evidence counts in the description were refreshed post-rebase (eos 12 tests; selene 552+1; helios 1748 lib + 62 integration; flare 245; flare-cli 227).
#6 [medium] People: area owners, author standing, zero engagement
Who works here (charter + commit history, 180 days):
eos/src: Luke Alonso 4, yatesdr 2, R4yHarris 1. Last commits: ba3afb13 (#589, 2026-11-28), 9710cadc, 28f0833b, fa158284, 42481f95 (#159), acbf2858 (#92), 230c5b40 (#80) — from PR orientation packet.selene/src: yatesdr 36, Luke Alonso 5, Martin Vit 2. Recent: #612, #611, #610, #609, #607 (all 2026-11-29), #496, #497.docs/: Luke Alonso 383, Martin Vit 55, yatesdr 47.helios/src: Luke Alonso 228, Martin Vit 52, yatesdr 47.- 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; #625 saysDiscord: flare-autobot. Its commit 9639e576 is authored by "derek" (owner identity behind the bot). - Engagement so far: zero comments, zero reviews, no labels, nobody assigned. Issue #616 is by ktsaou; #616's only comment is the bot's implementation report. No maintainer has reacted yet.
- Comparable bot PRs show the pattern: #589 and #576 received an "Autobot Review" within ~90 min of opening and a human review from original-el8 on #576. #625 (opened 01:32, last updated 01:32) has had none yet.
- Charter "Respect contributors" lists priority contributors @voipmonitor, @original-el8, @lukealonso; #625's author is not among them, and #589's author (lukealonso) is the person whose change this fixes.
#9 [medium] Reach: operators with large host slabs, log format, eos::map_host's other callers
- Users affected: operators running
flare runwith--prefix-cache-memorycombined with--prefix-cache-disk,--prefix-cache-pool,--lossless-kv-compression, or the non-VMM host fallback — i.e. exactly the #616 reporter's configuration (--prefix-cache-memory 128G+ disk tier, 119.4 GiB slab). - No new CLI flag, config key, env var, Protobuf field, or metric.
docs/prefix-cache-offload.md:985-986still states "[prefix_cache] rejects unknown keys". - Startup log line changes shape (adds durations). Anything parsing the
Prepare host prefix cachecompletion text — e.g. the Python server test only asserts the phase is absent when disabled (tests/server/test_prefix_cache_offload.py:135), so no test breaks — but operator dashboards/scripts that matched the old parenthetical could. - Public Rust API additions:
PrepareTimings,Prepared::timings,prepare_with_inputs_budget_with_progress(both selene and helios). Additive;prepare_with_inputs/prepare_with_inputs_budgetsignatures preserved. - Registration/lifetime contract preserved: mapping stays single-VMA and is registered after population with one
cuMemHostRegister_v2/ibv_reg_mr(selene/src/slab.rs:164→pool.register(registrar, context));unmap_hostunchanged. Windows path untouched (eos/src/windows.rs:166-185), so Windows keeps the old monolithic virtual-lock-and-zero behavior. - Platform reach: Linux only behavior change (all THP logic
#[cfg(target_os = "linux")]); other Unixes get chunked volatile zeroing only. ARM64 16 KiB/64 KiB kernels are handled only by parser unit tests, not run. - One behaviour change that reaches beyond prefix cache:
eos::map_hostis also used byRegion::anonymousfor pool staging (selene/src/pool/shm.rs:78) and by CUDA tests (helios/src/cuda.rs:1599,1665), so the new policy-aware population and the strict error propagation apply to those too. - Dependencies: none added (libc-only crate,
eos/Cargo.toml). - Deployment: no migration; the change is local to the process' allocation strategy.
#17 [medium] Citation-ready residuals: review body, charter/process anchors, superseded open questions
Companion to #15; use with #14 (report) so the final report can cite precisely.
REVIEW BODY (PR #625 comment, flare-autobot, 2026-11-30 02:32 UTC, "Recommendation: Changes Requested")
- Blockers 1 · Should fix 3 · Subtract/Simplify 2 · Nits 5. Explicit blocker: CI failing on head
9639e57; also "Charter #210 servedflare runverification is neither run nor recorded indocs/TODO.txt" and "a few targeted guard/dedup items". - Its own cited anchors:
eos/src/unix.rs:86-680(allocator),:769-1202(tests),:531-550(anon_vma anchor),:609-616(final merge advice);selene/src/offload.rs:328-480, 573-795;selene/src/offload/tests.rs:1107-1380;helios/src/offload/mod.rs:30-33, 82-120;helios/src/runtime_core/model.rs:966-980;docs/prefix-cache-offload.md:516-535, 986-995;selene/src/slab.rs:164;selene/src/pool/shm.rs:78;helios/src/cuda.rs:1599,1665. These are pre-rebase numbers; current ones are in #15. - Pre-merge checks it reports: security ✅ (read-only
/sys+/proc, standard mmap/madvise/munmap, no new deps/env/network); Charter fit ⚠️ (#210 gap, TODO.txt gap, wants eos/offload owner sign-off given the #589 dependency); related/conflict ⚠️ (#576 and #323, plus "selene-manager/src/arena.rs:93remains separate/out-of-scope"); tests ⚠️ (standalone SM120/SM121 A/B + CUDA DMA reported; CI failed; end-to-endflare runandtests/server/test_prefix_cache_offload.pyunrun). - Note for the writer: this Autobot Review is a bot artefact, not maintainer sign-off; the PR still has no human review.
CHARTER / PROCESS ANCHORS used by both the review and #14
- Charter #210 (closed issue): performance PRs must show an actual speedup over
mainon a served workload; invoked viadocs/design-review.md:109-115. AGENTS.md:52-59/:57-59: unrun verification must be recorded indocs/TODO.txt— now satisfied bydocs/TODO.txt:1-6.docs/design-review.md:180-186: full--locked --releasecrate suites as the verification gate.- No
cargo fmt --check/clippy step exists in.github/workflows(checked earlier), so formatting is not a plausible CI gate.
OPEN QUESTIONS from report #14, as of this event
- Resolved/closable: (1) which job failed — probable cause is the pre-existing
Python CPU testsfailure (#623, fixed by #624, which is the new base); still hypothesis-only, and the head the review judged (9639e57) is no longer the head. (6) #323 interaction — moot, #323 closed 2026-11-30 13:20 as superseded; replaced by #628/#621 overlap. - Still open as written: (2) whether non-
EINVAL/ENOSYSpopulation errors now fail startup in practice (no end-to-end test of the fatal path); (3) served-workload effect unmeasured (Charter #210); (4) cost of the post-fallback whole-rangeMADV_NOHUGEPAGEon slabs with a huge-page head; (5)selene-manager/src/arena.rsunconditionalMADV_HUGEPAGE— still out of scope, now tracked indocs/TODO.txt:5-6. - New open question: whether the two consecutive-
compact_stallconfirmation and the 2-monotonic-passes design (plus the 90 GB→wrong?) heuristic constants generalize beyond the two reported hosts — the post-rebase evidence is still two machines, one of them ARM64 GB10. - Rebase hygiene:
docs/TODO.txtconflicts with open #621 and the offload doc with #621/#628;eos/src/unix.rsstill collides textually with open #576.