Skip to content

Compact heap Before puma Fork#73399

Draft
sureshc wants to merge 2 commits into
stagingfrom
infrastructure/garbage-collect-and-compact-before-puma-fork
Draft

Compact heap Before puma Fork#73399
sureshc wants to merge 2 commits into
stagingfrom
infrastructure/garbage-collect-and-compact-before-puma-fork

Conversation

@sureshc

@sureshc sureshc commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

To improve memory utilization and specifically to reduce the amount of Copy on Write Erosion on our child puma processes, garbage collect and then compact the heap before forking child puma processes.

If this has a positive impact, we'll likely follow up by removing the nakayoshi_fork gem that we added ~8 years ago 987ff08

Testing story

bundle exec rake adhoc:start RAILS_ENV=adhoc STACK_NAME=adhoc-compact-before-heap

Deployment notes

Privacy and security

sureshc and others added 2 commits June 22, 2026 15:45
Co-authored-by: Codex <noreply@openai.com>
Co-Authored-By: codex <codex@openai.com>
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