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

feat(core): use available memory as a trigger for OOM shutdown #120

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

White-Oak
Copy link
Contributor

avail < total * (1 - ratio) threshold is now used instead of old used > total * ratio to shutdown a service when tracking memory usage.
Additionally, total memory in bytes, and used/available memory as percentages of total memory are now being logged on OOM.

`avail < total * (1 - ratio)` threshold is now used instead of old `used > total * ratio` to shutdown a service when tracking memory usage.
Additionally, total memory in bytes, and used/available memory as percentages of total memory are now being logged on OOM.
@White-Oak White-Oak force-pushed the oom-based-on-available-memory branch 2 times, most recently from 5097b7d to a88816e Compare January 31, 2024 20:37
@White-Oak White-Oak requested a review from loyd January 31, 2024 20:37
@White-Oak White-Oak force-pushed the oom-based-on-available-memory branch from a88816e to 7300477 Compare January 31, 2024 21:16
@White-Oak White-Oak force-pushed the oom-based-on-available-memory branch from 7300477 to 95197be Compare February 1, 2024 09:09
@White-Oak White-Oak force-pushed the oom-based-on-available-memory branch from 95197be to bd4a564 Compare February 1, 2024 09:12
@loyd loyd merged commit 7f8d746 into elfo-rs:master Feb 1, 2024
4 checks passed
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