Skip to content

fix(build): bound forester OCaml GC space overhead to prevent CI OOM - #785

Merged
utensil merged 1 commit into
mainfrom
fix/forester-gc-overhead
Dec 4, 2026
Merged

utensil merged 1 commit into
mainfrom
fix/forester-gc-overhead

Conversation

@utensil

@utensil utensil commented Dec 4, 2026

Copy link
Copy Markdown
Owner

With 5,347+ trees, forester build under OCaml's default major GC overhead (o=120) reached 14.91 GB peak RSS, triggering Linux OOM-kill (Killed / exit 143) during XML rendering on GitHub Actions ubuntu-22.04 runners (16 GB total RAM).

Setting OCAMLRUNPARAM="${OCAMLRUNPARAM:-o=20}" in just forest reduces peak RSS from 14.91 GB to 9.44 GB (~37% reduction, verified locally with /usr/bin/time -l) while allowing callers to override OCAMLRUNPARAM if needed and leaving all build outputs and verification contracts unchanged.

@utensil
utensil merged commit 2beeaca into main Dec 4, 2026
3 checks passed
@utensil
utensil deleted the fix/forester-gc-overhead branch December 4, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant