Repository navigation
Conversation
Contributor
|
@ivan: I have one extra line you can add to this pull (I'm too lazy to send a separate pull request for this now): |
Member
|
Applied! |
ConnorBaker
pushed a commit
to ConnorBaker/nix
that referenced
this pull request
Jul 25, 2025
…rrent-eval-cache Revert "Use WAL mode for SQLite cache databases"
angerman
added a commit
to angerman/nix
that referenced
this pull request
Aug 5, 2026
Kills hypothesis: "the 402MB Boehm is v3->TW bridge Values from FFI primop wrappers, reducible by moving heavy crossings native." Measure-first (firefox.drvPath): - bridge=0 (NIX_VM_STATS): zero TW thunk-routing. Not bridge. - GC_get_heap_size = constant ~402.9MB (appears even for 1+1, RSS 31MB) = Boehm's upfront mapped reservation, NOT a workload metric. Methodology trap; M1's vmmap 402MB-resident on M5 is the real number. - GC_get_total_bytes (cumulative): 1+1=0, firefox=452MB -> v3 churns ~431MB TW. - Per-primop self-attribution (NIX_V3_BOEHM_ATTR, gated, now retired): store- boundary leaves allocate ~0 (readFile 0.0MB, pathExists 0.0MB); churn attributed to higher-order list primops (concatMap 228, all 96, ...) -- but those are v3-NATIVE (primConcatMap=allocList=arena), so that's an INCLUSIVE artifact (the main OP_CALL_PRIMOP path bypasses the child-accounting -> native higher-order primops absorb their callback subtree's Boehm). Robust findings: NOT store/FFI boundaries (those are ~0), NOT bridge (=0); it's ~431MB transient TW churn under the package-set subtree, held resident by macOS no-unmap (same wall as NixOS#134/NixOS#136). Change-5 premise ("move store primops native") FALSIFIED -- store leaves don't allocate it. NixOS#156/NixOS#157 re-scoped; the precise leaf needs a complete-attribution instrument (hook the main OP_CALL_PRIMOP path) = follow-up. Pattern holds: Changes 1/3/5 all modest/blocked; real levers = Change 2 (HAMT) + Change 4 (JIT). Instrument retired per Rule 0 (per-primop numbers carry the inclusive artifact). hello.drvPath byte-id; vm.cc reverted to baseline. lode/C5_BOEHM_RCA_2026-06-23.md. Copyright (c) 2026 Moritz Angermann <[email protected]>, Input Output Group. SPDX-License-Identifier: Apache-2.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.