Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support GC.compact #4181

Closed
mperham opened this issue May 30, 2019 · 2 comments
Closed

Support GC.compact #4181

mperham opened this issue May 30, 2019 · 2 comments

Comments

@mperham
Copy link
Collaborator

mperham commented May 30, 2019

Ruby 2.7 introduces a new compacting GC. Call GC.compact in sidekiqswarm before forking in order to minimize fragmentation and maximize the CoW memory savings.

@yogeshjain999
Copy link

Is it possible to support conditionally running GC.compact, same as preloading ?

We're facing one issue when the compaction is ran (occurs randomly), but it needs more debugging. I'm wondering if we can skip the compaction until then but keep using sidekiqswarm.

Thanks 🍻

@mperham
Copy link
Collaborator Author

mperham commented Jan 6, 2023

@yogeshjain999 Ruby is mutable. You can monkeypatch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants