zig: split storage compilation to bound Darwin release memory - #536
Open
ajroetker wants to merge 152 commits into
Open
zig: split storage compilation to bound Darwin release memory#536ajroetker wants to merge 152 commits into
ajroetker wants to merge 152 commits into
Conversation
…m64-bad-alloc # Conflicts: # zig/pkg/antfly/src/standalone/runtime.zig
…gration # Conflicts: # scripts/packaging/build_zig_release_archive.sh # zig/build.zig # zig/pkg/antfly/src/runtime_artifact_lib.zig
…gration # Conflicts: # zig/build.zig # zig/pkg/antfly/src/api/table_reads.zig # zig/pkg/antfly/src/metadata/runtime.zig # zig/pkg/antfly/src/metadata/service.zig # zig/pkg/antfly/src/metadata/table_provisioner.zig # zig/pkg/antfly/src/standalone/runtime.zig # zig/pkg/antfly/src/storage/db/catalog/index_manager.zig # zig/pkg/antfly/src/storage/db/enrichment/enrichment_runtime.zig # zig/pkg/antfly/src/storage/db/query/search_exec.zig
…gration # Conflicts: # zig/build.zig # zig/pkg/antfly/src/api/table_writes.zig
…gration # Conflicts: # zig/build.zig # zig/pkg/antfly/src/api/distributed_txn.zig # zig/pkg/antfly/src/api/linear_merge.zig # zig/pkg/antfly/src/api/table_reads.zig # zig/pkg/antfly/src/api/table_writes.zig # zig/pkg/antfly/src/data/runtime.zig # zig/pkg/antfly/src/storage/db/db.zig # zig/pkg/antfly/src/storage/db/enrichment/enrichment_runtime.zig # zig/pkg/antfly/src/storage/ha/seed_materialization.zig
…gration # Conflicts: # zig/pkg/antfly/src/api/table_reads.zig # zig/pkg/antfly/src/metadata/storage/raft_apply_store.zig # zig/pkg/antfly/src/standalone/runtime.zig # zig/pkg/antfly/src/storage/db/db.zig # zig/pkg/antfly/src/storage/db/enrichment/enrichment_runtime.zig
…gration # Conflicts: # zig/pkg/antfly/src/api/table_writes.zig
…gration # Conflicts: # zig/e2e/antfly/test_cdc.py # zig/pkg/antfly/src/api/backups.zig # zig/pkg/antfly/src/api/distributed_join.zig # zig/pkg/antfly/src/api/http_server.zig # zig/pkg/antfly/src/api/stored_destination_authorization.zig # zig/pkg/antfly/src/api/table_writes.zig # zig/pkg/antfly/src/runtime_artifact_lib.zig # zig/pkg/antfly/src/serverless/api/http_handler.zig # zig/pkg/antfly/src/storage/db/db.zig
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.
Summary
antfly-storage-kernelstatic archive and keeps control, API, inference, enrichment, and serverless units on contract-only rootsMotivation
The Darwin ARM64 ReleaseFast storage compile in run 32651701261 / job 97224216605 aborted in LLVM with an out-of-memory allocation failure. The previous monolithic compilation graph combined physical storage with broad product/runtime codegen, and its scheduler claim allowed aggregate pressure from neighboring units.
This keeps ReleaseFast and stripping enabled. It reduces the graph owned by each LLVM process and uses measured scheduler reservations to prevent concurrent jobs from consuming storage headroom.
Validation
antfly + capi, stripped, Metal/Accelerate enabled, completed under a 20 GiB bounded Zig schedulerantflybuild completed with the split enabledgit diff --checkand release-script shell syntax passed