Repository navigation
feat: a lane's memory counts what it owns and names its builds; main stops when only what serves its lanes runs (ADR-0119) - #626
Merged
Conversation
…stops when only what serves its lanes runs (ADR-0119) A native service's memory is what its processes own: Linux the proportional set (and a cgroup's memory.current without inactive_file), Windows the private working set, macOS the physical footprint. Shared pages, such as the .NET runtime's, no longer count once per process. The dashboard names the build job's memory: the lane card says "of it builds", the overview lists Builds below the groups. The mock hub keeps its build servers warm after a build, as the daemon does. main counts as stopped when only a singleton it keeps for running lanes runs; its stop says what keeps running and for which lanes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7schmiede
force-pushed
the
feat/lane-memory-honest
branch
from
November 24, 2026 11:51
7e90f9f to
ed4f661
Compare
Merged
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.
What and why
A lane of a .NET and Angular stack on a pool node showed 21.2 GB; its groups added up to 11.6 GB. The rest was the build job (51 MSBuild nodes kept warm after three rounds of parallel builds), counted in the lane but in no group. The numbers were also too high: summed resident sets count the .NET runtime's shared pages once per process (the build servers: 9.3 GB resident, 5.8 GB proportional). Stopping main while that lane ran kept
companion(asingleton) for the lane, and the dashboard still showed main running with its Stop button.Builds on #625 (its commit is the first one here until it is merged).
Review card
Approved by the owner in the conversation on 2026-11-24, points 1–4. This pull request builds 1, 2 and 4; point 3 follows in its own pull request.
Pssinstead of RSS, Windows the private working set instead of the whole, macOSphys_footprintinstead ofresident_size(CI only).Decided on my own: a cgroup's memory is
memory.currentlessinactive_file(asdocker stats); unreadablesmaps_rollupfalls back to RSS, a Windows before 10 21H2 to the whole working set; a container a kept singleton comesafterstill counts as main running; point 3 split off, since the node measures a lane as one container and must ask the lane's daemon for its builds.How it was checked
devstack-proc: per-platform tests (private part above zero and below the whole); Windows locally, Linux inrust:1.98(clippy and tests), macOS by CI.kept; 321 tests, typecheck, build. Seen in the worktree's lane against the mock hub: "of it builds 990 MB" in the lane card, Builds (4) below the groups.cargo fmt,cargo clippy --workspace --all-targets -D warnings.🤖 Generated with Claude Code