PR #625: Avoid THP compaction stalls in eos::map_host and report offload startup timings

Raw Markdown for agents: https://autobot.eidonix.com/api/v1/cases/59e0bc75-ffcf-4bc8-b5c4-db7b7d6acd1b

Opened by a workflow run, Nov 29, 2026 9:04 PM EST. decide malicious: all_clear (100%): No malicious content found

explore

  1. 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 in Prepare host prefix cache for a 119.4 GiB slab (133,790 slots), versus 71.1 s with defrag=defer. It attributes the regression explicitly to merged PR #589 (Luke Alonso, 2026-11-28 22:18), whose eos/src/unix.rs hunk replaced MAP_POPULATE with madvise(MADV_HUGEPAGE) followed by one madvise(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.
  2. Undeclared behaviour changes in the allocator. The description frames chunking as part of the synchronous-compaction strategy, but POPULATE_CHUNK_BYTES = 64 MiB applies 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 any MADV_POPULATE_WRITE failure silently fell back to volatile writes; now only EINVAL/ENOSYS fall back and everything else propagates (:446-453), and the mapping is munmaped (MappingGuard drop, :173) — SlabPool::new turns that into a hard invalid("allocate host slots: …") (selene/src/slab.rs:164-165). That new failure mode is not in the description's compatibility section.
  3. Side effects of putting kernel introspection inside the allocator. map_host now reads /sys/kernel/mm/transparent_hugepage/*, /proc/buddyinfo and /proc/vmstat on every call (eos/src/unix.rs:383, :272, :572), including for 4 KiB/8 KiB test pools and for pool staging via Region::anonymous (selene/src/pool/shm.rs:78). After a mid-slab fallback the final whole-range advice is MADV_NOHUGEPAGE even when the policy did not need it, because the branch compares only fell_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.
  4. **Claims are backed in code but the headline

(No summary was written: this is the report's Key findings section.)

Full report · Notes

Classify intake

Selected: triage:review, priority:P2, bug, performance, area:memory, area:selene

Threshold: 65%

Triage

Priority

Type

Area

Model

Apply Labels (Intake)

Applied: +triage:review, +priority:P2, +bug, +performance, +area:memory, +area:selene

Value Proposition

Value Proposition — PR #625: Avoid THP compaction stalls in eos::map_host

Charter alignment — in scope. This fixes a reproducible, operator-reported regression (#616: 914.6 s in Prepare host prefix cache for a 119.4 GiB slab on fragmented Linux memory), which the charter lists as mergeable ("a reproducible bug… a measured performance/memory issue"). It serves the roadmap goal of storing prefix-cache checkpoints in host memory and sharing them via Selene. It adds no model aliases, switches, backends or hardware breadth, so no non-goal is engaged. It is host allocator code, not CUDA kernel code, so the kernel-review rule doesn't apply.

Novelty & status — genuinely additive, not superseded. No fix exists on main; #616 is still open; the dossier finds no competing THP-compaction proposal. It does partially reverse #589 (merged 2026-11-28, by priority contributor @lukealonso) while preserving its intent (huge pages when available) — a correction, not a revert. That interaction requires owner sign-off.

Value vs maintenance cost. The root cause is corroborated by the reporter's own A/B (#616: 914.6 s under defrag=madvise vs 71.1 s with defer) — stronger evidence than the author's standalone harness. But the charter's bar ("an actual speedup over main on a served workload (#210)") is explicitly unmet: the PR concedes "not yet timed inside a live flare run launch", and no benchmark harness or logs are committed. Cost is substantial: +1008/−54 in the highest-risk shared function, ~600 lines of new implementation and tests, compile-time-only heuristic constants (nearest the #215 "no magic defaults" rule), new /sys and /proc I/O on every map_host call including 4 KiB test pools and pool staging, undeclared behaviour changes (64 MiB chunking universal across policies and non-Linux Unix), reversed error handling that makes non-EINVAL/ENOSYS population failures fatal at startup, a whole-range MADV_NOHUGEPAGE after any mid-slab fallback, likely textual conflict with open #576, and semantic collision with #323's pending refactor of the same prepare_with_inputs* signatures. CI also failed on head with an undetermined cause.

Verdict: Worth it with changes. Merge blockers: (1) an end-to-end flare run timing versus main on #616's configuration; (2) docs/description corrections for the universal chunking and stricter error path, plus a docs/TODO.txt entry for unrun checks; (3) a green CI run; (4) reconciliation with #576 and #323; (5) explicit eos/offload owner approval given the #589 dependency.

Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Subtraction and simplicity

Subtraction/Simplicity/Conventions lens on PR #625: the diff is mostly lean; three simplifications, one substantial.

  1. selene/src/offload.rs:702-735 — the new timing instrumentation duplicates a 9-line populate/timer/register/timer block byte-for-byte across the try_sized_by_rank None arm (:713-723) and the else arm (:725-735). main had the same two arms with 3 lines each (selene/src/offload.rs:642-658), so the PR inflated a tolerable duplication to ~18 removable lines. Collapse to one split attempt + one match split { Some(pool) => pool, None => {populate, register} }; the step sequences the new tests assert (selene/src/offload/tests.rs:1230-1237, :1288-1292) and the timer resets survive.
  2. helios/src/offload/mod.rs:82-99 — prepare_with_inputs_budget is now a pass-through whose only content is |_| {}; its sole workspace consumer is helios::prepare_with_inputs (:79) and the real caller moved to _with_progress (helios/src/runtime_core/model.rs:966). Point prepare_with_inputs directly at _with_progress and delete the middle rung (or document its external-API intent).
  3. eos/src/unix.rs:116-121 + :625-632 — PopulationMode::BasePages and KernelDefaultOpportunistic already share one match arm with identical behaviour; collapse to one variant and drop the test-matrix row (:912-914). Optional rider: ThpPolicy.page_size (:126) only ever holds page_size().

Checked and found lean: the 19× cfg_attr(allow(dead_code)) (repo idiom), the new sysfs/proc parsers (no existing eos helper), MappingGuard/map_host_with (test seam), PrepareTimings, the single on_step closure, and the new test fixtures.

Conventions: AGENTS.md:57-59 requires unrun checks in docs/TODO.txt; the unmeasured flare run timing lives only in the PR description and no TODO entry is added.

Open questions: whether the helios wrapper is supported external API; whether the four-way mode enum is deliberate documentation; rebase interaction with #323/#576; and which CI job failed on 9639e57, so none of these edits was build-verified.

Full report · Notes

Correctness and contracts

Correctness/contracts/system review of PR #625 (head 9639e57). Three Major defects in the new eos/src/unix.rs allocator, all in the added guard logic, plus one charter gap. The rest of the change checks out.

Findings (severity · citation):

  1. Major · eos/src/unix.rs:272-328 + :564-571 — the /proc/buddyinfo guard sums Normal/Movable free huge pages across all NUMA nodes (node index never parsed) and gates each PMD chunk on that total. On #616's two-NUMA host (node 0 order-10=1,860 vs node 1=311) node-1 supply can mask node-0 exhaustion, so the stall the PR fixes can still occur. Fix: parse Node N,, require min-over-allowed-nodes ≥ required.
  2. Major · eos/src/unix.rs:406-410, :587-594, :611-616 — the second guard samples /proc/vmstat compact_stall, a system-wide since-boot counter; any co-tenant compaction during a chunk sets fell_back (after > before), after which the entire mapping permanently gets MADV_NOHUGEPAGE. Load-dependent, silent huge-page loss on a 119 GiB slab. Fix: require compact_stall+compact_fail to advance over consecutive chunks, or use latency only.
  3. Major · eos/src/unix.rs:445-453 + :659-661 + :173-180 → selene/src/slab.rs:164-165 — error handling reversed: main:eos/src/unix.rs:109-117 degraded to volatile writes on any madvise failure; now only EINTR/EINVAL/ENOSYS are tolerated, everything else munmaps and becomes a fatal allocate host slots: startup error. A transient ENOMEM under the very memory pressure this PR targets now aborts flare run. Not in the compatibility section; no end-to-end test.
  4. Minor · Windows divergence: EINVAL-on-zero and all policy logic are Unix-only; eos/src/windows.rs:166-195 unchanged (monolithic zero loop); docs now describe Linux only.
  5. Minor · eos/src/unix.rs:1184-1191 (and :1077-1141) assert a single VMA from process-global /proc/self/smaps in a multi-threaded test binary — plausible flake; failing CI job on 9639e57 not retrievable, so unproven.
  6. Minor · BasePages/EagerHugepage/KernelDefaultOpportunistic branches (:620-650) have no end-to-end test; fatal errno path only covered by a synthetic ENOMEM (:822-831).
  7. Minor · PrepareTimings.slab_populate (selene/src/offload.rs:331-340) is overloaded as "allocate" (split-by-rank, :706-712) and "populate" (contiguous, :726-733), relabelled in summary() by rank_parts() (:419-431); summary text shape changes.
  8. Major (process) · charter #210: the 128.56 s → 30.99 s figure is a standalone harness with no committed script or log, and the PR admits "not yet timed inside a live flare run launch". No served A/B, no docs/TODO.txt entry per AGENTS.md:52-59 (not opened).

Verified sound: signature preserved (:664), MappingGuard commit/drop (:139-181), EINTR retry, policy parsing and 24-cell matrix test (:866-930), adaptive chunk geometry and single-VMA merge (:502-616), step/timer resets (selene/src/offload.rs:713-723), restore-only summaries byte-identical (selene/src/offload/tests.rs:1345-1376), phase label and StartupStage::PrepareHostPrefixCache unchanged (helios/src/runtime_core/model.rs:934), no proto/ABI change.

Open: which CI job failed on 9639e57 and why (unretrievable; Windows hypothesis disproved since eos/src/unix.rs is #[cfg(unix)]); whether the strict errno propagation breaks startup under pressure; the actual served-workload speedup; unreconciled overlap with #323 (same prepare_with_inputs* signatures) and #576 (same file).

Full report · Notes

Final review

Recommendation: Changes Requested

The core allocator rewrite in eos/src/unix.rs and startup timing/progress plumbing in selene and helios are technically sound, well-reasoned, and directly address the THP direct-compaction root cause reported in #616 (including preserving a single merged VMA via pre-anchored anon_vma and whole-range final madvise). However, CI failed on head 9639e57 (cause not retrievable from repo metadata), the Charter #210 served flare run verification gap is neither run nor recorded in docs/TODO.txt (AGENTS.md:57-59), and a couple of targeted NUMA/multi-tenant guard improvements plus a clean deduplication in selene/src/offload.rs should be resolved before merge.

Merge Risk

Level: Medium

Walkthrough

Pre-merge Checks

Blockers

  1. Failing CI on head 9639e57: CI reported a failure on the current head across the applicable workflows (.github/workflows/native-serving.yml (not opened), .github/workflows/helios-lifecycle.yml (not opened)), and the failing job log is not available in the repository metadata. Fix: Inspect the failing CI leg, fix any regression (or re-run if it is the pre-existing selene-manager a_freed_window_credit_is_granted_without_waiting_for_the_clock timing flake), and verify all required checks pass on head before merge.

Should Fix

  1. Unrun served-workload A/B and missing docs/TODO.txt entry (AGENTS.md:57-59, docs/design-review.md:109-115): The 128.56 s → 30.99 s and 68.46 s measurements are from a standalone eos::map_host + cuMemHostRegister_v2 harness; no flare run A/B against main was run, and the PR adds no docs/TODO.txt entry for the unrun flare run, live RDMA ibv_reg_mr, or 16 KiB/64 KiB kernel checks. Fix: Either run flare run <exported-core> --prefix-cache-memory <size> --prefix-cache-disk <dir> against main under THP enabled=madvise, defrag=madvise and include the Prepare host prefix cache timings, or record the unrun end-to-end flare run, live RDMA, and non-4 KiB kernel checks in docs/TODO.txt per AGENTS.md:57-59.
  2. Respect process NUMA memory restrictions when summing /proc/buddyinfo (eos/src/unix.rs:272-328): parse_buddyinfo_free_hugepages sums Normal/Movable free huge pages across every NUMA node in /proc/buddyinfo. While summing across nodes is appropriate under unconstrained MPOL_DEFAULT (where Linux ≥ 5.2 allocates MADV_HUGEPAGE across nodes in the fast path before compacting, so taking min across nodes would wrongly disable THP on asymmetric-occupancy hosts), processes bound to a subset of nodes via cpuset.mems or numactl --membind see unreachable remote nodes counted in preferred_total. (The latency/compact_stall guard still bounds any stall to one chunk, so #616's 15-minute stall does not recur, but the upfront buddyinfo guard is bypassed.) Fix: Parse the Node N, id on each line and, when /proc/self/status exposes Mems_allowed_list, sum only allowed NUMA nodes (falling back to all nodes if unreadable), plus add a unit test for a filtered two-node fixture.
  3. Avoid single-strike false fallback on system-wide /proc/vmstat compact_stall (eos/src/unix.rs:572-595): Because compact_stall is host-wide, a single slow chunk (elapsed in (stall_floor, hard_ceiling], e.g., from brief scheduler contention during parallel multi-rank startup) coinciding with a +1 compact_stall from an unrelated process triggers fell_back = true; break; and populates the entire remainder of a 100+ GiB slab with base pages. Fix: Require 2 consecutive ChunkStallCheck::CheckCompactStall hits with advancing compact_stall before setting fell_back (keeping ChunkStallCheck::Stalled above hard_ceiling as an immediate 1-chunk breaker so real compaction stalls still exit in one chunk).

Subtract / Simplify

  1. Deduplicate the 9-line populate/register sequence (selene/src/offload.rs:702-735): Lines 713-723 (None arm of try_sized_by_rank) and 725-735 (else arm) are byte-for-byte identical. Attempt try_sized_by_rank into let split: Option<SlabPool> first, then share one match split { Some(pool) => pool, None => { ... } } block (~−16 lines and a single source of truth for step labels and timer resets).
  2. Consider dropping the pass-through helios::offload::prepare_with_inputs_budget wrapper (helios/src/offload/mod.rs:82-99): Its only caller in the workspace is helios::offload::prepare_with_inputs (:79), since NativeModel::prepare_offload (helios/src/runtime_core/model.rs:966) moved to prepare_with_inputs_budget_with_progress. If preserving the pub fn signature for external Rust consumers / parity with selene::offload is intentional, keep it; otherwise point prepare_with_inputs straight to prepare_with_inputs_budget_with_progress(..., None, |_| {}) and delete lines 82-99.

Nits

Dropped on verification

Full report Decision to Test: no (97%): Testing will not add significant value as the code stands today. The code is either not yet ready to merge, or adequate testing has already been done to validate the contents of the code, or the available hardware is not suitable to test with.

Classify triage

Selected: triage:review

Threshold: 65%

Triage

Apply labels

No label changes decide malicious: all_clear (100%): No malicious content found

explore

Author: flare-autobot (COLLABORATOR; opening account) — current head commit authored by yatesdr (COLLABORATOR); Discord: flare-autobot Motivation: Serving a model with a big host prefix-cache slab can stall startup for 15+ minutes on Linux when memory is fragmented, because the allocator advises huge pages and then faults the whole range at once, forcing synchronous compaction. This PR makes the allocator read the kernel's THP policy and fall back to ordinary pages promptly, and adds per-step startup timings so operators can see where startup time goes. Scale: +1,621 / −109 lines in 7 files (head f2d03bc, rebased onto main 8da73911) Proposal:

Full report · Notes

Classify intake

Selected: triage:review, priority:P2, bug, performance, area:memory, area:selene

Threshold: 65%

Triage

Priority

Type

Area

Model

Apply Labels (Intake)

No label changes

Value Proposition

Value Proposition — PR #625 ("Avoid THP compaction stalls in eos::map_host and report offload startup timings")

Charter alignment. The change fixes a reproducible bug (#616: >15 min stall in Prepare host prefix cache under THP compaction), which the charter explicitly lists as mergeable. It attacks the root cause (unconditional MADV_HUGEPAGE + monolithic MADV_POPULATE_WRITE) instead of swallowing/retrying the stall, lives in the runtime layer (eos/src/unix.rs) rather than adding per-model branches, and deliberately avoids host-wide sysctls and new runtime switches. Offsetting that: the offload timing/progress plumbing (selene/src/offload.rs +131/−45, selene/src/offload/tests.rs +274, helios +26) is a separate concern bundled into a memory-management bug fix — scope creep, and it changes Prepared::summary() output text.

Novelty & status. Genuinely additive. Nothing merged on main fixes #616; #589 (merged) is the regression cause this partially reverses. No open PR supersedes it: #576 is the only eos/src/unix.rs collision and concerns CPU selection; #628 (same author) and #621 overlap only on helios/src/runtime_core/model.rs and the two docs files, so merge order matters, not value. The Autobot "Changes Requested" blocker on head 9639e57 is most plausibly the pre-existing Python CPU tests failure fixed by #624 (8da73911, the current base), not a defect introduced here.

Value vs cost. Beneficiaries are operators using the documented large-slab path (--prefix-cache-memory with disk/pool/lossless-compression), so the audience is real. Evidence strength is the weak point under charter #210: 128.56 s → 30.99 s (4.15x) and 57.19 s + 11.27 s registration are author-supplied standalone map_host/cuMemHostRegister_v2 figures with no committed harness or raw log, and are explicitly "not yet timed inside a live flare run launch"; docs/design-review.md:106-115 wants actual Helios service measurements. Cost is high: +1621/−109 across 7 files, ~1158 lines in eos/src/unix.rs, much of it heuristic (buddyinfo/compact_stall parsing, latency floors, NUMA filtering) validated on only two hosts, with an open question about the post-fallback whole-range MADV_NOHUGEPAGE discarding THP hints for a genuine huge-page head (119 GiB run: 43,454 MiB AnonHugePages with VmFlags nh). No human maintainer position exists yet; the committer is yatesdr, who owns these files.

Verdict: Worth it with changes — split the timing plumbing into its own PR, land a served flare run A/B (harness or raw log) per #210, resolve the MADV_NOHUGEPAGE scope, and refresh the pre-rebase benchmark table.

Full report Decide Value: yes (100%): This change is worth reviewing: it provides value to the project in line with its charter.

Subtraction and simplicity

Subtraction/simplicity lens on PR #625 (head f2d03bc). The diff is close to lean — the allocator core and the selene timing plumbing are small, single-purpose and duplicate no existing repo helper. Four deletions are worth making; the largest is ~70 lines, so I do not recommend churn beyond them.

  1. Dead enum variant: PopulationMode::KernelDefaultOpportunistic (eos/src/unix.rs:119, returned at :254-258) is dispatched in the identical arm as BasePages (:710). Delete it and the branch; also drop the test arms at :997-999 and :1240. Highest value, smallest diff.
  2. New forwarder with no production caller: prepare_with_inputs_budget (helios/src/offload/mod.rs:82-99). search_code shows the runtime calls the _with_progress form directly (helios/src/runtime_core/model.rs:966); the only user of the budget form is itself test-only (helios/src/offload/pool/tests.rs:124). The PR body's "pub fn parity" rationale does not hold — have :79 pass |_| {} and delete :82-99. Keep the selene originals (selene/src/offload.rs:562,573,595), which many tests use.
  3. Mems_allowed_list NUMA filtering: ~70 lines (eos/src/unix.rs:266-303, 312-317, 343-347, 468-481, call at :723, tests :1036-1052, plus the #[cfg(test)] shim :388-395 and the doc clause docs/prefix-cache-offload.md:531). Its only effect is to make an already-conservative huge-page pre-check stricter, and no run or test distinguishes the filtered from the unfiltered count. Deleting it also restores the plain parse_buddyinfo_free_hugepages name.
  4. Test that re-implements the implementation: eos/src/unix.rs:1229-1238 recomputes populate_adaptive_with's aligned-start/aligned-end arithmetic (:1218-1228) to assert only hg || nh, a tautology that asserts nothing in the exact-PMD case. Policy selection is already covered deterministically by :1308-1352 and :1247-1306. Delete :1204-1242, keep the zeroed/VMA-count assertions.

Conventions: clean. docs/TODO.txt:1-6 satisfies AGENTS.md:57-58, and live progress reuses the existing Phase::detail rather than inventing an abstraction.

Open: CI logs for 9639e57 unavailable; heuristic constants are compile-time only; whether the whole-range MADV_NOHUGEPAGE after fallback costs the huge-page head is unmeasured.

Full report · Notes

Correctness and contracts

One Major finding, three Minor, all in the allocator/timing plumbing; the rest is sound.

  1. Major — eos/src/unix.rs:695-700: the closing whole-range madvise keys only on fell_back, so on the success path it re-arms MADV_HUGEPAGE over a mapping the same function deliberately set MADV_NOHUGEPAGE on (:604-606) for defrag=always/unknown-sysfs hosts. The slab ends hg for the process lifetime, so later swap-in faults re-enter the direct-reclaim/compaction path #616 is about, now during serving. On the fallback path it applies NOHUGEPAGE even when the policy did not require it, barring khugepaged from the base-page tail. Fix: if fell_back || fallback_needs_nohugepage.
  2. Minor — selene/src/offload.rs:702-728: slab_populate starts after try_sized_by_rank returns Ok(None), so the failed split probe is measured by neither allocate nor populate; the new durations under-report exactly the fallback path they exist to explain.
  3. Minor — selene/src/offload.rs:706-736 + helios/src/runtime_core/model.rs:978 + helios/src/startup.rs:325-328: on_step labels are emitted before the work they name and Phase::detail keeps one string, so a stalled 119 GiB populate shows a static "populating …" — the PR's "live sub-step progress" claim is stronger than the code.
  4. Minor — eos/src/unix.rs:450-465,749-755: THP policy is re-probed from sysfs//proc on every map_host (incl. pool staging), never logged or exposed in the extended summary(), and unknown sysfs silently selects the heavier adaptive path.

Verified sound: no double munmap/UB (MappingGuard + mem::forget); bytes==0 → EINVAL regresses no caller; EINTR retry / EINVAL+ENOSYS-only volatile fallback with other errnos propagated is declared and correct; summary() byte-identical for disabled and restore-only; phase label and StartupStage unchanged; Windows map_host untouched; no wire/ABI change. Charter #210 served-workload A/B remains unrun, now tracked in docs/TODO.txt:1-6 — a maintainer call, not a code defect. No test was executed; all findings are from reading code.

Full report · Notes

Re-review

Recommendation: Ready To Merge

Head f2d03bc resolves the Round 1 review items—rebasing onto main 8da73911 (which includes the #624 fix for the pre-existing Python CPU tests failure), recording the unrun served flare run A/B and live RDMA/ARM64 checks in docs/TODO.txt:1-6, and strengthening the Linux adaptive allocator with Mems_allowed_list NUMA filtering, two-consecutive-compact_stall confirmation, and full single-VMA anchoring when both mapping endpoints are PMD-aligned. Independent verification of eos/src/unix.rs, selene/src/offload.rs, helios/src/offload/mod.rs, and helios/src/runtime_core/model.rs confirms the RAII MappingGuard, errno propagation, single-VMA merge geometry, public API compatibility, and startup timing/progress wiring are sound with no remaining blockers or regressions; confirm green CI on f2d03bc before merging.

Merge Risk

Level: Medium

Walkthrough

Pre-merge Checks

Blockers

None.

Should Fix

None.

Subtract / Simplify

  1. Collapse PopulationMode::KernelDefaultOpportunistic into one unadvised variant (eos/src/unix.rs:116-121, 254-258, 709-712, 997-999, 1240): KernelDefaultOpportunistic and BasePages execute the identical unadvised populate_chunks arm in populate_linux (:710) and share the identical no-op arm in tests (:1240). Collapsing both into a single variant (e.g., NoAdvice / Unadvised) with a short comment in select_population_mode explaining both enabled=never and enabled=always (defrag=madvise|defer+madvise) removes a dead runtime state while keeping the distinction clear.
  2. Drop mirrored alignment arithmetic in map_host_advises_hugepages_and_prefaults_zeroed_pages (eos/src/unix.rs:1204-1242): Lines :1218-1238 re-implement populate_adaptive_with's aligned_start/aligned_end calculation to guard an hg || nh check across 4/16/64 KiB page sizes, while adaptive_mid_mapping_fallback_merges_into_single_vma (:1249-1306) and populate_linux_applies_eager_and_base_page_policies (:1310-1352) already assert exact VmFlags deterministically. Keeping only the zeroed-page and single-VMA assertions (:1183-1203, 1244) removes ~38 lines of test-to-implementation coupling.

Nits

Dropped on verification

Full report

Classify triage

Selected: triage:review

Threshold: 65%

Triage

Apply labels

No label changes Decision to Test: yes (88%): Testing will add considerable value with the code. It is ready to merge and the tests will validate and improve confidence on hardware we have available for testing.