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

poolset: Call GC when free mem is low #75

Merged
merged 2 commits into from
Jan 13, 2024
Merged

poolset: Call GC when free mem is low #75

merged 2 commits into from
Jan 13, 2024

Conversation

jpsamaroo
Copy link
Collaborator

This PR attempts to work around memory usage issues in a similar manner to the Julia GPU packages: when poolset is called, if we're running low on memory (according to a configurable threshold), then we do increasingly expensive calls to the GC to try to free up enough memory to avoid an OOM.

An enhancement that we could make is to keep trying to GC until we don't free any memory. To be investigated.

@StevenWhitaker @svilupp this might help with the OOM issues seen with your workloads.

@krynju I'm considering enabling this by default, do you have any objections to that?

@jpsamaroo jpsamaroo marked this pull request as ready for review January 10, 2024 15:13
@jpsamaroo jpsamaroo merged commit bd89772 into master Jan 13, 2024
3 of 5 checks passed
@jpsamaroo jpsamaroo deleted the jps/memory-bloat branch January 13, 2024 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant