Skip to content

Fix benchmark script GC memory leak causing OOM (exit code 137)#1053

Merged
petergoldstein merged 1 commit into
mainfrom
claude/fix-benchmarks-script-gMlHI
Dec 31, 2025
Merged

Fix benchmark script GC memory leak causing OOM (exit code 137)#1053
petergoldstein merged 1 commit into
mainfrom
claude/fix-benchmarks-script-gMlHI

Conversation

@petergoldstein

Copy link
Copy Markdown
Owner

The GCSuite class was disabling garbage collection during benchmark runs but never re-enabling it, causing unbounded memory growth with large payloads and many iterations. This triggered the OOM killer (SIGKILL = exit code 137).

Add GC.enable calls to warmup_stats and add_report callbacks to ensure GC is re-enabled between benchmark phases while still keeping it disabled during timing-sensitive measurements.

The GCSuite class was disabling garbage collection during benchmark
runs but never re-enabling it, causing unbounded memory growth with
large payloads and many iterations. This triggered the OOM killer
(SIGKILL = exit code 137).

Add GC.enable calls to warmup_stats and add_report callbacks to
ensure GC is re-enabled between benchmark phases while still
keeping it disabled during timing-sensitive measurements.
@petergoldstein petergoldstein merged commit cf320e6 into main Dec 31, 2025
48 checks passed
@petergoldstein petergoldstein deleted the claude/fix-benchmarks-script-gMlHI branch January 26, 2026 15:21
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.

2 participants