runtime: advance apk-info mmap pressure by rounding, topology growth, and bounded reservation fixes - #99
Merged
Conversation
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.
Motivation
apk infocrash (muslmemsetstore to0x8) back to its first causal producer so the smallest general bounded repair can be applied.Description
generated/validation/modules.jsonto close the stale-evidence failure found by the doctor tooling.roundedLengthhelper plus focused unit tests inrecipes/run-hosted-morphic-runtime/src/bounded_runtime_mappings.zigto accept Linux byte-length requests that touch partial pages.recipes/run-hosted-morphic-runtime/src/freestanding_riscv64.zig, including checked rounding, reservation and rollback semantics, atomic prepared-backin mapping, and narrow trap/register diagnostics for tracing edge faults.COMMANDS.mdupdate documenting the causal loop and next blocker (files changed includerecipes/run-hosted-morphic-runtime/src/{bounded_runtime_mappings.zig,freestanding_riscv64.zig},generated/validation/modules.json,docs/reports/AGENTIC_SNOWBALL_BATCH_32V.md, andCOMMANDS.md).Testing
PYTHONDONTWRITEBYTECODE=1 python3 tools/python-environment.py tools/record-validation.py --level all, which completed and updatedgenerated/validation/modules.json.zig build test-recipe-run-hosted-morphic-runtimeandzig build install-freestanding-riscv64-morphic-runtimeand executed the recipe test suite, which passed./sbin/apk --version,/sbin/apk --help, and repeatedapk infoattempts;/sbin/apk --versionsucceeded and/sbin/apk --helpreached apk output, and causal retries advanced past the originally failing allocation and produced explicit mmap/mapping diagnostics, butapk infodid not complete successfully in the final bounded retry (observed behaviour and measured mmap/mapping outputs are recorded in the Batch 32V report).zig build check,python3 tools/developer-command.py validate-repository) and command-reference checks (PYTHONDONTWRITEBYTECODE=1 python3 tools/check-command-reference.py --check), which passed (local validation evidence: 350/350 steps and 249/249 tests); these local results are recorded in the attached report but do not claim external CI state.Codex Task